public abstract class AbstractDriver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static AbstractDriver |
_instance
Holds an instance of an AbstractDriver for non-static method access.
|
static java.lang.String |
APPMAP_FILES_PROPERTY
"testdesigner.appmap.files"
|
static java.lang.String |
APPMAP_ORDER_PROPERTY
"testdesigner.appmap.order"
|
(package private) static java.lang.String |
BASH
"!"
|
(package private) static java.lang.String |
COMMA
","
|
static java.lang.String |
DEFAULT_APPMAP_ORDER
"AppMap.order"
|
(package private) static java.lang.String |
HASH
"#"
|
(package private) static java.lang.String |
SEMI
";"
|
Constructor and Description |
---|
AbstractDriver() |
Modifier and Type | Method and Description |
---|---|
DriverInterface |
iDriver() |
protected abstract JSAFSDriver |
jsafs()
Return the possible embedded JSAFSDriver.
|
protected void |
preloadAppMapExpressions()
Turn ON Expressions, AppMapChaining, and AppMapResolve.
|
protected void |
preloadAppMaps()
Internal Use Only
|
protected java.lang.String |
processExpression(java.lang.String expression)
If "Expressions" is turned on, evaluate expression as both "math" and "DDVariable" string.
|
protected java.lang.String[] |
processExpressions(java.lang.String... parameters)
Used internally to handle the potential that passed parameters may include embedded
SAFS Expressions or embedded SAFS variable references.
|
protected abstract InputProcessor |
processor()
Return the possible embedded InputProcessor.
|
abstract void |
run()
Initiates the embedded drivers and engines to start running if it is not already running.
|
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 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.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.lang.String... parameters)
Run a SAFS Component Function on a child component in a parent (Window).
|
TestRecordHelper |
runDriverCommand(java.lang.String command,
java.lang.String... parameters)
Run the specified DriverCommand requiring zero or more parameters.
|
TestRecordHelper |
runDriverCommandConverted(java.lang.String command,
java.lang.String... parameters)
Run a SAFS Driver Command.
|
abstract void |
shutdown()
Shutdown the driver and all related resources such as hooks, engines, services and logs etc.
|
public static final java.lang.String DEFAULT_APPMAP_ORDER
public static final java.lang.String APPMAP_ORDER_PROPERTY
public static final java.lang.String APPMAP_FILES_PROPERTY
static final java.lang.String BASH
static final java.lang.String SEMI
static final java.lang.String HASH
static final java.lang.String COMMA
protected static AbstractDriver _instance
protected void preloadAppMaps()
Seek an AppMap.order file in the Datapool directory.
By default the file sought is AppMap.order. However, the user can specify an alternate AppMap order file or AppMap files by using the following JVM Argument:
protected java.lang.String[] processExpressions(java.lang.String... parameters)
parameters
- String[] of optional parameters. Can be (String[])null.protected java.lang.String processExpression(java.lang.String expression)
protected void preloadAppMapExpressions()
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String parent) throws java.lang.Throwable
command
- The ComponentFunction keyword (action) to performparent
- The ComponentFunction parent window name to act onjava.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
StatusCodes.OK
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String child, java.lang.String parent) 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 onjava.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
StatusCodes.OK
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public TestRecordHelper runComponentFunction(java.lang.String command, java.lang.String child, java.lang.String parent, 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
- String[] of parameters used by the command. Can be null.java.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
StatusCodes.OK
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public TestRecordHelper runDriverCommand(java.lang.String command, java.lang.String... parameters) throws java.lang.Throwable
command
- -- Cannot be null and is not case-sensitive.parameters
- -- optional. Can be (String[])null.java.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
StatusCodes.OK
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public TestRecordHelper runDriverCommandConverted(java.lang.String command, java.lang.String... parameters) throws java.lang.Throwable
command
- The DriverCommand keyword (command) to performparameters
- String[] of parameters used by the command. Can be null.java.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
Success
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public TestRecordHelper runComponentFunctionConverted(java.lang.String command, java.lang.String child, java.lang.String parent, 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
- String[] of parameters used by the command. Can be null.java.lang.Throwable
StatusCodes.GENERAL_SCRIPT_FAILURE
,
StatusCodes.OK
,
StatusCodes.SCRIPT_WARNING
,
StatusCodes.SCRIPT_NOT_EXECUTED
public DriverInterface iDriver()
#setIDriver(DriverInterface)
,
JSAFSDriver
,
InputProcessor
protected abstract JSAFSDriver jsafs()
protected abstract InputProcessor processor()
public abstract void run() throws java.lang.Exception
java.lang.Exception
public abstract void shutdown() throws java.lang.Exception
java.lang.Exception
Copyright © SAS Institute. All Rights Reserved.