Private Devices using Appium
Run your Appium tests on Private Devices using BrowserStack App Automate
To get started with Appium, ensure that your environment is set up. Refer to set up test environment for more details.
Follow these steps to run tests on Private Devices:
Fetch device details
To fetch details of the Private Devices assigned to you, authenticate your API request using your BrowserStack credentials and call the appropriate REST API endpoint. For more information, refer to the Private Devices 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 totrue
to indicate that the test should run on a private 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
deviceName
andplatformVersion
values with the appropriate values. -
Replace the value for
deviceId
with the UDID of your chosen device. To get the list of dedicated devices and their UDIDs, refer to the Private Devices REST API documentation.
To explore the common features of Private Devices, refer to the Private Devices features section.
Next Steps
To start running tests on Private Devices using Appium, refer to the App Automate Appium 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!