Skip to main content

Running Espresso Tests In Bitrise CI


Bitrise offers a mobile CI/CD platform as a service (PaaS) to accelerate the automation of your software development projects. It provides different mobile-first features like exhaustive mobile stack coverage, store code anywhere in cloud or on-premise, and zero hardware setup that make building, testing, and deploying faster and easier.

Using LambdaTest with Bitrise, you can effortlessly perform Espresso testing of your mobile apps on an online device farm of real Android devices.

Prerequisites


  1. Ensure you have access to LambdaTest real device cloud. If not, please contact sales.

  2. A Bitrise account.

  3. A GitHub / BitBucket / GitLab or other repository to connect with Bitrise.

Note

If you are getting started with Bitrise CI, please refer to our documentation on running Appium tests in Bitrise CI.

Configuring The LambdaTest App Automate - Espresso Step In Bitrise


  1. Use the search bar to find LambdaTest App Automate - Espresso.
Image
  1. Click LambdaTest App Automate- Espresso card.
Image
  1. In Input Variables, enter App apk path and Test suite apk path.

You can add a public link if your files are accessible through public link. In case, you don't an apk link handy, you can use LambdaTest’s sample application Proverbial for running your first test.

Image
  • In LambdaTest username, click Select secret variable.
Image
  • Enter the key (it can be anything), your LambdaTest username and click Add new.
Image
  • In LambdaTest access key, click Select secret variable.
Image
  • Enter the key (it can be anything), your LambdaTest access key and click Add new.
Image
  1. Provide the list of device and operating system version on which you wish to run your tests.
Image

Other options:

KeyValueCapability Description
Device ListTYPE: STRING
DEFAULT: Untitled
"Galaxy S10-9", "OnePlus 6T-10"
Add the devices here on which the test will be executed.
Devices are comma seperated.
Build NameTYPE: STRING
DEFAULT: Untitled
Android Small Run
You can group your tests like a job containing multiple tests.
Queue TimeoutTYPE: STRING
DEFAULT: 600
300
Enter the time in seconds after which you want your build to timeout from queue.
Idle TimeoutTYPE: STRING
DEFAULT: 120
120
Enter the time in seconds for maximum running time on a test in the build.
TunnelTYPE: BOOLEAN
True
OR
False
To test local applications with LambdaTest.
Tunnel nameTYPE: STRING
RabbitHole
Name of the tunnel.
Device logsTYPE: BOOLEAN
DEFAULT: FALSE
True
OR
False
Enable Device Logs that will show information on the actions performed by the device.
Network logsTYPE: BOOLEAN
DEFAULT: FALSE
True
OR
False
Enable Network Logs that will show the information on the data transmitted & received by the device.
VideoTYPE: BOOLEAN
DEFAULT: TRUE
True
OR
False
Video recording of the screen.
  1. Click ⌘ + S to save the step.
Image
  1. Now go back to the build and click Rebuild to build the step.
Image
  1. Once the build process is complete, visit LambdaTest App Automation Dashboard to view your test results.
Image