public class SauceLabsIntegration extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SauceLabsIntegration.CapabilityType
Sauce Labs specific remote webdriver capabilities
|
| Constructor and Description |
|---|
SauceLabsIntegration() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getHubUrl()
Returns the HubUrl for running tests in Sauce Labs.
|
static String |
getSauceAccessKey()
Gets the configured Saucelabs access key.
|
static Object |
getSauceLabsOption(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
String key)
Gets the given SauceLabs option.
|
static String |
getSauceTunnelIdentifier()
Gets the configured Saucelabs tunnel identifier.
|
static String |
getSauceUser()
Gets the configured Saucelabs user name.
|
static boolean |
isConfiguredForSauceLabs()
Checks if parameters needed to run in Saucelabs have been set.
|
static void |
setDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
Sets needed desired capabilities for authentication and using the correct
sauce tunnel (if in use).
|
static void |
setSauceLabsOption(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
String key,
Object value)
Sets the given SauceLabs option to the given value.
|
public static void setDesiredCapabilities(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
desiredCapabilities - the capabilities object to populate, not nullgetSauceUser(),
getSauceAccessKey(),
getSauceTunnelIdentifier()public static void setSauceLabsOption(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities,
String key,
Object value)
The available SauceLabs options are listed at https://docs.saucelabs.com/dev/test-configuration-options/.
desiredCapabilities - the desired capabilities objectkey - the option keyvalue - the option valuepublic static Object getSauceLabsOption(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities, String key)
The available SauceLabs options are listed at https://docs.saucelabs.com/dev/test-configuration-options/.
desiredCapabilities - the desired capabilities objectkey - the option keypublic static String getSauceTunnelIdentifier()
Reads from the system property or the environment variable.
If both system property and environment variable are defined, the system property is used.
public static String getHubUrl()
The available SauceLabs URLs are listed at https://docs.saucelabs.com/basics/data-center-endpoints/#data-center-endpoints.
public static boolean isConfiguredForSauceLabs()
public static String getSauceUser()
Reads from the system property or the environment variable.
If both system property and environment variable are defined, the system property is used.
public static String getSauceAccessKey()
Reads from the system property or the environment variable.
If both system property and environment variable are defined, the system property is used.
Copyright © 2023 Vaadin Ltd. All Rights Reserved.