This document discusses using AWS Device Farm to test mobile apps in the cloud. Some key points:
- AWS Device Farm allows testing mobile apps on a large fleet of real iOS, Android and Fire OS devices without needing physical devices. Tests can run in parallel and results are available quickly.
- It provides access to non-rooted/non-jailbroken devices with the same profiles as customers. Tests can simulate different scenarios by configuring language, location, device states etc.
- Popular automation frameworks like Appium, Calabash etc. can be used to run automated tests. Tests can also be integrated into continuous integration workflows.
- In addition to automated testing, remote access allows interacting with
2. AWS Cloud Kata for Start-Ups and Developers
Some of the best mobile apps run on AWS
3. AWS Cloud Kata for Start-Ups and Developers
Quality control must be continuous
4. AWS Cloud Kata for Start-Ups and Developers
Cost and complexity of effective testing is growing
Maintaining a lab with relevant devices is
a challenge (all different makes, models,
carriers & OS)
Manual testing on each device isn’t
practical
Building an automation platform and
managing the test infrastructure is
complex and expensive
6. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
Massive fleet of real iOS, Android, and Fire OS
devices in the cloud
Execute tests in parallel - results available in
minutes
Configurable test environments (language,
location, device states, etc.) for simulating real-
world scenarios
View test results - screenshots, device logs, and
performance data
7. AWS Cloud Kata for Start-Ups and Developers
Gain access to real devices in AWS cloud
Non-rooted/non-jailbroken smartphones and tablets
Same device profiles used by your customers
• Mix of manufacturer, make/model, OS version and carrier
• Includes OEM and carrier customizations
Plenty of capacity of each device
Data connectivity
• Each device has WiFi connection to internet
8. AWS Cloud Kata for Start-Ups and Developers
Various Testing Frameworks
Execute automated tests in popular automation
frameworks – Appium, Calabash, Espresso,
JUnit, XCTest, KIF, Robotium, UI Automation
Run built-in test suite, no scripting required
• Fuzz Test
• Explorer (Android)
Execute tests as part of Continuous Integration
or other workflows
9. AWS Cloud Kata for Start-Ups and Developers
Support for Continuous Integration
9
Integrate with the development flow - Developers can use our plug-ins and API
to automatically kick off tests from continuous integration systems like Jenkins
and other development tools.
Plugins SDKsCLI
11. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
12. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
13. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
14. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
15. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
16. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
17. AWS Cloud Kata for Start-Ups and Developers
Automated Testing with AWS Device Farm
18. AWS Cloud Kata for Start-Ups and Developers
But I want to
“experience” the device!
19. AWS Cloud Kata for Start-Ups and Developers
AWS Device Farm – Remote Access
Gesture, swipe and interact with
devices in real-time, directly
from your web browser
20. AWS Cloud Kata for Start-Ups and Developers
Select a device View historical sessionsInteract with the device
Remote Access
21. AWS Cloud Kata for Start-Ups and Developers
Pricing
$0.17 / device minute
(First 250 minutes free)
or
$250 / device slot / month
(Differentiated on Android and iOS)
23. AWS Cloud Kata for Start-Ups and Developers
挑戰 A: 建立推播通知的 Mobile App
Step 1
使用 Mobile Hub
建立一個Android
或是 iOS 應用程式
Step 2
加入SNS
推播訊息功能
Step 3
測試:按下Mobile App上
的按鈕之後,可以推送
“Hello, MOPCON!” 訊息
到模擬器或是手機上
AWS
Mobile Hub
Amazon
SNS
Mobile client
24. AWS Cloud Kata for Start-Ups and Developers
挑戰 B: 使用Device Farm測試 Mobile App
Step 1
完成挑戰 A
Step2
使用 Device
Farm 測試
Mobile App 在三
個不同裝置的執
行畫面
測試Android或
iOS裝置
AWS
Mobile Hub
Mobile clientAWS
Device Farm
25. AWS Cloud Kata for Start-Ups and Developers
挑戰 A & B: 獎品
Step Task Prize
1 使用 Mobile Hub 建立一個Android或是 iOS 應用程式
AWS 文件夾
2 加入推播訊息功能
3
測試:按下Mobile App上的按鈕之後,可以推送 “Hello, MOPCON!” 訊
息到模擬器或是手機上
Step Task Prize
1 完成挑戰 A
AWS 工具組
2 使用 Device Farm 測試 Mobile App 在三個不同裝置的執行畫面
• Android: Sony Sony Xperia Z5 (5.1.1), HTC One (5.1),
Samsung Galaxy Note5 (5.1.1)
• iOS: Apple iPhone 5s (9.3.1), Apple iPhone 6s (9.3.1), Apple
iPhone 6s Plus (9.3.1)
完成挑戰A & B且完整填寫問卷者,還可以得到價值50美元 AWS 積分!