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

Upload zip file using public URL

You need to upload the .zip file of your .app directory containing your EarlGrey test cases to BrowserStack servers. Its easy to upload the .zip file from a public URL to BrowserStack using the REST API. This approach is useful when the zip file is hosted on a remote server (e.g. S3 bucket) and its downloadable via a publicly accessible URL.

Here is an example cURL request to upload an EarlGrey zip file using a public URL :

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/earlgrey/app-dir" \
-F "url=https://www.browserstack.com/app-automate/sample-apps/ios/BStack-EarlGrey-SampleApp.zip"

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

{
    "test_url":"bs://f7c874f21852ba57957a3fdc33f47514288c4ba4"
}

Please note the value of test_url in the API response (bs://f7c874f21852.... in the above example). This value will be used later to specify the appDir for your EarlGrey test execution.

Note:
  1. zip file upload will take 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.
  2. We will 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