public class StepDefinitions
extends java.lang.Object
They can also be called explicitly from other custom step definition implementations.
JSAFSDriver
Constructor and Description |
---|
StepDefinitions() |
Modifier and Type | Method and Description |
---|---|
void |
beforeAll()
Must be called by Cukes at least once to initialize the JSAFSDriver.
|
TestRecordHelper |
runComponentFunction(java.lang.String command,
java.lang.String parent)
Run a SAFS Component Function on a top-level component (Window).
|
TestRecordHelper |
runComponentFunction(java.lang.String command,
java.lang.String parent,
java.util.List<java.lang.String> parameters)
Run a SAFS Component Function on a top-level parent (Window).
|
TestRecordHelper |
runComponentFunction(java.lang.String command,
java.lang.String child,
java.lang.String parent)
Run a SAFS Component Function on a child component in a parent (Window).
|
TestRecordHelper |
runComponentFunction(java.lang.String command,
java.lang.String child,
java.lang.String parent,
java.util.List<java.lang.String> parameters)
Run a SAFS Component Function on a child component in a parent (Window).
|
TestRecordHelper |
runComponentFunctionConverted(java.lang.String command,
java.lang.String child,
java.lang.String parent,
java.util.List<java.lang.String> parameters)
Run a SAFS Component Function on a child component in a parent (Window).
|
TestRecordHelper |
runDriverCommand(java.lang.String command)
Run a SAFS Driver Command.
|
TestRecordHelper |
runDriverCommand(java.lang.String command,
java.util.List<java.lang.String> parameters)
Run a SAFS Driver Command.
|
TestRecordHelper |
runDriverCommandConverted(java.lang.String command,
java.util.List<java.lang.String> parameters)
Run a SAFS Driver Command.
|
public void beforeAll()
It can be called automatically by the execution of Scenarios, or be called from an overriding test controller like a JUnit runner, if appropriate.
If the steps in this class match any steps in the executing Scenario, then this method will automatically be called. If not, then a @JSAFSBefore step from another step definition file for the executing Scenario(s) can invoke this method.
Example:
public class OtherStepdefs {
@JSAFSBefore(order=10)
public void beforeAll(){
StepDriver.beforeAll();
}
...
}
public TestRecordHelper runDriverCommand(java.lang.String command) throws java.lang.Throwable
Regexen: "do safs command ([^\"]*)"
Example Scenario Step:
command
- The DriverCommand keyword (command) to performjava.lang.Throwable
public TestRecordHelper runDriverCommand(java.lang.String command, java.util.List<java.lang.String> parameters) throws java.lang.Throwable
Regexen: "do safs command ([^\"]*) using \"(.+)\"
Example Scenario Step:
command
- The DriverCommand keyword (command) to performparameters
- List<String> of parameters used by the command. Can be null.java.lang.Throwable
public TestRecordHelper runDriverCommandConverted(java.lang.String command, java.util.List<java.lang.String> parameters) throws java.lang.Throwable
command
- The DriverCommand keyword (command) to performparameters
- List<String> of parameters used by the command. Can be null.java.lang.Throwable
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String parent) throws java.lang.Throwable
Regexen: "do safs action ([^\"]*) on ([^\"]*)"
Example Scenario Step:
command
- The ComponentFunction keyword (action) to performparent
- The ComponentFunction parent window name to act onjava.lang.Throwable
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String child, java.lang.String parent) throws java.lang.Throwable
Regexen: "do safs action ([^\"]*) on ([^\"]*) in ([^\"]*)"
Example Scenario Step:
command
- The ComponentFunction keyword (action) to performchild
- The ComponentFunction child component name to act onparent
- The ComponentFunction parent window name to act onjava.lang.Throwable
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String parent, java.util.List<java.lang.String> parameters) throws java.lang.Throwable
Regexen: "do safs action ([^\"]*) on ([^\"]*) using \"(.+)\"
Example Scenario Step:
command
- The ComponentFunction keyword (action) to performparent
- The ComponentFunction parent window name to act onparameters
- List<String> of parameters used by the command. Can be null.java.lang.Throwable
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String child, java.lang.String parent, java.util.List<java.lang.String> parameters) throws java.lang.Throwable
Regexen: "do safs action ([^\"]*) on ([^\"]*) in ([^\"]*) using \"(.+)\"
Example Scenario Step:
command
- The ComponentFunction keyword (action) to performchild
- The ComponentFunction child component name to act onparent
- The ComponentFunction parent window name to act onparameters
- List<String> of parameters used by the command. Can be null.java.lang.Throwable
public TestRecordHelper runComponentFunctionConverted(java.lang.String command, java.lang.String child, java.lang.String parent, java.util.List<java.lang.String> parameters) throws java.lang.Throwable
command
- The ComponentFunction keyword (action) to performchild
- The ComponentFunction child component name to act onparent
- The ComponentFunction parent window name to act onparameters
- List<String> of parameters used by the command. Can be null.java.lang.Throwable
Copyright © SAS Institute. All Rights Reserved.