Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOSシミュレータでのUIテストの様子を録画してみよう
Search
Kenta Kase
December 05, 2017
Technology
0
10k
iOSシミュレータでのUIテストの様子を録画してみよう
iOS Test Night #6のLT発表資料です
Kenta Kase
December 05, 2017
Tweet
Share
More Decks by Kenta Kase
See All by Kenta Kase
GitHub Actionsオタクによるセルフホストランナーのアーキテクチャ解説
kesin11
0
330
GitHubの新機能とGHESのリリースノートの対応をまとめ続けている話
kesin11
0
140
CircleCIでLayer Cachingを使わずにdocker buildを高速化する
kesin11
3
2.1k
CI/CDのボトルネックを把握できていますか?BigQueryでビルド情報ダッシュボードを構築した話
kesin11
7
10k
TypeScriptから使いやすいFirestore-simpleを紹介します(2020年版)
kesin11
3
2.1k
GitHub Actionsが他のCIサービスと比較してできることできないこと
kesin11
1
1.6k
iOSアプリのリジェクトリスクを早期に発見するための取り組み
kesin11
4
17k
BitriseでFastlane/Gradleプラグインの統合テスト
kesin11
0
3.2k
Firebase Test Labの紹介
kesin11
4
1.5k
Other Decks in Technology
See All in Technology
スプリントゴール未達症候群に送る処方箋
kakehashi
PRO
1
170
LLM拡張解体新書/llm-extension-deep-dive
oracle4engineer
PRO
27
7.8k
Autify Company Deck
autifyhq
2
44k
Ktor + Google Cloud Tasks/PubSub におけるOTel Messaging計装の実践
sansantech
PRO
1
180
PHPでResult型やってみよう
higaki_program
0
180
M365アカウント侵害時の初動対応
lhazy
5
3.9k
The Madness of Multiple Gemini CLIs Developing Simultaneously with Jujutsu
gunta
1
2.1k
MCPに潜むセキュリティリスクを考えてみる
milix_m
0
260
Microsoft Fabric ガバナンス設計の一歩目を考える
ryomaru0825
1
190
P2P通信の標準化 WebRTCを知ろう
faithandbrave
6
2k
Shadow DOM & Security - Exploring the boundary between light and shadow
masatokinugawa
0
630
AIコードアシスタントとiOS開発
jollyjoester
1
220
Featured
See All Featured
The Language of Interfaces
destraynor
158
25k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
A Tale of Four Properties
chriscoyier
160
23k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Designing for humans not robots
tammielis
253
25k
Fireside Chat
paigeccino
37
3.5k
Typedesign – Prime Four
hannesfritz
42
2.7k
Thoughts on Productivity
jonyablonski
69
4.7k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.2k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Documentation Writing (for coders)
carmenintech
72
4.9k
Transcript
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. iOS Test Night
#6 2017/12/05(Tue) Ճ݈ଠ@DeNA iOSγϛϡϨʔλͰͷ UIςετͷ༷ࢠΛըͯ͠ΈΑ͏ 1
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ࣗݾհ w Ճ݈ଠʢ!,FTJOʣ
⁃ ॴଐ • %F/"48&5άϧʔϓςετج൫νʔϜ ⁃ ܦྺ • ϞόΠϧήʔϜ։ൃʢαʔόʔαΠυʣ • ݄͔Β48&5άϧʔϓ 2
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. "QQJVNΛͬͨ 6*ςετʹ৮ΕͯΈͨײ 3
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͕͔͔࣌ؒΔ 4
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ςετམͪͨͱ͖ʹεΫγϣݟͯΑ͔͘Βͳ͍ 5 w
݁ہςετ͕࣮ߦ͞ΕΔ༷ࢠΛ؍͢Δඞཁ͕͋Δ ࣮ࡍ ຊདྷظ͢Δͷ ͳ͔ͥϑΥʔϜ͕දࣔ͞Ε͍ͯͳ͍
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Կͱ͔ը͍ͨ͠ 6
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. 2VJDL5JNFͰը 7 w
ҰԠՄೳͰ͋Δ͕ w $6*͔Β͑ͳ͍ͷͰෆศ
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. γϛϡϨʔλͷը໘Λը͢Δ ίϚϯυ͕͋ΔΒ͍͠ 8
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. recordVideo w xcrun
simctl io booted recordVideo ./test.mov w ىಈ͍ͯ͠ΔγϛϡϨʔλͷը໘Λըͯ͘͠ΕΔ w $USM DͰըऴྃ w ෳࡶͳ͜ͱͰ͖ͳ͍ w ςετͷ։࢝ͱऴྃʹ߹ΘͤͯίϚϯυΛ࣮ߦ͢Ε ࣗಈԽͰ͖ͦ͏ 9 ಈ࡞֬ೝXcode 9.1 XcodeͷϦϦʔεϊʔτʹΑΔͱ8.2͔ΒՃ͞ΕͨΑ͏Ͱ͢ h-ps://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/IntroducDon.html#//apple_ref/doc/uid/ TP40001051-CH1-SW9
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ॻ͍ͯΈ·ͨ͠ w ςετ։࢝લʹrecordVideoΛόοΫάϥϯυͰ࣮ߦ
w ϓϩηε*%Λอଘ͓ͯ͘͠ w ςετऴྃޙʹ4*(*/5ʢDUSM DʣΛ࣮ߦͯ͠ըऴྃ 10 # recordVideoΛόοΫάϥϯυͰ࣮ߦ xcrun simctl io booted recordVideo screenshots/test.mov & # ϓϩηεIDΛอଘ PID=`echo $!` # ςετ࣮ߦ bundle exec rspec spec/scenario_test.rb # όοΫάϥϯυͷrecordVideoʹSIGINTγάφϧΛૹ৴ kill -2 $PID
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. Ͱ͖ͨ 11
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ͬͱศརʹ͍ͨ͠ w γϛϡϨʔλͷσόΠεJ04ͷόʔδϣϯΛࢦఆ͍ͨ͠
⁃ xcrun simctl io booted recordVideo ./test.mov ⁃ bootedىಈ͍ͯ͠ΔγϛϡϨʔλͱ͍͏ҙຯ ⁃ ෳͷγϛϡϨʔλ͕ىಈ͍ͯ͠Δ߹ʹը͢ΔγϛϡϨʔλΛࢦ ఆ͍ͨ͠ w ςετέʔεຖʹಈըΛׂ͍ͨ͠ w ࣦഊͨ͠ςετέʔε͚ͩಈըΛ͍ͨ͠ 12
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ॻ͍ͯΈ·ͨ͠WFS̎ w HJTU
⁃ HPPHM;6W/4 ⁃ "QQJVN SVCZ STQFDΛఆ w ը͢ΔγϛϡϨʔλΛɺJ04όʔδϣϯͰࢦఆ ⁃ capabilityͷdeviceName, platformVersion ⁃ xcrun simctl listͰγϛϡϨʔλͷ6%*%Λಛఆ w before(:each) after(:each)Ͱըͷ։࢝ɺऴྃ w ࣦഊͨ͠߹͚ͩಈըΛ͢ 13
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. σϞ 14 εΫγϣ
ಈը
Copyright (C) DeNA Co.,Ltd. All Rights Reserved. ·ͱΊ w γϛϡϨʔλͰͷ6*ςετͷ༷ࢠΛը͢Δํ๏Λհ
⁃ xcrun simctl io booted recordVideoศར ⁃ recordVideoࣗମAppiumrubyʹґଘ͍ͯ͠ͳ͍ͷͰɺ ৭ʑͳ͍ํ͕Ͱ͖ͦ͏ w HJTU ⁃ HPPHM;6W/4 15