SlideShare una empresa de Scribd logo
1 de 15
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Pop-up Loft
Automated Device Testing: The Right Way
Nikhil Dabhade
Senior Cloud Solutions Engineer | AWS Mobile
Email: nikdabn@amazon.com
Twitter: @in_nikoftime
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Wait, what ?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
I can fix this!
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
But why test on real devices?
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Test on actual hardware your users will use
Performance of real devices is faster
Bug replication is easy
Test with real world conditions
Access to sensors, battery data and camera
No false positives
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Challenges in mobile testing space
• Fragmentation of devices
• Reliable access to real devices
• Testing: UI vs. functional
• Different test frameworks
• Continuous integration for mobile-automation testing
• Reporting from tests
• Access to test artifacts
• Granular control and maintenance of devices and test setup
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What is AWS Device Farm?
Automated testing Remote Access
Test your app in parallel against a large collection
of physical devices in the AWS Cloud
Gesture, swipe, and interact with devices in real
time, directly from your web browser or local host
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
What are we going to do today?
• Discuss ways to make tests a first class citizen.
• Run Tests on Device Farm
• CI/CD integration
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
How to make testing on real devices a second nature?
• CI/CD integration.
• Fast on-demand access to real devices.
• Easy IDE and command line access.
• Quick access to test results.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Automation Testing on Device Farm
Your App
UI Automation
UI Automator
XCTest
AWS Device FarmPopular Test Frameworks
Detailed Test
Reports
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Demo: Run Tests on Device Farm
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Demo: CI/CD integration
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
CI/CD integration
• For Jenkins, download the official plugin for AWS Device Farm “aws-device-
farm”
– https://github.com/awslabs/aws-device-farm-jenkins-plugin
• For other CI/CD systems, build a simple one time script using AWS CLI and use
a Post Build plugin
– Reference blog: https://aws.amazon.com/blogs/mobile/get-started-with-the-aws-
device-farm-cli-and-calabash-part-1-creating-a-device-farm-run-for-android-calabash-
test-scripts/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
Pop-up Loft
aws.amazom.com/mobile
@AWSForMobile
Everything you need to connect
your mobile app to the cloud

Más contenido relacionado

Más de Amazon Web Services

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAmazon Web Services
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightAmazon Web Services
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotAmazon Web Services
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Amazon Web Services
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?Amazon Web Services
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksAmazon Web Services
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Amazon Web Services
 

Más de Amazon Web Services (20)

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei server
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSight
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced Attacks
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
 

Automated Device Testing - The Right Way: Mobile Week SF

  • 1. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Pop-up Loft Automated Device Testing: The Right Way Nikhil Dabhade Senior Cloud Solutions Engineer | AWS Mobile Email: nikdabn@amazon.com Twitter: @in_nikoftime
  • 2. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Wait, what ?
  • 3. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved
  • 4. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved I can fix this!
  • 5. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved But why test on real devices?
  • 6. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Test on actual hardware your users will use Performance of real devices is faster Bug replication is easy Test with real world conditions Access to sensors, battery data and camera No false positives
  • 7. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Challenges in mobile testing space • Fragmentation of devices • Reliable access to real devices • Testing: UI vs. functional • Different test frameworks • Continuous integration for mobile-automation testing • Reporting from tests • Access to test artifacts • Granular control and maintenance of devices and test setup
  • 8. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What is AWS Device Farm? Automated testing Remote Access Test your app in parallel against a large collection of physical devices in the AWS Cloud Gesture, swipe, and interact with devices in real time, directly from your web browser or local host
  • 9. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved What are we going to do today? • Discuss ways to make tests a first class citizen. • Run Tests on Device Farm • CI/CD integration
  • 10. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved How to make testing on real devices a second nature? • CI/CD integration. • Fast on-demand access to real devices. • Easy IDE and command line access. • Quick access to test results.
  • 11. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Automation Testing on Device Farm Your App UI Automation UI Automator XCTest AWS Device FarmPopular Test Frameworks Detailed Test Reports
  • 12. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Demo: Run Tests on Device Farm
  • 13. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Demo: CI/CD integration
  • 14. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved CI/CD integration • For Jenkins, download the official plugin for AWS Device Farm “aws-device- farm” – https://github.com/awslabs/aws-device-farm-jenkins-plugin • For other CI/CD systems, build a simple one time script using AWS CLI and use a Post Build plugin – Reference blog: https://aws.amazon.com/blogs/mobile/get-started-with-the-aws- device-farm-cli-and-calabash-part-1-creating-a-device-farm-run-for-android-calabash- test-scripts/
  • 15. © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved Pop-up Loft aws.amazom.com/mobile @AWSForMobile Everything you need to connect your mobile app to the cloud