public abstract class GenericSeleniumCommandExecutor
extends net.sf.testium.executor.general.GenericCommandExecutor
| Modifier and Type | Field and Description |
|---|---|
static net.sf.testium.executor.general.SpecifiedParameter |
PARSPEC_SAVE_PAGE_SOURCE |
static net.sf.testium.executor.general.SpecifiedParameter |
PARSPEC_SAVE_SCREEN_SHOT |
| Constructor and Description |
|---|
GenericSeleniumCommandExecutor(String command,
String description,
WebInterface webInterface,
ArrayList<net.sf.testium.executor.general.SpecifiedParameter> parameterSpecs) |
GenericSeleniumCommandExecutor(String command,
WebInterface webInterface,
ArrayList<net.sf.testium.executor.general.SpecifiedParameter> parameterSpecs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doExecute(org.testtoolinterfaces.utils.RunTimeData aVariables,
org.testtoolinterfaces.testsuite.ParameterArrayList parameters,
org.testtoolinterfaces.testresult.TestStepCommandResult result) |
org.testtoolinterfaces.testresult.TestStepResult |
execute(org.testtoolinterfaces.testsuite.TestStepCommand aStep,
org.testtoolinterfaces.utils.RunTimeData aVariables,
File aLogDir) |
protected void |
failTest(File aLogDir,
org.testtoolinterfaces.testresult.TestStepResult aResult,
Exception e)
Deprecated.
|
protected void |
failTest(File aLogDir,
org.testtoolinterfaces.testresult.TestStepResult aResult,
Exception e,
SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource,
SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenShot) |
protected void |
failTest(File aLogDir,
org.testtoolinterfaces.testresult.TestStepResult aResult,
String aMessage)
Deprecated.
|
protected void |
failTest(File aLogDir,
org.testtoolinterfaces.testresult.TestStepResult aResult,
String aMessage,
SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource,
SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenShot) |
protected org.openqa.selenium.WebDriver |
getDriver() |
protected org.openqa.selenium.WebDriver |
getDriver(SeleniumConfiguration.BROWSER_TYPE aBrowserType) |
protected org.openqa.selenium.WebDriver |
getDriverAndSetResult(org.testtoolinterfaces.testresult.TestStepResult aTestStepResult,
SeleniumConfiguration.BROWSER_TYPE aBrowserType)
Deprecated.
|
protected WebInterface |
getInterface() |
protected org.openqa.selenium.WebElement |
obtainElement(org.testtoolinterfaces.utils.RunTimeData aVariables,
org.testtoolinterfaces.testsuite.ParameterArrayList parameters,
net.sf.testium.executor.general.SpecifiedParameter paramSpec) |
boolean |
savePageSource(File aLogDir,
String fileName,
org.testtoolinterfaces.testresult.TestStepResult aResult) |
void |
saveScreenShot(File aLogDir,
org.testtoolinterfaces.testresult.TestStepResult aResult) |
void |
setSavePageSource(SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource) |
void |
setSaveScreenshot(SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenshot) |
protected void |
verifyBy(org.testtoolinterfaces.testsuite.Parameter par,
net.sf.testium.executor.general.SpecifiedParameter paramSpec) |
boolean |
verifyParameters(org.testtoolinterfaces.testsuite.ParameterArrayList aParameters) |
addParamSpec, getCommand, getDescription, getInterfaceName, getParametersIterator, getParameterSpecs, obtainOptionalValue, obtainValue, toString, verifyParameterExists, verifyParameterValue, verifyParameterVariable, verifyValueOrVariablepublic static final net.sf.testium.executor.general.SpecifiedParameter PARSPEC_SAVE_PAGE_SOURCE
public static final net.sf.testium.executor.general.SpecifiedParameter PARSPEC_SAVE_SCREEN_SHOT
public GenericSeleniumCommandExecutor(String command, String description, WebInterface webInterface, ArrayList<net.sf.testium.executor.general.SpecifiedParameter> parameterSpecs)
command - description - webInterface - parameterSpecs - @Deprecated public GenericSeleniumCommandExecutor(String command, WebInterface webInterface, ArrayList<net.sf.testium.executor.general.SpecifiedParameter> parameterSpecs)
protected abstract void doExecute(org.testtoolinterfaces.utils.RunTimeData aVariables,
org.testtoolinterfaces.testsuite.ParameterArrayList parameters,
org.testtoolinterfaces.testresult.TestStepCommandResult result)
throws Exception
doExecute in class net.sf.testium.executor.general.GenericCommandExecutoraVariables - parameters - result - org.testtoolinterfaces.testsuite.TestSuiteExceptionExceptionprotected WebInterface getInterface()
getInterface in class net.sf.testium.executor.general.GenericCommandExecutorprotected org.openqa.selenium.WebDriver getDriver()
protected org.openqa.selenium.WebDriver getDriver(SeleniumConfiguration.BROWSER_TYPE aBrowserType)
@Deprecated protected org.openqa.selenium.WebDriver getDriverAndSetResult(org.testtoolinterfaces.testresult.TestStepResult aTestStepResult, SeleniumConfiguration.BROWSER_TYPE aBrowserType)
public org.testtoolinterfaces.testresult.TestStepResult execute(org.testtoolinterfaces.testsuite.TestStepCommand aStep,
org.testtoolinterfaces.utils.RunTimeData aVariables,
File aLogDir)
throws org.testtoolinterfaces.testsuite.TestSuiteException
execute in interface net.sf.testium.executor.TestStepCommandExecutorexecute in class net.sf.testium.executor.general.GenericCommandExecutororg.testtoolinterfaces.testsuite.TestSuiteExceptionprotected void failTest(File aLogDir, org.testtoolinterfaces.testresult.TestStepResult aResult, String aMessage, SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource, SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenShot)
protected void failTest(File aLogDir, org.testtoolinterfaces.testresult.TestStepResult aResult, Exception e, SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource, SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenShot)
@Deprecated protected void failTest(File aLogDir, org.testtoolinterfaces.testresult.TestStepResult aResult, String aMessage)
failTest in class net.sf.testium.executor.general.GenericCommandExecutor@Deprecated protected void failTest(File aLogDir, org.testtoolinterfaces.testresult.TestStepResult aResult, Exception e)
failTest in class net.sf.testium.executor.general.GenericCommandExecutorpublic boolean savePageSource(File aLogDir, String fileName, org.testtoolinterfaces.testresult.TestStepResult aResult)
public void saveScreenShot(File aLogDir, org.testtoolinterfaces.testresult.TestStepResult aResult)
public void setSavePageSource(SeleniumInterfaceConfiguration.SAVE_SOURCE savePageSource)
public void setSaveScreenshot(SeleniumInterfaceConfiguration.SAVE_SOURCE saveScreenshot)
public boolean verifyParameters(org.testtoolinterfaces.testsuite.ParameterArrayList aParameters)
throws org.testtoolinterfaces.testsuite.TestSuiteException
verifyParameters in interface net.sf.testium.executor.TestStepCommandExecutorverifyParameters in class net.sf.testium.executor.general.GenericCommandExecutororg.testtoolinterfaces.testsuite.TestSuiteExceptionprotected void verifyBy(org.testtoolinterfaces.testsuite.Parameter par,
net.sf.testium.executor.general.SpecifiedParameter paramSpec)
throws org.testtoolinterfaces.testsuite.TestSuiteException
org.testtoolinterfaces.testsuite.TestSuiteExceptionprotected org.openqa.selenium.WebElement obtainElement(org.testtoolinterfaces.utils.RunTimeData aVariables,
org.testtoolinterfaces.testsuite.ParameterArrayList parameters,
net.sf.testium.executor.general.SpecifiedParameter paramSpec)
throws Exception
aVariables - parameters - aParSpec - Exception - when not an element or when mandatory parameter is not foundCopyright © 2013. All Rights Reserved.