SlideShare a Scribd company logo
Continuous Testing on Emulators
Using the Espresso Test Automation
Framework
Clint Sprauve, Product Marketing Director, Mobile
Chandra Yalangi, Product Manager EMU/SIM, Sauce Connect
THE CHALLENGES OF MOBILE TEST AUTOMATION
2
MASSIVE VARIABILITY MAKES MOBILE TESTING COMPLEX
Web
Hybrid
Native
Device
Fragmentation
Various
App Types
Geographically
Dispersed
Users
WHY MOBILE TEST AUTOMATION FRAMEWORKS?
3
Appium
6
Benefits of Using Real Devices:
Benefits of Using Emulators & Simulators….
● Massive parallel concurrency for fastest build times
● Common OS/browser versions
● Price sensitivity
● Extremely low error rates
● Immediate availability supports CI/CD
● New Device and OS support within a week
● Custom OS and browser
● Pixel perfect display testing
● Hardware dependencies
● Panel/compatibility testing
● Replicate an issue on the exact model
Device Testing (on Wi-Fi
Networks + Networks
Simulation Tools)
Private
Device
(high security
& flexibility)
Public Device
(extensive coverage, optimal
for manual, exploratory, triage)
Emulator & Simulator
(scalability, resilience, price)
Different Needs Require Different Solutions
6/27/18 © Sauce Labs, Inc.
Access to a scalable testing platform enables you:
• Run tests in parallel to speed releases
• Test more scenarios per unit of time
7
Parallel Testing (1
minute)
Serial Testing (9
minutes)
iOS Device
1
iOS
Device2
iOS
Device3
Android
1
Android
2
Android
3
Emu/sim
1
Emu/sim
2
Emu/sim
3
iOS Device
1
iOS Device
2
iOS Device
3
Android
1
Android
2
Android
3
Emu/sim
1
Emu/sim
2
Emu/sim
3
Massive Parallel Execution at Scale
Espresso
What is Espresso?
Test Automation Framework from Google
Targeted at Developers
To Test Mobile Applications on Android
Example
Valid Credentials
Invalid Credentials
Account Locked
Mobile App
Test
Username
PasswordBusiness
Logic
Black Box Testing
1. Valid user
2. Locked user
• Flaky, Slow tests
Mobile App
Test
Username
Password
Test_Valid_Login
Test_Invalid_Login
• Close to real world scenario
Gray Box Testing
Mobile App
Test
Username
PasswordBusiness
Logic
Mock
Business
Logic
Test_Valid_Login
Test_Invalid_Login
• Reliable, Fast tests • Don’t test all components
E-commerce Flow
Sign In Add to Cart
Shipment
Details
Checkout
Espresso
Test Type Supported by Espresso?
Black Box Testing Yes
Gray Box Testing Yes, True power of Espresso
Test Pyramid
Unit Tests
Gray Box UI
Tests
E2E
Number of tests
Fidelity
Execution Time
Appium vs. Espresso
Appium vs. Espresso
Framework Native App Hybrid App Mobile Web
Espresso (Android Only)
Appium (iOS and Android)
Appium vs. Espresso
Language Appium Espresso
Java
Kotlin
JavaScript
Python
Ruby
Objective C
C#
PHP
Speed of Execution
Espresso vs. Appium
Local Emulator Espresso 2x faster
Remote Emulator Espresso ~5x faster
Test Synchronization
Appium Burden is on test developers
Espresso Framework handles this behind the scenes
Demo
Espresso on Emulators
>sauce-runner-virtual
AUT.apk
suite.apk
-d “Google Pixel”
-d “Samsung S8”
Device1: Test1 Pass
Device1: Test2 Pass
Device2: Test1 Fail
Device2: Test2 Pass
CUSTOMER NETWORK SAUCE NETWORK
⟳ adb suite ⟳ adb suite
All Tests Completed
Demo
Emulators and Simulators Roadmap
Framework Q4-18 H1-19
Espresso
XCUITest
Screenshots
Beta
Test level parallelization
Q&A

More Related Content

PDF
Mobile Test Automation
PDF
Boston meetup blaze_meter_feb2017
PDF
Top Best Practices for Successful Mobile Test Automation
PDF
Mobile Test Automation
PPT
Mobile applications and automation testing
PDF
Meetup kickoff slides - Perfecto Mobile, September 2014
PDF
Cross Platform Mobile Test Automation using Selenium WebDriver by Perfecto Mo...
PPTX
Appium overview (Selenium Israel #2, Feb. 2014)
Mobile Test Automation
Boston meetup blaze_meter_feb2017
Top Best Practices for Successful Mobile Test Automation
Mobile Test Automation
Mobile applications and automation testing
Meetup kickoff slides - Perfecto Mobile, September 2014
Cross Platform Mobile Test Automation using Selenium WebDriver by Perfecto Mo...
Appium overview (Selenium Israel #2, Feb. 2014)

What's hot (20)

PDF
Webinar learn how to test any mobile app style from within eclipse using real...
PDF
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
PDF
SauceCon 2017: Mobile Test Pyramid
PPT
Appium tutorial| Appium Training
PPTX
Testing on Real Devices vs. Emulators
PDF
SauceCon 2017: Are Manual Testers Needed In Automated DevOps World?
PPTX
Appium meet up noida
PPTX
Everything You Need To Know about Appium and Selenium
PDF
Appium: Automation for Mobile Apps
PDF
[Binh nguyen] Mobile Application Automation Testing iOS and Android
PDF
Mobile automation – should I use robotium or calabash or appium?
PPTX
Appium testing api
PPTX
Mastering Mobile Test Automation with Appium
PDF
Achieving 100% mobile test coverage perfecto mobile
PPT
Appium training online|Mobile automation testing with appium
PDF
Introduction To Mobile-Automation
PPTX
ATAGTR2017 Appium
PPTX
Live Panel: Appium Core Committers Answer Your Questions
PDF
Using Selenium To Test Mobile? Meet Appium!
PDF
Appium Interview Questions and Answers | Edureka
Webinar learn how to test any mobile app style from within eclipse using real...
[Srijan Wednesday Webinar] Mastering Mobile Test Automation with Appium
SauceCon 2017: Mobile Test Pyramid
Appium tutorial| Appium Training
Testing on Real Devices vs. Emulators
SauceCon 2017: Are Manual Testers Needed In Automated DevOps World?
Appium meet up noida
Everything You Need To Know about Appium and Selenium
Appium: Automation for Mobile Apps
[Binh nguyen] Mobile Application Automation Testing iOS and Android
Mobile automation – should I use robotium or calabash or appium?
Appium testing api
Mastering Mobile Test Automation with Appium
Achieving 100% mobile test coverage perfecto mobile
Appium training online|Mobile automation testing with appium
Introduction To Mobile-Automation
ATAGTR2017 Appium
Live Panel: Appium Core Committers Answer Your Questions
Using Selenium To Test Mobile? Meet Appium!
Appium Interview Questions and Answers | Edureka
Ad

Similar to Continuous testing on emulators using the espresso test automation framework (20)

PDF
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
PPT
SynapseIndia mobile apps
PDF
Stop guessing, start testing – mobile testing done right - Timo Euteneuer
PDF
Top 4 Popular Android Test Automation Frameworks During an Economic Downturn.pdf
PDF
Velocity2013 mobile ci_intuit
PDF
Velocity2013 mobile ci_intuit
PDF
Speed to Market in Mobile Development
PDF
Test Automation for Mobile Applications
PPTX
Mobile Application Testing
PPTX
Mobile Application Testing
PPTX
Mobile Testing
PDF
Top AI Testing Tools to Streamline Your Automation Efforts.pdf
PPTX
Testing the UI of Mobile Applications
PPTX
Xamarin Test Cloud Presentation by the Virtual Xamarin Users Group
PPTX
Xamarin Test Cloud Presentation
PDF
Discover the power of QA automation testing
PDF
The Essentials of Mobile App Testing and Monitoring
PDF
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
PPTX
Droid con slides 2013 mobileci-v1.0
PDF
Best Mobile Test Automation Solutions: Beyond Appium
Velocity Conference: Increasing Speed To Market In Mobile Development Through...
SynapseIndia mobile apps
Stop guessing, start testing – mobile testing done right - Timo Euteneuer
Top 4 Popular Android Test Automation Frameworks During an Economic Downturn.pdf
Velocity2013 mobile ci_intuit
Velocity2013 mobile ci_intuit
Speed to Market in Mobile Development
Test Automation for Mobile Applications
Mobile Application Testing
Mobile Application Testing
Mobile Testing
Top AI Testing Tools to Streamline Your Automation Efforts.pdf
Testing the UI of Mobile Applications
Xamarin Test Cloud Presentation by the Virtual Xamarin Users Group
Xamarin Test Cloud Presentation
Discover the power of QA automation testing
The Essentials of Mobile App Testing and Monitoring
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Droid con slides 2013 mobileci-v1.0
Best Mobile Test Automation Solutions: Beyond Appium
Ad

More from Sauce Labs (20)

PDF
Simplify Salesforce Testing with AI-Driven Codeless Tools
PDF
Testing on Mobile Devices with Location Services
PDF
Your Framework for Success: introduction to JavaScript Testing at Scale
PDF
Automating Hybrid Applications with Appium
PDF
Quality at Speed: More API Testing, Less UI Testing
PPTX
Creating Digital Confidence with Test Automation
PDF
Just Enough (Automated) Testing
PDF
Using Axe to Add Accessibility Checks to Your Existing Selenium Tests
PDF
How Open Source Helps to Bring Back Product Obsession
PDF
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
PDF
[Deu] Test Automatisierung Mit Web Driver.io
PDF
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
PDF
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
PDF
How to Measure Success in Continuous Testing
PDF
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
PDF
5 Steps to Jump Start Your Test Automation
PDF
Sauce Labs Webinar: Rising Importance of Software Testing
PDF
BDD With Selenide by Hima Bindu Peteti
PDF
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
PDF
Continuous Delivery for "Mature" Codebases by Melisa Benua
Simplify Salesforce Testing with AI-Driven Codeless Tools
Testing on Mobile Devices with Location Services
Your Framework for Success: introduction to JavaScript Testing at Scale
Automating Hybrid Applications with Appium
Quality at Speed: More API Testing, Less UI Testing
Creating Digital Confidence with Test Automation
Just Enough (Automated) Testing
Using Axe to Add Accessibility Checks to Your Existing Selenium Tests
How Open Source Helps to Bring Back Product Obsession
Webinar: A Sneak Peek at Selenium 4 with Simon Stewart
[Deu] Test Automatisierung Mit Web Driver.io
Accelerating Innovation: Leveraging Open Source to Optimize Your Shift-Left I...
Accelerating Your Digital Agenda with Continuous Testing ft. Forrester
How to Measure Success in Continuous Testing
From Zero to 2.7 Million - How Verizon Media Embraced Open Source to Accelera...
5 Steps to Jump Start Your Test Automation
Sauce Labs Webinar: Rising Importance of Software Testing
BDD With Selenide by Hima Bindu Peteti
Closer To the Metal - Why and How We Use XCTest and Espresso by Mario Negro P...
Continuous Delivery for "Mature" Codebases by Melisa Benua

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Machine learning based COVID-19 study performance prediction
PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Spectroscopy.pptx food analysis technology
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
sap open course for s4hana steps from ECC to s4
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MYSQL Presentation for SQL database connectivity
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Spectroscopy.pptx food analysis technology
A comparative analysis of optical character recognition models for extracting...
sap open course for s4hana steps from ECC to s4
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Continuous testing on emulators using the espresso test automation framework

  • 1. Continuous Testing on Emulators Using the Espresso Test Automation Framework Clint Sprauve, Product Marketing Director, Mobile Chandra Yalangi, Product Manager EMU/SIM, Sauce Connect
  • 2. THE CHALLENGES OF MOBILE TEST AUTOMATION 2 MASSIVE VARIABILITY MAKES MOBILE TESTING COMPLEX Web Hybrid Native Device Fragmentation Various App Types Geographically Dispersed Users
  • 3. WHY MOBILE TEST AUTOMATION FRAMEWORKS? 3 Appium
  • 4. 6 Benefits of Using Real Devices: Benefits of Using Emulators & Simulators…. ● Massive parallel concurrency for fastest build times ● Common OS/browser versions ● Price sensitivity ● Extremely low error rates ● Immediate availability supports CI/CD ● New Device and OS support within a week ● Custom OS and browser ● Pixel perfect display testing ● Hardware dependencies ● Panel/compatibility testing ● Replicate an issue on the exact model Device Testing (on Wi-Fi Networks + Networks Simulation Tools) Private Device (high security & flexibility) Public Device (extensive coverage, optimal for manual, exploratory, triage) Emulator & Simulator (scalability, resilience, price) Different Needs Require Different Solutions
  • 5. 6/27/18 © Sauce Labs, Inc. Access to a scalable testing platform enables you: • Run tests in parallel to speed releases • Test more scenarios per unit of time 7 Parallel Testing (1 minute) Serial Testing (9 minutes) iOS Device 1 iOS Device2 iOS Device3 Android 1 Android 2 Android 3 Emu/sim 1 Emu/sim 2 Emu/sim 3 iOS Device 1 iOS Device 2 iOS Device 3 Android 1 Android 2 Android 3 Emu/sim 1 Emu/sim 2 Emu/sim 3 Massive Parallel Execution at Scale
  • 7. What is Espresso? Test Automation Framework from Google Targeted at Developers To Test Mobile Applications on Android
  • 8. Example Valid Credentials Invalid Credentials Account Locked Mobile App Test Username PasswordBusiness Logic
  • 9. Black Box Testing 1. Valid user 2. Locked user • Flaky, Slow tests Mobile App Test Username Password Test_Valid_Login Test_Invalid_Login • Close to real world scenario
  • 10. Gray Box Testing Mobile App Test Username PasswordBusiness Logic Mock Business Logic Test_Valid_Login Test_Invalid_Login • Reliable, Fast tests • Don’t test all components
  • 11. E-commerce Flow Sign In Add to Cart Shipment Details Checkout
  • 12. Espresso Test Type Supported by Espresso? Black Box Testing Yes Gray Box Testing Yes, True power of Espresso
  • 13. Test Pyramid Unit Tests Gray Box UI Tests E2E Number of tests Fidelity Execution Time
  • 15. Appium vs. Espresso Framework Native App Hybrid App Mobile Web Espresso (Android Only) Appium (iOS and Android)
  • 16. Appium vs. Espresso Language Appium Espresso Java Kotlin JavaScript Python Ruby Objective C C# PHP
  • 17. Speed of Execution Espresso vs. Appium Local Emulator Espresso 2x faster Remote Emulator Espresso ~5x faster
  • 18. Test Synchronization Appium Burden is on test developers Espresso Framework handles this behind the scenes
  • 19. Demo
  • 20. Espresso on Emulators >sauce-runner-virtual AUT.apk suite.apk -d “Google Pixel” -d “Samsung S8” Device1: Test1 Pass Device1: Test2 Pass Device2: Test1 Fail Device2: Test2 Pass CUSTOMER NETWORK SAUCE NETWORK ⟳ adb suite ⟳ adb suite All Tests Completed
  • 21. Demo
  • 22. Emulators and Simulators Roadmap Framework Q4-18 H1-19 Espresso XCUITest Screenshots Beta Test level parallelization
  • 23. Q&A