|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.samplu.common.SauceLabsWebDriverHelper
public class SauceLabsWebDriverHelper
Simple 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.
Field Summary | |
---|---|
com.saucelabs.common.SauceOnDemandAuthentication |
authentication
Constructs a SauceOnDemandAuthentication instance using the supplied user name/access key. |
static String |
REMOTE_DRIVER_SAUCELABS_PROPERTY
Use Saucelabs flag. |
static String |
SAUCE_BROWSER_PROPERTY
Saucelabs browser, default is Firefox. |
static String |
SAUCE_BUILD_PROPERTY
Suacelabs build, default is unknown. |
static String |
SAUCE_DOWNLOAD_SCRIPT_PROPERTY
Create 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_PROPERTY
Saucelabs idle timeout in seconds, default is 180 -Dsaucelabs.idle.timeout.seconds= |
static String |
SAUCE_IE_INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS_PROPERTY
Saucelabs ignore security domains in IE, which can introduce flakiness, default is true. |
static String |
SAUCE_KEY_PROPERTY
Saucelabs key, required. |
static String |
SAUCE_MAX_DURATION_SECONDS_PROPERTY
Saucelabs max duration in seconds, default is 480 -Dsaucelabs.max.duration.seconds= |
static String |
SAUCE_PLATFORM_PROPERTY
Saucelabs platform (OS) replace spaces with underscores, default is Linux. |
static String |
SAUCE_POPUP_PROPERTY
Saucelabs popup disable setting, default is false (not disabled). |
static String |
SAUCE_SHARE_PROPERTY
Saucelabs share setting, default is share. |
static String |
SAUCE_USER_PROPERTY
Saucelabs user -Dsaucelabs.user= |
static String |
SAUCE_VERSION_PROPERTY
Browser Version. |
Constructor Summary | |
---|---|
SauceLabsWebDriverHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Constructor Detail |
---|
public SauceLabsWebDriverHelper()
Method Detail |
---|
public void setUp(String className, String testName) throws Exception
className
- testName
-
Exception
public static void tearDown(boolean passed, String sessionId, String sauceUser, String sauceKey) throws Exception
passed
- sessionId
- sauceUser
- sauceKey
-
Exception
public org.openqa.selenium.WebDriver getDriver()
public String getSessionId()
getSessionId
in interface com.saucelabs.common.SauceOnDemandSessionIdProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |