DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Android Automation Testing with Espresso

Android Automation Testing with Espresso

Espresso testing framework for Android apps lets you write concise, reliable UI tests. pCloudy.com lets you run these scripts on multiple mobile devices.

Bala Murugan user avatar by
Bala Murugan
·
Apr. 13, 17 · Mobile Zone · Tutorial
Like (3)
Save
Tweet
5.10K Views

Join the DZone community and get the full member experience.

Join For Free

Now you can run your Espresso Scripts on hundreds of mobile devices over pCloudy.com.

Espresso is a testing framework for Android apps. The platform allows you to write concise and reliable Android UI tests. pCloudy.com provides you the platform to run these scripts on multiple mobile devices of your choice.

Here are the steps for running your test scripts on multiple Android devices:

  • Login at www.pcloudy.com with your registered Email ID & Password.
  • Choose Instrumentation Type based on the test scripts you’ve written. pCloudy provides support for Instrumentation Type. You can use (InstrumentationTestRunner, AndroidJUnitRunner) for Android. For more information, see Instrumentation in the Testing Fundamentals section of the Android Developer Tools documentation.
  • Go to the Automator Page.
  • Select your Android OS version & manufacturer.
  • Choose Espresso (to run Espresso Scripts).
  • Select Instrumentation Type (TestInstrumentationRunner/AndroidJUnitRunner).
  • Select the application .apk file (the app to be tested).
  • Select the test script .apk file (the Test Script developed for testing).
  • Enter single device execution time (time required for the entire script to be executed on single device).
  • Enter the name of your test cycle (this name will represent your test cycle).
  • Click on Schedule Test Cycle.

Espresso Automation Execution

In the next step, you need to confirm the schedule of the test automation. Here, you can see your selected application, test script, device, etc.

Confirm Test Cycle

Further, you'll get a pop-up message of your test automation schedule confirmation.
Click on OK to proceed.

Test Cycle Scheduling Successful

Go to your mailbox and open the pCloudy Automation Alert mail.
Click on the given link, “Click to View Report."

Report

Finally, you get the result of your scheduled test automation.

Automator Report


Android (robot) Testing

Published at DZone with permission of Bala Murugan. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Image Classification Using SingleStore DB, Keras, and Tensorflow
  • Making Your SSR Sites 42x Faster With Redis Cache
  • How to Determine if Microservices Architecture Is Right for Your Business
  • How to Test JavaScript Code in a Browser

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo