Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found
Connect & Get help from 6000+ developers on our Discord community. Ask the CommunityAsk the Community

Custom Device Lab with Espresso

Execute Espresso tests on devices on the Custom Device Lab for native Android app testing.

To run Espresso tests on Custom Device Lab hosted on BrowserStack’s private cloud, use the same REST API endpoint and workflow described in the Espresso documentation, with a few additional parameters specific to Custom Device Lab.

Prerequisites

Key differences from public cloud

The overall workflow is the same, but you need to include the following additional parameters in your REST API request to target Custom Device Lab.

Sample API request using Custom Device Lab to execute your test

Terminal
Copy icon Copy


The table below explains the parameters used in the REST API request:

Parameter Required Description
dedicatedDevice Yes Set this to true to indicate that the test should run on a Custom Device Lab device. This tells BrowserStack to route the test to your Custom Device Lab device pool instead of the public cloud.
deviceId Yes The deviceId is the same as UDID. It is a unique identifier of the Custom Device Lab device on which you want to run the test. You can retrieve this ID from your Custom Device Lab device pool dashboard or through your account representative.
devices Yes An array specifying the device name and OS version in the format "deviceName-deviceOSVersion" (e.g., "Samsung Galaxy S21-11.0"). While this field is optional when deviceId is provided, it can be useful for logging or organizational purposes.

Next steps

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle