Table of Contents
Table of Contents
Before Running Your Test
- You need to have a Sauce Labs account
- You need an Appium test that you want to run against your application
- The application you want to test must meet the requirements for Android and iOS mobile apps
- The application you want to test should be in an accessible storage location, such as GitHub or Sauce Storage
- If the application you want to test is on localhost or behind a firewall, you need to set up a Sauce Connect tunnel so the Sauce Labs virtual machine can connect to it
- Set up your test to connect to Sauce Labs using your account credentials.
The exact configuration depends on your scripting language. Example Appium Scripts for Android Mobile Application Tests and Example Appium Scripts for iOS Mobile Application Tests include examples of how to incorporate your authentication credentials and establish the connection to Sauce Labs.
- Use the Platform Configurator to specify the Desired Capabilities of your test, including the path to your application's storage location.
Desired Capabilities are the means by which you specify the combination of platform, operating system, and browser that you want to use in your tests, along with other test options. You can find out more about using Desired Capabilities in the topics under Test Configuration and Annotation, as well as in the Appium documentation. You can also check out some Examples of Test Configuration Options for Mobile Application Tests.
- Make sure your test is set up to report results to your Sauce Labs dashboard.
As with the case of setting up your authentication credentials, the exact reporting configuration depends on the language you're using in your test script. Example Appium Scripts for Android Mobile Application Tests and Example Appium Scripts for iOS Mobile Application Tests include examples of how to enable reporting for each language. You can also use the Sauce Labs REST API to annotate your tests after they have completed, including pass/fail status.