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 |
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 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.
|
SubCommandMap |
getProc()
Deprecated.
|
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,
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()
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()
@Deprecated public void setProc(SubCommandMap proc)
proc - SubCommandMap intance.@Deprecated public SubCommandMap getProc()
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 IHtmlResultTestCase@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 © 2016. All rights reserved.