Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
appium-xcuitest-driverとCI環境
Search
Tadashi Nemoto
January 20, 2017
Programming
3.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
appium-xcuitest-driverとCI環境
Tadashi Nemoto
January 20, 2017
More Decks by Tadashi Nemoto
See All by Tadashi Nemoto
コンテナイメージの脆弱性を削減する新しいアプローチ:Hardened Container Images
tadashi0713
1
410
Best Practice CI/CD Pipeline for Deploying Container Apps to AWS
tadashi0713
0
310
Scalable and cloud-native mobile game CI/CD environment using Unity
tadashi0713
0
190
Migrating your mobile CI/CD environment to a scalable cloud solution using CircleCI
tadashi0713
0
300
Speed matters: Advanced CI/CD techniques to improve development velocity, quality & security
tadashi0713
0
360
AWS Graviton 環境への CI _ CD パイプラインを CircleCI で実現しよう (AWS Fargate 編)
tadashi0713
0
430
10x deployment frequency using GitLab Flow and GitHub Actions on AWS ECS
tadashi0713
0
680
デプロイ頻度を10倍にした、ブランチ戦略とGitHub Actions on AWS ECS
tadashi0713
8
4.6k
Creating parallelized Android UITest (Appium) environment using Azure, Docker and Android emulator
tadashi0713
0
4.4k
Other Decks in Programming
See All in Programming
Simple Storage Service(S3) is not simple
iwatsukayura
0
290
ジョジョの世界をXRで再現する
mofurune
0
170
The Rails Doctrine Decade
koic
2
590
Jetpack Compose Mechanisms
skydoves
3
820
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
sbt 2.0: takeoff
eed3si9n
0
160
気持ちぃ〜角丸 Squircle
ryu1013
0
310
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
250
contenteditable と日本語入力に向き合う
colorful12
0
200
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
760
Event is what happens
moro
2
840
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
516
110k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
7k
HDC tutorial
michielstock
2
960
Designing for Performance
lara
612
70k
Code Reviewing Like a Champion
maltzj
529
40k
Technical Leadership for Architectural Decision Making
baasie
3
600
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Building Adaptive Systems
keathley
44
3.2k
Typedesign – Prime Four
hannesfritz
42
3.2k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Evolving SEO for Evolving Search Engines
ryanjones
0
330
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Transcript
2017/01/19 iOS Test Night #2 Tadashi Nemoto appium-xcuitest-driverとCI環境
自己紹介 • 根本 征 (github/tadashi0713) • 2016年4月に新卒でメルカリに入社 • 2016年10月に作られたSETチームに所属 •
現在はクライアント(iOS・Android)のE2Eテストを実装
クライアントアプリのE2Eテスト • クライアントリリース前にQAが手動で行っていた回帰試験 • Regionが増えていくと工数が多くなる & 繰り返しの作業が多 い • 自動化できる部分はAppiumを使ってテストできるように
CI環境を早めに用意しておこう • 自分の環境でしか動かないテストにはしたくない • 後々放置状態になっていくのを避けたい • テスト結果が開発者・QAにも見える状況が望ましい • 実行しているところを確認したい(スクリーンショット・動画) •
クラウドサービスを使うのが妥当と考えた
2つのクラウドサービスを検討 • Sauce Labs • AWS Device Farm
Sauce Labs • ブラウザテスト、モバイルテストの実行環境を提供している サービス • シミュレーターを起動して動作させる • .appファイル・.apkファイルをアップロードして実行 •
desiredCapabilitiesを変更して実行させる • Appiumのバージョンも選択可能 • 以前はAppiumの開発元でもあった
AWS Device Farm • 実機端末を使ったテスト実行環境を提供しているサービ ス • .ipaファイル・.apkファイルをアップロードして実行 • Appiumは現在Python・Javaのみ対応
• 該当テストファイルをzip化・アップロードさせて実行させる • Appiumのバージョンは選択できず、現在1.4固定
AWS Device Farmを選択 • SauceLabsのAndroidエミュレーターでテストを実行するのに 制約が多かった • Google Play Serviceのバージョンなど
• AWS Device Farmは両OS(iOS9)正しく動作したため選択 • Jenkins プラグインを利用して定期実行できる環境を構築
appium-xcuitest-driverの登場 • iOS10からUIAutomation廃止 • 今までのUIAutomationを使っていたAppiumは使えない ことに • Appium1.6からXCUITestをベースにしたwebdriverを提供 • appium-xcuitest-driver
• https://github.com/appium/appium-xcuitest-driver
AWS Device Farmの対応状況 • Appiumのバージョンは固定されており、現在は1.4 • 現状はappium-xcuitest-driverは動かせない • もうじき1.6.3にアップデートされるらしい •
https://forums.aws.amazon.com/ann.jspa?annID=4341
Sauce Labsは対応済 https://saucelabs.com/blog/new-support-for-ios-10-simulator- testing-and-more-real-devices-
学んだこと • クラウドの制約はテストを実行できる・できないに関わるのでよ く調べて理解することが重要だと感じた • 特にAppium・クライアントOSのバージョン • 対応の早さも今後見ていきたい • 制約を把握した上でツール選択することも大事だと感じた
• 今回だとAWS Device Farmで実行させられるために、言語 はPythonにした