public class TestCase extends Object implements Selenese, ITestCase, IHtmlResultTestCase
Supports Selenium IDE flow control plugin.
Selenese.Type| Constructor and Description |
|---|
TestCase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(ICommand command)
Add command to command list.
|
void |
addCommand(ICommandFactory commandFactory,
String name,
String... args)
Add command to command list.
|
Result |
execute(Selenese parent,
Context context)
Execute script.
|
String |
getBaseName()
Get test-target file base name.
|
String |
getBaseURL()
Get base URL in the test-case.
|
CommandList |
getCommandList()
Get command list.
|
String |
getFilename()
Get filename of test-case.
|
LogRecorder |
getLogRecorder()
Get log recorder.
|
String |
getName()
Get test-target name.
|
Result |
getResult()
Get selenese result.
|
CommandResultList |
getResultList()
Get test-case result list.
|
StopWatch |
getStopWatch()
Get stop watch.
|
Selenese.Type |
getType()
Get script type.
|
TestCase |
initialize(String filename,
String name,
String baseURL)
Initialize after constructed.
|
boolean |
isError()
Is error instance?
|
void |
setLogRecorder(LogRecorder logRecorder)
Set log recorder.
|
String |
toString() |
public TestCase initialize(String filename, String name, String baseURL)
filename - selenese script filename. (This base name is used for generating screenshot file)name - test-case name.baseURL - effective base URL.public Selenese.Type getType()
SelenesegetType in interface IHtmlResultTestTargetgetType in interface Selenesepublic boolean isError()
ITestTargetisError in interface ITestTargetpublic String getFilename()
getFilename in interface IHtmlResultTestCasepublic String getBaseName()
ITestTargetgetBaseName in interface ITestTargetpublic String getName()
ITestTargetgetName in interface IHtmlResultTestTargetgetName in interface ITestTargetpublic String getBaseURL()
public CommandList getCommandList()
getCommandList in interface IHtmlResultTestCasepublic StopWatch getStopWatch()
getStopWatch in interface ITestTargetpublic void setLogRecorder(LogRecorder logRecorder)
ITestCasesetLogRecorder in interface ITestCaselogRecorder - log recorder.public LogRecorder getLogRecorder()
ITestCasegetLogRecorder in interface ITestCasepublic Result getResult()
SelenesegetResult in interface IHtmlResultTestTargetgetResult in interface Selenesepublic CommandResultList getResultList()
getResultList in interface IHtmlResultTestCasepublic void addCommand(ICommand command)
command - command.public void addCommand(ICommandFactory commandFactory, String name, String... args)
commandFactory - command factory.name - command name.args - command arguments.public Result execute(Selenese parent, Context context)
SeleneseCopyright © 2017. All rights reserved.