DevSecOps Testing Android Apps Using Espresso

Last updated June 14, 2021 by Alan Bavosa

Learn how Android developers can re-use an automated test they wrote for the non-secured app using the Espresso automation tool (in Android Studio) and run it on the Appdome-secured app.

What is Espresso?

Espresso is a test automation tool for Android applications developed by Google. It enables developers and testers to write automated tests for the Android UI.

How to Test Appdome-secured Apps Using Espresso

Note: the tester must have the Espresso test apk and the target fused app apk to be tested. However, in order for the process to succeed, both Espresso test apk and the Appdome-secured app must be signed by the same developer/signer.

To run the Espresso automated test through a computer terminal follow these steps:

1. Connect the phone to your computer using USB cable.

2. Make sure the phone is reachable by Android Debug Bridge (adb):

adb devices

3. Install the Appdome-secured app (test target app) on an Android mobile device.

4. On the computer run the following command:

adb shell am instrument -w -m -e debug false \

For example:
app bunder id:
Espresso test name: myTest

adb shell am instrument -w -m -e debug false \
-e class ‘’ \




Have a question?

Ask an expert

GaliMaking your security project a success!