public abstract class AbstractTestSession extends Object
WebTest
/MobileTest
annotation basic parameters. Also
performs sanity checks. Concrete instances of this class are created via the TestSessionFactory
factory.Modifier and Type | Field and Description |
---|---|
protected boolean |
isSharedSession
Shared session flag.
|
Constructor and Description |
---|
AbstractTestSession() |
Modifier and Type | Method and Description |
---|---|
void |
closeSession()
A method that helps in closing off the current session.
|
org.openqa.selenium.remote.DesiredCapabilities |
getAdditionalCapabilities() |
String |
getDeclaringClassName() |
String[] |
getDependsOnMethods() |
List<ElementEventListener> |
getElementEventListeners() |
String |
getMethodName() |
protected String |
getParamsInfo(InvokedMethodInformation method) |
abstract WebDriverPlatform |
getPlatform() |
String |
getTestName()
Returns a test name for the current method.
|
String |
getXmlTestName() |
boolean |
hasDependentMethods() |
protected void |
initializeAdditionalCapabilities(Class<? extends DefaultCapabilitiesBuilder>[] builders) |
protected void |
initializeAdditionalCapabilities(InvokedMethodInformation methodInfo)
Deprecated.
|
protected void |
initializeAdditionalCapabilities(String[] additionalCapabilities) |
abstract void |
initializeTestSession(InvokedMethodInformation method)
A initializer that initializes the sub-class of
AbstractTestSession based on the annotation. |
protected void |
initTestSession(InvokedMethodInformation method) |
boolean |
isStarted() |
protected void |
setStarted(boolean started)
Set the session to started.
|
abstract void |
startSession()
A Method to start a new session.
|
protected boolean isSharedSession
public boolean isStarted()
true
or false
protected final void setStarted(boolean started)
started
- true
or false
public final org.openqa.selenium.remote.DesiredCapabilities getAdditionalCapabilities()
protected final String getParamsInfo(InvokedMethodInformation method)
protected final void initTestSession(InvokedMethodInformation method)
protected void initializeAdditionalCapabilities(String[] additionalCapabilities)
@Deprecated protected void initializeAdditionalCapabilities(InvokedMethodInformation methodInfo)
protected void initializeAdditionalCapabilities(Class<? extends DefaultCapabilitiesBuilder>[] builders)
public final String getDeclaringClassName()
public final String getMethodName()
public final String[] getDependsOnMethods()
public final String getTestName()
public abstract void startSession()
public abstract void initializeTestSession(InvokedMethodInformation method)
AbstractTestSession
based on the annotation.method
- - An InvokedMethodInformation
object that represents the currently invoked method.public abstract WebDriverPlatform getPlatform()
WebDriverPlatform
object that represents the current platform.public void closeSession()
public final boolean hasDependentMethods()
public final String getXmlTestName()
public final List<ElementEventListener> getElementEventListeners()
List
of ElementEventListener
s attached to the test session.Copyright © 2016 PayPal Open Source. All rights reserved.