public class TestCase extends Object implements Selenese, ITestCase
Supports Selenium IDE flow control plugin.
Selenese.Type| Constructor and Description |
|---|
TestCase() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCollection(String collectionName)
Deprecated.
|
void |
addCommand(Command command)
Deprecated.
|
void |
addCommand(ICommand command)
Add command to command list.
|
void |
addCommand(ICommandFactory commandFactory,
String name,
String... args)
Add command to command list.
|
void |
addToCollection(String collectionName,
String value)
Deprecated.
|
Result |
execute(Selenese parent,
Context context)
Execute script.
|
String |
getBaseName()
Get base name for screenshot file 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 script name.
|
SubCommandMap |
getProc()
Deprecated.
|
Result |
getResult()
Get test-case result.
|
StopWatch |
getStopWatch()
Get stop watch.
|
Selenese.Type |
getType()
Get script type.
|
TestCase |
initialize(String filename,
String name,
Runner runner,
String baseURL)
Deprecated.
|
TestCase |
initialize(String filename,
String name,
String baseURL)
Initialize after constructed.
|
boolean |
isError()
Is error instance?
|
String |
pollFromCollection(String collectionName)
Deprecated.
|
void |
setContext(Context context)
Deprecated.
|
void |
setLabelCommand(Label labelCommand)
Deprecated.
|
void |
setLogRecorder(LogRecorder logRecorder)
Set log recorder.
|
void |
setProc(SubCommandMap proc)
Deprecated.
|
String |
toString() |
@Deprecated public TestCase initialize(String filename, String name, Runner runner, String baseURL)
filename - selenese script filename. (This base name is used for generating screenshot file)name - test-case name.runner - Runner instance.baseURL - effective base URL.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.@Deprecated public void setContext(Context context)
context - Selenese Runner context.public Selenese.Type getType()
Selenesepublic boolean isError()
SeleneseisError in interface ITestTargetisError in interface Selenesepublic String getFilename()
public String getBaseName()
public String getName()
SelenesegetName in interface ITestTargetgetName in interface Selenesepublic String getBaseURL()
@Deprecated public void setProc(SubCommandMap proc)
proc - SubCommandMap intance.@Deprecated public SubCommandMap getProc()
public CommandList getCommandList()
public 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()
@Deprecated public void addCollection(String collectionName)
collectionName - collection name.@Deprecated public void addToCollection(String collectionName, String value)
collectionName - collection name.value - value.@Deprecated public String pollFromCollection(String collectionName)
collectionName - collection name.@Deprecated public void setLabelCommand(Label labelCommand)
labelCommand - label command.@Deprecated public void addCommand(Command command)
command - command.public 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 © 2014. All rights reserved.