public class SauceLabsWebDriverHelper extends Object implements com.saucelabs.common.SauceOnDemandSessionIdProvider
RemoteWebDriver test that demonstrates how to run your Selenium tests with Sauce OnDemand.
 This test also includes the Sauce JUnit helper classes, which will use the Sauce REST API to mark the Sauce Job as passed/failed.
 In order to use the SauceOnDemandTestWatcher, the test must implement the SauceOnDemandSessionIdProvider interface.| Modifier and Type | Field and Description | 
|---|---|
| com.saucelabs.common.SauceOnDemandAuthentication | authenticationConstructs a  SauceOnDemandAuthenticationinstance using the supplied user name/access key. | 
| static String | REMOTE_DRIVER_SAUCELABS_PROPERTYUse Saucelabs flag. | 
| static String | SAUCE_BROWSER_PROPERTYSaucelabs browser, default is Firefox. | 
| static String | SAUCE_BUILD_PROPERTYSuacelabs build, default is unknown. | 
| static String | SAUCE_DOWNLOAD_SCRIPT_PROPERTYCreate a unix shell script to download saucelab resources, default is false
 Note - saucelabs history only goes back so far, if you run enough tests the resources will no longer
 be available for downloading. | 
| static String | SAUCE_IDLE_TIMEOUT_SECONDS_PROPERTYSaucelabs idle timeout in seconds, default is 180
 -Dsaucelabs.idle.timeout.seconds= | 
| static String | SAUCE_IE_INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS_PROPERTYSaucelabs ignore security domains in IE, which can introduce flakiness, default is true. | 
| static String | SAUCE_KEY_PROPERTYSaucelabs key, required. | 
| static String | SAUCE_MAX_DURATION_SECONDS_PROPERTYSaucelabs max duration in seconds, default is 480
 -Dsaucelabs.max.duration.seconds= | 
| static String | SAUCE_PLATFORM_PROPERTYSaucelabs platform (OS) replace spaces with underscores, default is Linux. | 
| static String | SAUCE_POPUP_PROPERTYSaucelabs popup disable setting, default is false (not disabled). | 
| static String | SAUCE_SHARE_PROPERTYSaucelabs share setting, default is share. | 
| static String | SAUCE_USER_PROPERTYSaucelabs user
 -Dsaucelabs.user= | 
| static String | SAUCE_VERSION_PROPERTYBrowser Version. | 
| Constructor and Description | 
|---|
| SauceLabsWebDriverHelper() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.openqa.selenium.WebDriver | getDriver()Returns the driver | 
| String | getSessionId() | 
| void | setUp(String className,
     String testName)Saucelabs setup | 
| static void | tearDown(boolean passed,
        String sessionId,
        String sauceUser,
        String sauceKey)Do Suacelabs related teardown things. | 
public static final String REMOTE_DRIVER_SAUCELABS_PROPERTY
public static final String SAUCE_BROWSER_PROPERTY
public static final String SAUCE_BUILD_PROPERTY
public static final String SAUCE_DOWNLOAD_SCRIPT_PROPERTY
public static final String SAUCE_IDLE_TIMEOUT_SECONDS_PROPERTY
public static final String SAUCE_KEY_PROPERTY
public static final String SAUCE_MAX_DURATION_SECONDS_PROPERTY
public static final String SAUCE_PLATFORM_PROPERTY
public static final String SAUCE_IE_INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS_PROPERTY
public static final String SAUCE_POPUP_PROPERTY
public static final String SAUCE_SHARE_PROPERTY
public static final String SAUCE_USER_PROPERTY
public static final String SAUCE_VERSION_PROPERTY
public com.saucelabs.common.SauceOnDemandAuthentication authentication
SauceOnDemandAuthentication instance using the supplied user name/access key.  To use the authentication
 supplied by environment variables or from an external file, use the no-arg SauceOnDemandAuthentication constructor.public SauceLabsWebDriverHelper()
public void setUp(String className, String testName) throws Exception
className - testName - Exceptionpublic static void tearDown(boolean passed, String sessionId, String sauceUser, String sauceKey) throws Exception
passed - sessionId - sauceUser - sauceKey - Exceptionpublic org.openqa.selenium.WebDriver getDriver()
public String getSessionId()
getSessionId in interface com.saucelabs.common.SauceOnDemandSessionIdProviderCopyright © 2005–2016 The Kuali Foundation. All rights reserved.