public class SauceProvider extends Object
RemoteWebDriver for SauceLabs| Modifier and Type | Field and Description |
|---|---|
static String |
API_KEY |
static String |
COOKIE_HANDLER |
static String |
SAUCE_FILES_UPLOAD |
static String |
SAUCE_STOTAGE_URL |
static String |
URL |
static String |
USERNAME |
static String |
VPN |
static String |
VPN_OPTIONS |
static String |
VPN_PORT |
static String |
VPN_QUIET_MODE |
static String |
VPN_VERSION |
| Constructor and Description |
|---|
SauceProvider(PhoenixDriverIngredients ingridients,
org.openqa.selenium.remote.DesiredCapabilities capabilities)
Creates an instance of a SauceProvider class
|
| Modifier and Type | Method and Description |
|---|---|
PhoenixDriver |
buildDriver()
Creates an instance of a
PhoenixDriver that is representing SaucePhoenixDriver |
protected org.openqa.selenium.WebDriver |
createWebDriver(URL remoteAddress)
Creates one of:
RemoteWebDriver
AndroidDriver
IOSDriver
driver that will be communicating with SauceLabs |
protected com.comcast.drivethru.model.ResponseContainer |
doSendRequest(com.comcast.drivethru.api.HTTPRequestManager requestManager)
Sends HTTP request.
|
protected URL |
generateSauceURL()
Generates URL to use in order to connect to SauceLabs
|
protected String |
getUserInfo(URL url)
Gets userInfo string from either the URL or system properties
|
SauceResponse |
uploadFilesToSauceStorage()
Upload files to sauce storage and return response of file uploads as SauceResponse
|
public static final String USERNAME
public static final String API_KEY
public static final String URL
public static final String VPN
public static final String VPN_PORT
public static final String VPN_QUIET_MODE
public static final String VPN_OPTIONS
public static final String VPN_VERSION
public static final String COOKIE_HANDLER
public static final String SAUCE_STOTAGE_URL
public static final String SAUCE_FILES_UPLOAD
public SauceProvider(PhoenixDriverIngredients ingridients, org.openqa.selenium.remote.DesiredCapabilities capabilities)
ingridients - Set of PhoenixDriverIngredients to use for driver creationcapabilities - Set of DesiredCapabilities to use for driver creationprotected String getUserInfo(URL url) throws FlyingPhoenixException
url - URL that might contain userInfoFlyingPhoenixException - If one of the following is true:
protected URL generateSauceURL() throws FlyingPhoenixException
FlyingPhoenixException - If URL is malformed or invalidprotected org.openqa.selenium.WebDriver createWebDriver(URL remoteAddress) throws FlyingPhoenixException
RemoteWebDriverAndroidDriverIOSDriverremoteAddress - URL of the location to connect toFlyingPhoenixExceptionpublic PhoenixDriver buildDriver() throws FlyingPhoenixException
PhoenixDriver that is representing SaucePhoenixDriverSaucePhoenixDriverFlyingPhoenixException - If there was an error creating a driverpublic SauceResponse uploadFilesToSauceStorage()
protected com.comcast.drivethru.model.ResponseContainer doSendRequest(com.comcast.drivethru.api.HTTPRequestManager requestManager)
throws IOException
requestManager - IOExceptionCopyright © 2015–2016 Comcast. All rights reserved.