Transcript
Page 1: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

John Chang 張書源Technology Evangelist

October 2016

使用 AWS Device Farm 在雲端測試你的行動 App

Page 2: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Some of the best mobile apps run on AWS

Page 3: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Quality control must be continuous

Page 4: Getting Started with AWS Device Farm

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

Page 5: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Let’s test!

Page 6: Getting Started with AWS Device Farm

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 cloudExecute tests in parallel - results available in minutesConfigurable test environments (language, location, device states, etc.) for simulating real-world scenariosView test results - screenshots, device logs, and performance data

Page 7: Getting Started with AWS Device Farm

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

Page 8: Getting Started with AWS Device Farm

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

Page 9: Getting Started with AWS Device Farm

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

Page 10: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Show me!

Page 11: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 12: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 13: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 14: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 15: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 16: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 17: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Automated Testing with AWS Device Farm

Page 18: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

But I want to “experience” the device!

Page 19: Getting Started with AWS Device Farm

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

Page 20: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Select a device View historical sessionsInteract with the device

Remote Access

Page 21: Getting Started with AWS Device Farm

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)

Page 22: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Demo Time!

Page 23: Getting Started with AWS Device Farm

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!” 訊息到模擬器或是手機上

AWSMobile Hub

AmazonSNS Mobile client

Page 24: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

挑戰 B: 使用Device Farm測試 Mobile App

Step 1

完成挑戰 A

Step2

使用 Device Farm 測試Mobile App 在三個不同裝置的執行畫面

測試Android或iOS裝置

AWSMobile Hub

Mobile clientAWSDevice Farm

Page 25: Getting Started with AWS Device Farm

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 積分!

Page 26: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Page 27: Getting Started with AWS Device Farm

AWS Cloud Kata for Start-Ups and Developers

Thank you!Thank you!


Recommended