Table of Contents


The Sauce Labs real device cloud provides you with the option to run Espresso, Robotium, XCUITest or Appium automated tests for testing mobile applications and websites on mobile browsers. Check out the Sauce Labs Sample Test Frameworks repo on GitHub for examples of test setups for all three on both iOS and Android devices. For an introduction to Appium testing, check out Appium Bootcamp by Dave Haeffner and Matthew Edwards.

Running Your Tests on Sauce Labs Legacy Real Device Cloud (app.testobject.com)

Before Running Your Tests

Sometimes apps are designed to run on internal networks, or on networks that can be accessed only from specific IP addresses. In this case, you can add an exception for TestObject to your network's whitelist for the IP range 185.94.24.0/22 for the European data center, or the IP range 162.222.72.0/21 and 66.85.48.0/21 for the US data center.

Creating Test Projects and Running Your Tests

  1. Log into your account.
  2. Go to the Apps dashboard and select the project you want to test.
  3. In the project dashboard, click Automated Testing.
  4. Select the type of automated test you want to run.
    For application tests, the options are Robotium, Espresso, XCUITest or Appium, while the only mobile website testing option is Appium

Running Your Tests on Sauce Labs Unified Platform (app.saucelabs.com)

The information in this topic is for our Unified Platform, Phase 1, Beta users only. Unified Platform allows execution of Appium test automation, against the Real Device Cloud, using the same endpoints and API as used against Emulators and Simulators.

Please contact your customer success Manager if you are interested in joining the Unified Platform Beta

Unified Platform Supported Use Cases

Sauce Labs Unified Platform is a unification of the Sauce Labs Virtual Platform (app.saucelabs.com) and Sauce Labs Legacy Real Device Platform (app.testobject.com), under one platform - app.saucelabs.com, allowing customers to use the best of both worlds, Virtual Platforms like Emulators and Simulators, Desktop Web and Real Devices, under one unified platform, including shared APIs, endpoints, reporting, secure tunnels, analytics, etc.

The following use cases are support for the Unified Platform, Phase 1:

Unified Platform Endpoints

Unified Platform Examples

private URL createUrl() throws MalformedURLException {
	return new URL("https://$SAUCE_USERNAME:$SAUCE_ACCESS_KEY@ondemand.us-west-1.saucelabs.com/wd/hub");
}

@BeforeEach
void setUp() throws MalformedURLException {
	DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
	desiredCapabilities.setCapability("platformName", "iOS");
	IOSDriver driver = new IOSDriver(createUrl(), desiredCapabilities);
} 

Unified Platform API

Learn more here.

All-The-Things-Digital

Sauce Labs also provides you with sample framework that demonstrate Sauce Labs capabilities of Real Devices, Emulators/Simulators and Desktop VMs, for testing Mobile Native and Web Apps.

Learn more here.