There may be situations where you want to install an application from a downloadable remote location (AWS S3 bucket, a GitHub repository, etc.). The application is completely removed from the real device after the test completes, providing an added layer of security for your application. Please review the following guidelines below before uploading your application:
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 Appium test script, enter the URL for the application as the
"app"
desired capability. Below is an example Java snippet:Example Java Snippetcaps.setCapability("app", "https://github.com/saucelabs/sample-app-mobile/releases/download/2.3.0/Android.SauceLabs.Mobile.Sample.app.2.3.0.apk?raw=true");
Installing your Application on Private Devices
In some cases you may need to upload / install your application to a private device and also prevent the device from broad internet access while under test. The steps to achieve this are:
- Upload your application to an internal git repository, or private hosting solution with the necessary permissions (e.g. Amazon S3 with a strict bucket policy).
- Ensure the hosted app URL is available to the machine running the automated test.
- Ensure that you've enabled the "Require Sauce Connect/VPN" setting in your organization's security settings.
Each Session is a "Fresh" Install
You will not be able to access information about different versions of your application because each session includes a "fresh" installation of your application.
For Automated Appium Testing Only
You can only install remote applications for automated Appium testing. Espresso and Robotium automated tests are not supported. Live Testing is also not supported.