Skip to main content

INTEGRATION FOR ESPRESSO

Integrating the Espresso Testing Framework & Perfecto

Espresso is an Android-specific UI test automation framework. It's a dev-friendly solution to create unit and functional tests directly from the Android Studio IDE.

Image alt text

Benefits of the Espresso Testing Framework

Image
Espresso run/debug configurations android screenshot.
Image
Espresso test cheat sheet code screenshot.

Key Features of Using the Espresso Testing Framework & Perfecto Together

Perfecto Gradle build screenshot.

1. Easy Test Automation Setup and Creation

Connecting your existing Espresso test script written in Java with the Perfecto cloud is quite simple. Perfecto has created a Gradle plugin that can be added to the Android project and help configure the cloud URL and the security token. These are required to connect the test to the cloud. In addition, through the configuration file (JSON), clients easily specify the devices under test and the Perfecto dependency. 

Once the settings have been identified, the APK test file and the application APK files will be installed and executed on the Perfecto cloud devices.

Perfecto report library espresso android screenshot.

2. Stable Test Execution in the Cloud

Because the entire execution of Espresso test automation runs in the Perfecto cloud, it is guaranteed that the execution will be 100% stable on clean and secured Android devices. Executing the tests either from Android Studio or through Jenkins CI is fully supported and stable.

Perfecto android mobile devices testing screenshot.

3. Scalable Testing in Parallel and Enhanced Coverage

In addition to the execution stability, Perfecto’s cloud hosts over 10,000 different smartphones and tablets, including both real and virtual devices. Not only does Perfecto's cloud-based testing lab allow teams to extend their test coverage and scalability, but the support for real and virtual devices enables teams to test faster and fix bugs at earlier stages of development.

Running Espresso tests across multiple real and virtual devices in the Perfecto cloud allows teams to identify Android device-specific issues across multiple configurations. Your organization can feel confident that they are doing all the testing necessary to release a high-quality Android application in a timely and cost-effective manner.

Perfecto report library success espresso android screenshot.

4. Detailed Reporting and Fast Feedback

Like with any test execution in the Perfecto cloud, clients receive a detailed test execution report that includes screenshots, videos, logs, and failure root cause analysis classification. This capability helps eliminate noise. It allows teams to focus only on the real defects in the Android app under test. With the fast execution that Espresso facilitates and the fast feedback that Perfecto Smart Reporting provides, teams can deliver more quality apps faster.

Getting Started With the Espresso Framework & Perfecto

Get More Out of the Espresso Framework With Perfecto