public class WDTestRun
extends com.sebuilder.interpreter.TestRun
We also provide WDLocator instances using enhanced SearchObject search algorithms.
We've added the ability for embedded variable references in Scripts [ex: ${var}] to be handled sought in SAFSVARS if they are not found in the local variable Map.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MAPREF_PREFIX |
static java.lang.String |
VARREF_END |
static java.lang.String |
VARREF_START |
Constructor and Description |
---|
WDTestRun(com.sebuilder.interpreter.Script script) |
WDTestRun(com.sebuilder.interpreter.Script script,
int implicitlyWaitDriverTimeout,
int pageLoadDriverTimeout) |
WDTestRun(com.sebuilder.interpreter.Script script,
int implicitlyWaitDriverTimeout,
int pageLoadDriverTimeout,
java.util.Map<java.lang.String,java.lang.String> initialVars) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log,
com.sebuilder.interpreter.TestRun previousRun,
int implicitlyWaitDriverTimeout,
int pageLoadDriverTimeout,
java.util.Map<java.lang.String,java.lang.String> initialVars) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log,
com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory,
java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log,
com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory,
java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig,
int implicitlyWaitDriverTimeout,
int pageLoadDriverTimeout) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log,
com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory,
java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig,
int implicitlyWaitDriverTimeout,
int pageLoadDriverTimeout,
java.util.Map<java.lang.String,java.lang.String> initialVars) |
WDTestRun(com.sebuilder.interpreter.Script script,
org.apache.commons.logging.Log log,
com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory,
java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig,
java.util.Map<java.lang.String,java.lang.String> initialVars) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Perform the normal cleanup done at the end of script execution.
|
org.openqa.selenium.remote.RemoteWebDriver |
driver() |
static java.lang.String |
getAppMapItem(java.lang.String map,
java.lang.String win,
java.lang.String item) |
org.openqa.selenium.remote.RemoteWebDriver |
getDriver() |
org.apache.commons.logging.Log |
getLog() |
org.apache.commons.logging.Log |
getSAFSLog()
Get the possible SAFSLog.
|
static java.lang.String |
getVariableValue(java.lang.String varName) |
boolean |
hasNext() |
Locator |
locator(java.lang.String paramName)
Fetches a Locator parameter from the current step.
|
org.apache.commons.logging.Log |
log() |
boolean |
next()
Executes the next step.
|
com.sebuilder.interpreter.Step |
peekNext()
Retrieve the next Step that would be executed by this TestRun without incrementing the
stepIndex counter.
|
com.sebuilder.interpreter.Step |
popNext()
Increment the stepIndex counter and return the Step that can be skipped or executed by this TestRun.
|
java.lang.String |
replaceVariableReferences(java.lang.String value)
Process any ${var} references.
|
boolean |
runStep(com.sebuilder.interpreter.Step step)
Execute the action represented in the Step.
|
java.lang.String |
string(java.lang.String paramName) |
public static final java.lang.String VARREF_START
public static final java.lang.String VARREF_END
public static final java.lang.String MAPREF_PREFIX
public WDTestRun(com.sebuilder.interpreter.Script script, int implicitlyWaitDriverTimeout, int pageLoadDriverTimeout, java.util.Map<java.lang.String,java.lang.String> initialVars)
public WDTestRun(com.sebuilder.interpreter.Script script, int implicitlyWaitDriverTimeout, int pageLoadDriverTimeout)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log, com.sebuilder.interpreter.TestRun previousRun, int implicitlyWaitDriverTimeout, int pageLoadDriverTimeout, java.util.Map<java.lang.String,java.lang.String> initialVars)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log, com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory, java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig, int implicitlyWaitDriverTimeout, int pageLoadDriverTimeout, java.util.Map<java.lang.String,java.lang.String> initialVars)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log, com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory, java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig, int implicitlyWaitDriverTimeout, int pageLoadDriverTimeout)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log, com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory, java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig, java.util.Map<java.lang.String,java.lang.String> initialVars)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log, com.sebuilder.interpreter.webdriverfactory.WebDriverFactory webDriverFactory, java.util.HashMap<java.lang.String,java.lang.String> webDriverConfig)
public WDTestRun(com.sebuilder.interpreter.Script script, org.apache.commons.logging.Log log)
public WDTestRun(com.sebuilder.interpreter.Script script)
public org.apache.commons.logging.Log getSAFSLog()
public org.apache.commons.logging.Log getLog()
getLog
in class com.sebuilder.interpreter.TestRun
public org.apache.commons.logging.Log log()
log
in class com.sebuilder.interpreter.TestRun
public static java.lang.String getAppMapItem(java.lang.String map, java.lang.String win, java.lang.String item)
map
- name of app map. may be null.win
- name of app map section. may be null.item
- item in app map from specified or default app map section.public static java.lang.String getVariableValue(java.lang.String varName)
varName
- variable value to retrievepublic java.lang.String replaceVariableReferences(java.lang.String value)
Valid possible App Map Reference formats:
${Map:ConstantName} (default App Map) ${Map:WindowName:CompName} (default App Map) ${Map:mapID:WindowName:CompName}
value
- WebDriverGUIUtilities._LASTINSTANCE
,
STAFHelper.getVariable(String)
public Locator locator(java.lang.String paramName)
locator
in class com.sebuilder.interpreter.TestRun
paramName
- The parameter's name.replaceVariableReferences(String)
public java.lang.String string(java.lang.String paramName)
string
in class com.sebuilder.interpreter.TestRun
replaceVariableReferences(String)
public com.sebuilder.interpreter.Step peekNext()
Does NOT use hasNext()--which can prematurely shutdown the WebDriver.
If avoiding hasNext() the user should make sure cleanup() is called when finished to perform the normal cleanup operations done by hasNext() when it detects there are no more Steps to execute.
public com.sebuilder.interpreter.Step popNext()
Does NOT use hasNext()--which can prematurely shutdown the WebDriver.
If avoiding hasNext() the user should make sure cleanup() is called when finished to perform the normal cleanup operations done by hasNext() when it detects there are no more Steps to execute.
cleanup()
public void cleanup()
public boolean hasNext()
hasNext
in class com.sebuilder.interpreter.TestRun
public boolean runStep(com.sebuilder.interpreter.Step step) throws IgnoredStepException
If the StepType is an instanceof ClickElement we will use our own WDClickElement
which uses our enhanced WDLibrary to perform the click.
step
- IgnoredStepException
public boolean next()
next
in class com.sebuilder.interpreter.TestRun
runStep(Step)
public org.openqa.selenium.remote.RemoteWebDriver getDriver()
getDriver
in class com.sebuilder.interpreter.TestRun
public org.openqa.selenium.remote.RemoteWebDriver driver()
driver
in class com.sebuilder.interpreter.TestRun
Copyright © SAS Institute. All Rights Reserved.