Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Upload an XCUI test-suite from filesystem

Upload an XCUI test-suite from filesystem to test on BrowserStack App Automate. Test your apps on a real device cloud.

Once your app is uploaded, you also need to upload the test suite containing your XCUI test cases to BrowserStack servers. You can upload an XCUI test suite (.zip file) from your local filesystem or CI/CD server to BrowserStack using the REST API.

Here is an example cURL request to upload an XCUI test suite:

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/xcuitest/v2/test-suite" \
-F "file=@/path/to/app/file/application-debug-test.zip"

A sample response to the above API request is shown below:

{
    "test_url":"bs://<hashed_test_suite_id>"
}

Note the value of test_url in the API response (bs://j3c874f2185.... in the above example). This value will be used later to specify the test suite for your XCUI test execution.

  • Test-suite upload takes a few seconds to about a minute depending on the size of your test-suite. Do not interrupt the cURL command until you get the response back.
  • You can also delete a test-suite that was previously uploaded to BrowserStack using REST API. By default, we delete the uploaded test-suite after 30 days from the date of upload.

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