Sauce Labs 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.3.6-SNAPSHOT')

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

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

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

Explore Platform Configurator to use advanced Sauce Labs configuration options.

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

Defines remote grid host to be used to create a new session

selenium.grid.username

username

empty

Defines remote grid username to be used to create a new session

selenium.grid.password

password

empty

Defines password to be used to create a new session

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.6.2), 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