Custom Device Lab on Automate
Access Custom Device Lab using BrowserStack’s Automate.
Running mobile automation tests on Custom Device Lab devices can be challenging without seamless integration with CI/CD pipelines. BrowserStack’s Automate API simplifies this process by enabling you to programmatically interact with Custom Device Lab, manage dedicated devices, and integrate them with your CI/CD pipelines.
Before you get started, ensure that your Automate environment is set up. Refer to set up test environment for more details.
Run Automate tests on Custom Device Lab
Follow these steps to run tests on Custom Device Lab:
Fetch device details
To fetch details of the devices in Custom Device Lab assigned to you, authenticate your API request using your BrowserStack credentials and call the appropriate REST API endpoint. For more information, refer to the Custom Device Lab REST API documentation.
Note the UDID of the device
From the API response, identify the device you want to use and note its UDID. This unique identifier is required to specify the device in your test configuration.
Configure the browserstack.yml file
Include the following capabilities in your browserstack.yml file:
-
dedicatedDevice: Set this totrueto indicate that the test should run on a Custom Device Lab device. -
deviceId: Provide the UDID of the device you noted in Step 2.
Here’s an example of how to configure these capabilities:
In this example:
-
Replace the values for
deviceNameandplatformVersionwith the appropriate values. -
Replace the value for
deviceIdwith the UDID of your chosen device. To get the list of dedicated devices and their UDIDs, refer to the Custom Device Lab REST API documentation.
To explore the common features of Custom Device Lab, refer to the Custom Device Lab features section.
Next Steps
To start running tests on Custom Device Lab, refer to the Automate documentation.
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
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!