SauceLabs Plugin

The plugin provides integration with continuous testing cloud SauceLabs.

Installation

Example 1. build.gradle
implementation(group: 'org.vividus', name: 'vividus-plugin-saucelabs', version: '0.5.0')

Profiles

The plugin defines profiles with a set of the preconfigured properties.

saucelabs/web

Use in conjunction with web application profiles.

saucelabs/mobile_app

Use in conjunction with native mobile application profiles.

Required properties:

  • selenium.grid.device-name

  • selenium.grid.appium-version

  • selenium.grid.platform-version

SauceLabs profiles can be enabled by adding the corresponding entry to configuration.profiles property.

Example 2. Configure Chrome on SauceLabs
configuration.profiles=saucelabs/web,web/desktop/chrome
SauceLabs profile must be first.

Explore SauceLabs Capabilities for more fine-grained configuration.

Links to SauceLabs test runs can be found in Allure report

Properties

The properties marked with bold are mandatory.
Property Name Acceptable values Default Description

selenium.grid.host

hostname

<empty>

Sauce Labs OnDemand host to be used to create a new session

selenium.grid.username

username

<empty>

Sauce Labs username

selenium.grid.password

password

<empty>

Sauce Labs access key

saucelabs.data-center

US

EU US_EAST

Sauce Labs data center to use

saucelabs.sauce-connect.enabled

true false

false

Enables Sauce Connect Proxy

saucelabs.sauce-connect.use-latest-version

true false

true

If false, then use embedded Sauce Connect (4.7.1), otherwise check and download newer version if available.

saucelabs.sauce-connect.command-line-arguments

String line with CLI flags

Used to provide set of custom Sauce Connect command line arguments

saucelabs.sauce-connect.skip-host-glob-patterns

Comma (,) separated list of host glob patterns

This property comes into effect only if proxy is used, otherwise its value is ignored. The property specifies the list of glob patterns for hosts that are connected-to directly, others are connected through the proxy. By default the list inicludes .miso.saucelabs.com, .api.testobject.com, *.saucelabs.com, saucelabs.com host patterns to avoid sending of status information by SauceConnect to SauceLabs REST API throughout the lifetime of a tunnel via proxy used by tests.