public class TIDDriverCommands extends GenericEngine
These are Driver Commands generally needed exclusively by the Driver to perform Driver-specific functions, or to configure the various engines. This is just a subset of all Driver Commands generally available.
This DriverCommands engine does not assume the use of STAF. Instead, it uses the various org.safs.tools Interfaces to talk with the rest of the framework (as made available via the DriverInterface configuration).
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
ABBOT_ENGINE
"SAFSABBOT"
|
(package private) java.lang.String |
command |
(package private) static java.lang.String |
COMMAND_CLOSEAPPLICATIONMAP
"CloseApplicationMap"
|
(package private) static java.lang.String |
COMMAND_EXPRESSIONS
"Expressions"
|
(package private) static java.lang.String |
COMMAND_SENDEMAIL
SendEmail
|
(package private) static java.lang.String |
COMMAND_SETAPPLICATIONMAP
"SetApplicationMap"
|
static java.lang.String |
COMMAND_SETBENCHDIRECTORY
"SetBenchDirectory"
|
static java.lang.String |
COMMAND_SETDIFDIRECTORY
"SetDifDirectory"
|
static java.lang.String |
COMMAND_SETIMAGEDEBUG
"SetImageDebug"
|
static java.lang.String |
COMMAND_SETIMAGEFUZZYMATCHING
"SetImageFuzzyMatching"
|
static java.lang.String |
COMMAND_SETPROJECTDIRECTORY
"SetProjectDirectory"
|
static java.lang.String |
COMMAND_SETROOTVERIFYDIRECTORY
"SetRootVerifyDirectory"
|
static java.lang.String |
COMMAND_SETTESTDIRECTORY
"SetTestDirectory"
|
(package private) static java.lang.String |
COMMAND_SETVARIABLEVALUES
"SetVariableValues"
|
(package private) static java.lang.String |
COMMAND_TAKESCREENSHOT
TakeScreenShot
|
(package private) static java.lang.String |
COMMAND_USEABBOTFUNCTIONS
UseABBOTFunctions
|
(package private) static java.lang.String |
COMMAND_USEDROIDFUNCTIONS
UseDroidFunctions
|
(package private) static java.lang.String |
COMMAND_USEIOSFUNCTIONS
UseIOSFunctions
|
(package private) static java.lang.String |
COMMAND_USEQTPFUNCTIONS
UseQTPFunctions
|
(package private) static java.lang.String |
COMMAND_USEROBOTJFUNCTIONS
"UseRobotJFunctions"
|
(package private) static java.lang.String |
COMMAND_USESAFSFUNCTIONS
UseSAFSFunctions
|
(package private) static java.lang.String |
COMMAND_USESELENIUMFUNCTIONS
UseSeleniumFunctions
|
(package private) static java.lang.String |
COMMAND_USETESTCOMPLETEFUNCTIONS
UseTestCompleteFunctions
|
(package private) static java.lang.String |
COMMAND_VERSION
"Version"
|
static java.lang.String |
COMMAND_WAITFORGUI
"WaitForGUI"
|
static java.lang.String |
COMMAND_WAITFORGUIGONE
"WaitForGUIGone"
|
(package private) TIDDriverCounterCommands |
dcCounters |
(package private) TIDDriverFlowCommands |
dcFlow |
(package private) TIDDriverLogCommands |
dcLog |
(package private) TIDDriverRestCommands |
dcRest |
(package private) java.lang.String |
detail |
(package private) static java.lang.String |
DROID_ENGINE
"SAFSDROID"
|
(package private) static java.lang.String |
ENGINE_NAME
"SAFS/TIDDriverCommands"
|
static java.lang.String |
GET_MILLIS_BETWEEN_RECORDS |
(package private) static java.lang.String |
IOS_ENGINE
"SAFSIOS"
|
(package private) java.lang.String |
message |
(package private) static java.lang.String |
QTP_ENGINE
"SAFSQTP"
|
(package private) static java.lang.String |
ROBOTJ_ENGINE
"SAFSROBOTJ"
|
(package private) static java.lang.String |
SDC_ENGINE
"SAFSDRIVERCOMMANDS"
|
(package private) static java.lang.String |
SELENIUM_ENGINE
"SAFSSELENIUM"
|
static java.lang.String |
SET_MILLIS_BETWEEN_RECORDS |
static java.lang.String |
SETMULTIPLETHREADSEARCH |
(package private) static java.lang.String |
TCAFS_ENGINE
"SAFSTC"
|
console, description, process, productName, testRecordData, testrecordStackable, version
config, customStr, customText, debugStr, debugText, driver, DRIVER_TEMP_PROCESS, failedStr, failedText, genericStr, genericText, launchCount, log, machine, otherStr, otherText, passedStr, passedText, processName, running, SAFS_RESBUN_NAME, servicename, shutdownCount, staf, STAFPROC_EXE, warningStr, warningText, weStartedService, weStartedSTAF
COMMAND_SHUTDOWN_HOOK
Constructor and Description |
---|
TIDDriverCommands()
Constructor for TIDDriverCommands
|
TIDDriverCommands(DriverInterface driver)
PREFERRED Constructor for TIDDriverCommands.
|
TIDDriverCommands(LogUtilities log)
Instantiate a new TIDDriverCommands,
Call setLogUtilities() of its super class for itself and its inner TID engines
like Log, Flow, Counter TIDEngines.
Normally, we should instantiate an object of this class with a driver. |
Modifier and Type | Method and Description |
---|---|
void |
launchInterface(java.lang.Object configInfo)
Typically expects a DriverInterface object for initialization.
|
long |
processRecord(TestRecordHelper testRecordData)
Process the record present in the provided testRecordData.
|
void |
setLogUtilities(LogUtilities log)
Calls super.setLogUtilities for this class and then setLogUtilities for each
chained processor in this class (dcLog, dcFlow, dcCounters, dcRest).
|
void |
setLogUtilities(LogUtilities log,
boolean copyLogClass)
Calls super.setLogUtilities for this class and then setLogUtilities for each
chained processor in this class (dcLog, dcFlow, dcCounters, dcRest).
|
protected long |
takeScreenShot() |
deduceBenchFile, deduceProjectFile, deduceTestFile, getAppMapItem, getDescription, getEngineName, getProductName, getVariable, getVersion, isToolRunning, logMessage, makeQuotedPath, makeQuotedString, popTestRecord, postShutdownServiceDelay, pushTestRecord, reset, resetShutdownSemaphore, saveTestRecordScreenToTestDirectory, setDescription, setProductName, setTRDStatus, setVariable, setVersion, shutdownService, waitHookShutdownAndReset
configureJSTAFServiceEmbeddedJVMOption, extendedGenericMessage, finalize, getCoreInterface, getEmbedded64JVMBinPath, getEmbeddedJVMBinPath, getSTAFHelper, logMessage, shutdown, simpleGenericMessage, simpleGenericSuccessMessage, simpleGenericWarningMessage, simpleSuccessMessage, simpleSuccessMessage, simpleSuccessUsingMessage, standardErrorMessage, waitForServiceStartCompletion
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoreInterface, shutdown
static final java.lang.String ENGINE_NAME
static final java.lang.String ROBOTJ_ENGINE
static final java.lang.String SDC_ENGINE
static final java.lang.String IOS_ENGINE
static final java.lang.String QTP_ENGINE
static final java.lang.String ABBOT_ENGINE
static final java.lang.String TCAFS_ENGINE
static final java.lang.String SELENIUM_ENGINE
static final java.lang.String DROID_ENGINE
static final java.lang.String COMMAND_SETAPPLICATIONMAP
static final java.lang.String COMMAND_SETVARIABLEVALUES
static final java.lang.String COMMAND_CLOSEAPPLICATIONMAP
static final java.lang.String COMMAND_EXPRESSIONS
static final java.lang.String COMMAND_VERSION
static final java.lang.String COMMAND_USEROBOTJFUNCTIONS
static final java.lang.String COMMAND_USESAFSFUNCTIONS
static final java.lang.String COMMAND_USETESTCOMPLETEFUNCTIONS
static final java.lang.String COMMAND_USEIOSFUNCTIONS
static final java.lang.String COMMAND_USEQTPFUNCTIONS
static final java.lang.String COMMAND_USEABBOTFUNCTIONS
static final java.lang.String COMMAND_USESELENIUMFUNCTIONS
static final java.lang.String COMMAND_USEDROIDFUNCTIONS
static final java.lang.String COMMAND_TAKESCREENSHOT
static final java.lang.String COMMAND_SENDEMAIL
public static final java.lang.String COMMAND_SETBENCHDIRECTORY
public static final java.lang.String COMMAND_SETDIFDIRECTORY
public static final java.lang.String COMMAND_SETPROJECTDIRECTORY
public static final java.lang.String COMMAND_SETTESTDIRECTORY
public static final java.lang.String COMMAND_SETROOTVERIFYDIRECTORY
public static final java.lang.String COMMAND_WAITFORGUI
public static final java.lang.String COMMAND_WAITFORGUIGONE
public static final java.lang.String COMMAND_SETIMAGEDEBUG
public static final java.lang.String COMMAND_SETIMAGEFUZZYMATCHING
public static final java.lang.String SET_MILLIS_BETWEEN_RECORDS
public static final java.lang.String GET_MILLIS_BETWEEN_RECORDS
public static final java.lang.String SETMULTIPLETHREADSEARCH
TIDDriverLogCommands dcLog
TIDDriverFlowCommands dcFlow
TIDDriverCounterCommands dcCounters
TIDDriverRestCommands dcRest
java.lang.String command
java.lang.String message
java.lang.String detail
public TIDDriverCommands()
public TIDDriverCommands(LogUtilities log)
log
- public TIDDriverCommands(DriverInterface driver)
public void setLogUtilities(LogUtilities log)
setLogUtilities
in class DriverConfiguredSTAFInterfaceClass
public void setLogUtilities(LogUtilities log, boolean copyLogClass)
setLogUtilities
in class DriverConfiguredSTAFInterfaceClass
log
- copyLogClass
- set to true to copy everything to the debug log (Log.class)public void launchInterface(java.lang.Object configInfo)
GenericEngine
launchInterface
in interface ConfigurableToolsInterface
launchInterface
in class GenericEngine
configInfo
- can be whatever the final implementation needs it to be. This
might be a String with configuration information, the name of a class, or an instance
of some object used to provide configuration assets.GenericEngine.launchInterface(Object)
public long processRecord(TestRecordHelper testRecordData)
processRecord
in interface EngineInterface
processRecord
in class GenericEngine
EngineInterface#processRecord()
protected long takeScreenShot() throws SAFSException
SAFSException
Copyright © SAS Institute. All Rights Reserved.