Setup multiple local connections for XCUI tests
Manage multiple local testing connections for testing apps that retrieve data from servers on your local machine, CI/CD machines/nodes, and other private network configurations.
You can test multiple forks and builds at the same time by setting up separate Local Testing connections for each. To do so, establish each Local Testing connection using the --local-identifier flag, along with a unique connection name (for instance, Test123).
Not using the --local-identifier flag for each Local Testing connection will cut off the existing connection and create a new one.
./BrowserStackLocal --key YOUR_ACCESS_KEY --local-identifier Test123
After establishing Local Testing connections, use the local and localIdentifier parameters when executing your build. The parameters are explained below:
| Parameter | Description | Values |
|---|---|---|
| local | Set this parameter if you want to enable Local Testing. | true or false Default: false |
| localIdentifier | Set this parameter, if you are using the same account to test multiple applications. It helps to set up a named connection. | string Example: Test123 |
Example cURL request:
Manage multiple Local Testing connections
You can use the Local Testing API to check the status of (or disconnect) active binaries. However, your connections will not show up in the API response unless you establish them using the --enable-logging-for-api flag, as follows:
./BrowserStackLocal --key YOUR_ACCESS_KEY --enable-logging-for-api
For the available endpoints, see Manage Local binary instances.
Related topics
-
Manage your uploaded app or test suite using the upload app REST API and upload test suite REST API..
-
Use the get app API endpoint and list test suites API endpoint to list your recently uploaded apps and test suites.
-
Delete your uploaded app or test suite using the delete app API endpoint and delete test suite API endpoint.
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!