public interface ICommand
| Modifier and Type | Method and Description |
|---|---|
void |
addScreenshot(String path,
String label)
Add screenshot image.
|
String[] |
convertLocators(String[] args)
Convert locators from arguments.
|
Result |
execute(Context context,
String... curArgs)
Execute the command.
|
String[] |
getArguments()
Get command arguments.
|
int |
getIndex()
Get index in selenese script file (1 origin).
|
String |
getName()
Get command name.
|
Result |
getResult()
Get the command result.
|
List<Screenshot> |
getScreenshots()
Get list of screenshot images.
|
String[] |
getSource()
Get source elements.
|
StartLoop |
getStartLoop()
Get beginning-of-loop command.
|
boolean |
mayUpdateScreen()
May the command update screen?
|
void |
setStartLoop(StartLoop startLoop)
Set beginning-of-loop command.
|
String[] getSource()
int getIndex()
String[] getArguments()
String getName()
String[] convertLocators(String[] args)
args - the command arguments.boolean mayUpdateScreen()
Result execute(Context context, String... curArgs)
Note: set the command result to testCase in this method.
context - Selenese Runner context.curArgs - current arugments. (the variables in it are extracted)Result getResult()
void setStartLoop(StartLoop startLoop)
startLoop - beginning-of-loop command.StartLoop getStartLoop()
void addScreenshot(String path, String label)
path - image path.label - image label.List<Screenshot> getScreenshots()
Copyright © 2016. All rights reserved.