Skip to end of metadata
Go to start of metadata

Table of Contents


Before Running Your Test

IP Ranges and Data Center Endpoints
Sauce Labs has data centers in both the US and EU. You can access Sauce Labs services from either location by providing the appropriate URL endpoints, and whitelisting their associated IP ranges. 

 Click here to view US Data Center Endpoints

Virtual Device Cloudhttps://ondemand.saucelabs.com/wd/hub

Real Devices:  https://ondemand.us-west-1.saucelabs.com

Sauce Connect Proxyhttps://saucelabs.com/rest/v1 (do not need to specify, Sauce Connect Proxy will use this by default)

SSO:

REST API 

IP Ranges:

162.222.72.0/21 (this is equivalent to the range 162.222.72.1 – 162.222.79.254)
66.85.48.0/21 (this is equivalent to the range 66.85.48.0 - 66.85.55.255)

 Click here to view EU Data Center endpoints

For more information, including framework configuration for the European data center, check out Sauce Labs European Data Center Configuration Information.

Virtual Device Cloudhttps://ondemand.eu-central-1.saucelabs.com/wd/hub

Real Devices:  https://ondemand.eu-central-1.saucelabs.com

Sauce Connect Proxyhttps://eu-central-1.saucelabs.com/rest/v1 (specify with -x argument)

SSO:

REST API:

IP Range:

185.94.24.0/22 (this is equivalent to the range 185.94.24.0 - 185.94.27.255




Setting Up Your Test

  1. 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. 

  2. 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

  3. 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. 

Running Your Test 

  1. Log in to the Sauce Labs web interface.
    You don't need to be logged in to run your test, but if you are you can watch your test run and the results appear in the dashboard.  

  2. On your local machine, run your test script. 

That's it! As your test script executes you'll see the results appear in your dashboard.

After Running Your Test

Additional Topics