Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found

Select Devices

You can run your EarlGrey automation tests on a wide range of iOS devices on BrowserStack. These are not simulators or emulators but physical devices hosted in our data centers.

While executing your EarlGrey tests, you can specify a list of iOS devices to run your tests on. In order to do so, you need to pass the devices parameter in the REST API request to start your test execution. You can set its value as shown in the table below.

REST API endpoint :

POST /app-automate/earlgrey/build
Parameters Required/Optional Description
devices Required list of Device and OS version you want to run your tests on. Acceptable format is -. Example: iPhone 8 Plus-11

You can easily execute your EarlGrey tests on multiple devices as shown in an example cURL request below :

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/earlgrey/build" \
-d '{"devices": ["iPhone X-11", "iPhone 8-11"], "appDir": "bs://f7c874f21852ba57957a3fdc33f47514288c4ba4"}' \
-H "Content-Type: application/json"

Use the devices parameter while running your EarlGrey tests in order to select the device and OS version you want to run your tests on.

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