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
ハードウェア連携が必要なプロダクトにおける自動テストの書き方
Search
Tomoki Yamashita
March 10, 2026
Technology
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ハードウェア連携が必要なプロダクトにおける自動テストの書き方
Tomoki Yamashita
March 10, 2026
More Decks by Tomoki Yamashita
See All by Tomoki Yamashita
STORES_決済端末2ってAndroidなんでしょ__ほんとうかな__.pdf
tomorrowkey
0
83
モバイルとRubyとわたし
tomorrowkey
0
89
BiDiってなんだ?
tomorrowkey
2
820
文字列操作の達人になる ~ Kotlinの文字列の便利な世界 ~ - Kotlin fest 2025
tomorrowkey
2
2.1k
Ebisu mobile #11 - Predictive Backに対応する
tomorrowkey
1
180
AI協同時代にモバイルエンジニアが備えるべき開発環境の話
tomorrowkey
2
460
5分で完全理解するNav3との向き合い方
tomorrowkey
0
330
テストを楽に書きたい
tomorrowkey
2
460
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
1.5k
Other Decks in Technology
See All in Technology
Copilot Coworkで「みのるん式」やってみた
minorun365
PRO
2
1.5k
(swiftc) NonCopyableとライフタイム修飾子
teamhimeh
0
170
渡米前の準備を制す!re:Invent 2026徹底準備術 / The Ultimate Preparation Guide for re:Invent 2026
yuj1osm
1
540
公共システムAdventCalendar2026
toru_kubota
0
150
Technical Project Manager の役割とやりがい、少しだけ AI
yoshiiryo1
0
590
Don't write the architecture only in the prompt.
neohsu
0
310
re:Inventで、人生は変わったのか? / growth-builders-hub-1-reinvent-2026
mhrtech
2
310
増え続けるプロダクトの品質をどう担保するか。ProductSpecとTypeScriptによる取り組み
joere
3
380
これだけは抑えておきたい!後悔しない re:Invent の過ごし方 / AWS re:Invent 2026 prestudy
kinunori
2
700
E2Eってつらくないですか?E2Eの管理コストを下げる手段とその実践
akaboshinit
6
3k
1週間、Opus封印でお願いします
kintotechdev
1
460
スマートロックを支えるFlutter × ネイティブ連携の実践 / Flutter and Native Integration in Practice: Powering Smart Locks
bitkey
PRO
0
150
Featured
See All Featured
Music & Morning Musume
bryan
48
7.5k
Ethics towards AI in product and experience design
skipperchong
2
460
The World Runs on Bad Software
bkeepers
PRO
72
12k
The Invisible Side of Design
smashingmag
301
52k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Everyday Curiosity
cassininazir
0
390
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
920
4 Signs Your Business is Dying
shpigford
187
23k
Designing Experiences People Love
moore
143
24k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
The Mindset for Success: Future Career Progression
greggifford
PRO
0
560
Transcript
ハードウェア連携が必要なプロダクトにおける 自動テストの書き方 2026.03.10 Ebisu.mobile #13 〜STORESのモバイルテストの現在地〜 @tomorrowkey
自己紹介 @tomorrowkey <Tomoki Yamashita> Android Engineer, STORES, Inc. ❤️ Kotlin,
Ruby, Java, Swift, TypeScript/JavaScript … Android 16年生 決済2年生 2 / 14
背景 STORESはいまテストに力を入れています。 どんなテストツールを使っているかはプロダクトによって効果的なものを採用し ています。 Espresso, XCUITest, Swift Testing, Appium, Maestro
STORES 決済ではAppiumを使用してAndroid, iOS共通のE2Eテストを構築してい ます。 3 / 14
STORES 決済の仕組み 1. 決済金額を入力する 2. 決済方法選択画面でクレジットカードを選択する 3. クレジットカードを決済端末にかざす 4. 決済完了することを確認する
4 / 14
Done is better than perfect 5 / 14
自動化のレベル 6 / 14
なにをあきらめるか テストケース 自動化が難しいところはコア機能なので、そのテストケースを諦めてしまった ら、自動テストの価値がない 完全自動化 自動テストのオートメーションと人間の操作による、半自動化 7 / 14
できたもの 0:00 8 / 14
どうやったのか Appiumのテストコードです。 1 def wait_pay_by_contactless 2 say(' クレジットカードをタッチしてください') 3 driver.wait_true
do 4 Page::App::ReceiptPage.new(driver, platform).title == ' 決済完了' 5 end 6 end 1 def say(message, voice: 'Kyoko', rate: 200) 2 return unless RUBY_PLATFORM.include?('darwin') 3 4 options = { 5 '--voice' => voice, 6 '--rate' => rate, 7 }.compact.map { |k, v| "#{k} '#{v}'" }.join(' ') 8 9 Process.detach(spawn("say #{options} '#{message}'")) 10 end 9 / 14
技術スタック Appium Appium Clients appium/ruby_lib_core Appium Driver appium/appium-xcuitest-driver appium/appium-uiautomator2-driver RSpec
10 / 14
現在地 iOS, Androidの共通のテストコードがAppiumで書かれている 代表的な決済方法のテストが実装されている クレジットカード決済 電子マネー決済 QRコード決済 11 / 14
「得られたもの」と「見えてきた課題」 得られたもの 再現が可能なテストが実装された テスト実行に伴走するだけでも、手動テストより楽に感じる テスト内容が録画されるの便利 課題 テスト実行のハードルを感じている すでに要因は分析済みで解決に向けて動き始めている 複数人数でテスト実行するので結果を突合するための仕組みがほしい プラットフォーム間での仕様の差異が見えてきた
おそい 12 / 14
まとめ 明確な高難度の課題があったとしても、できるところまで一旦やってみるといい ぞ 13 / 14
14 / 14