Top Banner
Beyond Appium: Testing with Espresso and the Real Device Cloud Asaf Saar, Director Product Management, RDC Clint Sprauve, Director Product Marketing, Mobile
14

Beyond Appium: Testing with Espresso & the Real Device Cloud

Jan 29, 2018

Download

Technology

Sauce Labs
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Beyond Appium: Testing with Espresso & the Real Device Cloud

Beyond Appium:Testing with Espresso and the Real Device Cloud

Asaf Saar, Director Product Management, RDC

Clint Sprauve, Director Product Marketing, Mobile

Page 2: Beyond Appium: Testing with Espresso & the Real Device Cloud

By 2018, more than 50 percent of users will go to a tablet or smartphone first for all online activities

THE WORLD GOES MOBILE

2

Page 3: Beyond Appium: Testing with Espresso & the Real Device Cloud

IT’S MOBILE FIRST, BUT NOT MOBILE ONLYTHE NEED FOR MOBILE WEB TESTING

45% 50% 5%Year-On-Year Change:

-20% +30%

Year-On-Year Change: Year-On-Year Change:

-5%

Laptops &Desktops

MobilePhones

TabletDevices

Source: Digital in 2017: Global Review

More than half of the world’s web traffic now comes from mobile devices

3

Page 4: Beyond Appium: Testing with Espresso & the Real Device Cloud

IMPACT OF POOR MOBILE QUALITY

Source: The 2016 Mobile App Report, ComScore

THE CONSEQUENCES OF POOR APP QUALITY ARE HIGH

● User frustration

● Lost revenue

● App abandonment

● Bad Reviews and word of mouth

● Damage to brand reputation

4

A 4.5 star app is downloaded 3.7x more than a 3.5 star app.

x3.7

79%Of users will only retry an app once or twice if it fails to work the first time.

Page 5: Beyond Appium: Testing with Espresso & the Real Device Cloud

THE CHALLENGES ARE REAL

5

MASSIVE VARIABILITY MAKES MOBILE TESTING COMPLEX

WebHybridNative

DeviceFragmentation

VariousApp Types

Geographically Dispersed

Users

Page 6: Beyond Appium: Testing with Espresso & the Real Device Cloud

Test Automation Frameworks

Page 7: Beyond Appium: Testing with Espresso & the Real Device Cloud

WHY MOBILE AUTOMATION FRAMEWORKS?

7

Page 8: Beyond Appium: Testing with Espresso & the Real Device Cloud

Appium is an open-source tool for automating

native, mobile web, and hybrid applications on iOS

and Android platforms

WHAT IS APPIUM?

8

Page 9: Beyond Appium: Testing with Espresso & the Real Device Cloud

▪ Automate native, web and hybrid mobile apps

▪ Test on real devices and emulators/simulators

▪ Use any language that Selenium supports (Java, Python, C#, Ruby, JavaScript, PHP, etc.)

▪ Single framework for both iOS and Android

▪ Supported by a large Open Source Community

ADVANTAGES OF APPIUM

9

Page 10: Beyond Appium: Testing with Espresso & the Real Device Cloud

Espresso is a Test Automation frameworks for Android that provides

a set of APIs to build UI tests to test user flows within an app. These

APIs let you write automated UI tests that are concise and that run

reliably. Espresso is well-suited for writing white box-style automated

tests, where the test code utilizes implementation code details from

the app under test

WHAT IS ESPRESSO?

10

Page 11: Beyond Appium: Testing with Espresso & the Real Device Cloud

ADVANTAGES OF ESPRESSO

11

▪ Espresso test development is easy○ Integrated with Android Studio○ Automatically updated○ Based on Java & JUnit○ CI/CD Ready

▪ Simple, super fast and reliable

▪ Automatic synchronization ○ Automatic synchronization results in less flakiness○ Ensures your activity is started before the tests run

Page 12: Beyond Appium: Testing with Espresso & the Real Device Cloud

Demo

Page 13: Beyond Appium: Testing with Espresso & the Real Device Cloud

Questions?

Page 14: Beyond Appium: Testing with Espresso & the Real Device Cloud

MOBILE APP TESTING FRAMEWORK RESOURCES

Source: The 2016Mobile App Report, ComScore

● Continuous Integration for Espresso - The Sauce Labs Cookbook ...

● 3 Step Guide On Parallel Testing on Multiple Mobile Devices ...

● Mobile Testing Automation Framework – Choose The Right One …

● https://github.com/testobject/espresso-reference-test

● https://github.com/testobject/espresso-runner

● https://wiki.saucelabs.com/display/DOCS/Continuous+Integration+for+Espresso

● Additional resources on open source frameworks

14