Locating the Mobile Application
When you write an Appium test script, the most basic component is the
DesiredCapabilities object, which sets the parameters of your test, such as the mobile platform and operating system you want to test against. Within that object, one of the required capabilities is Application Path, or the
app desired capability. One of the advantages of the Appium architecture is that the application you want to test can be hosted anywhere, from a local path to any other web host on the network, since the Appium server will send the commands it receives from the client to any application path you specify. Practically, you have three options.
appcapability in your test script. You upload apps using the
upload_filemethod of the Sauce Labs REST API.
You can use any REST client; cURL is a convenient command-line option.
|US-WEST Data Center|
|US-EAST Data Center|
|EU Data Center|
Uploading with cURL
If you're using cURL for the upload, you must include the
Uploading Other Test Assets to Sauce Storage (Browsers Tests Only)
When testing on desktop browsers, you can also use Sauce Storage for other assets that you want to use in your automated tests, such as pre-run executables.
There may be situations where you want to install an application from a downloadable remote location (AWS S3 bucket, a GitHub repository, etc.).
Please review the following guidelines below before uploading your application:
- Make sure your application meets the prerequisite requirements for Android and iOS Mobile Application Testing.
- Upload your application to the hosting location.
- Ensure Sauce Labs has READ access to the app URL.
In your test script, enter the URL for the application as the
"app"desired capability. Below are some example snippets: