Class AbstractWebDriverRequest
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.webdrivermanager.AbstractWebDriverRequest
-
- All Implemented Interfaces:
eu.tsystems.mms.tic.testframework.logging.Loggable,eu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest,java.lang.Cloneable
- Direct Known Subclasses:
SeleniumWebDriverRequest
public class AbstractWebDriverRequest extends java.lang.Object implements eu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest, eu.tsystems.mms.tic.testframework.logging.Loggable
-
-
Constructor Summary
Constructors Constructor Description AbstractWebDriverRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AbstractWebDriverRequestclone()Cloning of DesiredCapabilites with SerializationUtils occurs org.apache.commons.lang3.SerializationException: IOException while reading or closing cloned object data -> We have to backup the current caps and clone WebDriverRequest without caps.java.lang.StringgetBrowser()java.lang.StringgetBrowserVersion()java.util.Map<java.lang.String,java.lang.Object>getCapabilities()org.openqa.selenium.remote.DesiredCapabilitiesgetDesiredCapabilities()java.util.Optional<java.lang.String>getPlatformName()java.util.Optional<java.net.URL>getServerUrl()java.lang.StringgetSessionKey()booleangetShutdownAfterExecution()booleangetShutdownAfterTest()booleangetShutdownAfterTestFailed()voidsetBrowser(java.lang.String browser)voidsetBrowserVersion(java.lang.String browserVersion)voidsetPlatformName(java.lang.String platformName)voidsetSeleniumServerUrl(java.lang.String url)Deprecated.UsesetServerUrl(URL)insteadvoidsetSeleniumServerUrl(java.net.URL url)Deprecated.UsesetServerUrl(URL)insteadvoidsetServerUrl(java.lang.String url)voidsetServerUrl(java.net.URL url)voidsetSessionKey(java.lang.String sessionKey)voidsetShutdownAfterExecution(boolean shutdownAfterExecution)voidsetShutdownAfterTest(boolean shutdownAfterTest)voidsetShutdownAfterTestFailed(boolean shutdownAfterTestFailed)
-
-
-
Method Detail
-
getBrowser
public java.lang.String getBrowser()
- Specified by:
getBrowserin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setBrowser
public void setBrowser(java.lang.String browser)
-
getBrowserVersion
public java.lang.String getBrowserVersion()
- Specified by:
getBrowserVersionin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setBrowserVersion
public void setBrowserVersion(java.lang.String browserVersion)
-
getSessionKey
public java.lang.String getSessionKey()
- Specified by:
getSessionKeyin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setShutdownAfterTest
public void setShutdownAfterTest(boolean shutdownAfterTest)
- Specified by:
setShutdownAfterTestin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setShutdownAfterTestFailed
public void setShutdownAfterTestFailed(boolean shutdownAfterTestFailed)
- Specified by:
setShutdownAfterTestFailedin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setShutdownAfterExecution
public void setShutdownAfterExecution(boolean shutdownAfterExecution)
- Specified by:
setShutdownAfterExecutionin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
getServerUrl
public java.util.Optional<java.net.URL> getServerUrl()
- Specified by:
getServerUrlin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setServerUrl
public void setServerUrl(java.lang.String url) throws java.net.MalformedURLException- Throws:
java.net.MalformedURLException
-
setServerUrl
public void setServerUrl(java.net.URL url)
-
setSeleniumServerUrl
public void setSeleniumServerUrl(java.net.URL url)
Deprecated.UsesetServerUrl(URL)instead
-
setSeleniumServerUrl
public void setSeleniumServerUrl(java.lang.String url) throws java.net.MalformedURLExceptionDeprecated.UsesetServerUrl(URL)instead- Throws:
java.net.MalformedURLException
-
getShutdownAfterTest
public boolean getShutdownAfterTest()
- Specified by:
getShutdownAfterTestin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
getShutdownAfterTestFailed
public boolean getShutdownAfterTestFailed()
- Specified by:
getShutdownAfterTestFailedin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
getShutdownAfterExecution
public boolean getShutdownAfterExecution()
- Specified by:
getShutdownAfterExecutionin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
getCapabilities
public java.util.Map<java.lang.String,java.lang.Object> getCapabilities()
- Specified by:
getCapabilitiesin interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
setSessionKey
public void setSessionKey(java.lang.String sessionKey)
-
getDesiredCapabilities
public org.openqa.selenium.remote.DesiredCapabilities getDesiredCapabilities()
-
clone
public AbstractWebDriverRequest clone() throws java.lang.CloneNotSupportedException
Cloning of DesiredCapabilites with SerializationUtils occurs org.apache.commons.lang3.SerializationException: IOException while reading or closing cloned object data -> We have to backup the current caps and clone WebDriverRequest without caps. After cloning the original caps are added again. -> Caps can cloned via merge() method.- Specified by:
clonein interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest- Overrides:
clonein classjava.lang.Object- Returns:
- Throws:
java.lang.CloneNotSupportedException
-
setPlatformName
public void setPlatformName(java.lang.String platformName)
-
getPlatformName
public java.util.Optional<java.lang.String> getPlatformName()
- Specified by:
getPlatformNamein interfaceeu.tsystems.mms.tic.testframework.webdrivermanager.WebDriverRequest
-
-