Upload apps from filesystem
In order to test your native and hybrid apps on BrowserStack using Appium, you first need to upload your app to BrowserStack servers. Its easy to upload an Android app (.apk
or .aab
file) or an iOS app (.ipa
file) from your local filesystem or CI/CD server to BrowserStack using the REST API.
Here is an example cURL
request to upload an Android app :
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/upload" \
-F "file=@/path/to/app/file/application-debug.apk"
A sample response to the above API request is shown below :
{
"app_url":"bs://f7c874f21852ba57957a3fdc33f47514288c4ba4"
}
cURL
command until you get the response back.
Please note the value of app_url
in the API response (bs://f7c874f21852....
in the above example). This value will be used later to set the app
capability to specify application under test in your Appium test scripts.
You can manage your uploaded apps by using our REST API. Use the recent apps API endpoint to list your recently uploaded apps. You can delete your uploaded apps by using the delete app API endpoint. By default, we will delete the uploaded app 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
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!