DZone
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
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
11 Monitoring and Observability Tools for 2023
Learn more
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. 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 · Tutorial
Like (3)
Save
Tweet
Share
5.97K 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

  • Fixing Bottlenecks in Your Microservices App Flows
  • How To Create a Failover Client Using the Hazelcast Viridian Serverless
  • Stress Testing Tutorial: Comprehensive Guide With Best Practices
  • [DZone Survey] Share Your Expertise and Take our 2023 Web, Mobile, and Low-Code Apps Survey

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • 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: