public class AutoItComponent extends GenericEngine
This 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 | Class and Description |
---|---|
(package private) class |
AutoItComponent.AutoItDriverCommand
Handle Driver Commands
|
(package private) class |
AutoItComponent.CFComponent
Local CFComponent
|
Modifier and Type | Field and Description |
---|---|
protected AutoItComponent.AutoItDriverCommand |
adc
The special AutoIT Processor for handling Driver Command keywords.
|
static java.lang.String |
AUTOITCOMPONENT_ENGINE
"AUTOITComponent"
|
protected ComponentFunction |
cf
The special AutoIT Processor for handling Component Function keywords.
|
static java.lang.String |
ENGINE_NAME
"SAFS/AUTOITComponent"
|
protected AutoItXPlus |
it
The AutoIt instance got by AutoIt.AutoItObject().
This instance may be shared by multiple threads. |
console, process, testRecordData, testrecordStackable
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 |
---|
AutoItComponent()
Constructor for AUTOITComponent.
It will also initialize the shared AutoIT object. |
AutoItComponent(DriverInterface driver)
PREFERRED Constructor for AUTOITComponent.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<java.lang.String> |
interpretFields(TestRecordHelper testRecordData) |
void |
launchInterface(java.lang.Object configInfo)
Typically expects a DriverInterface object for initialization.
|
void |
processIndependently(TestRecordHelper testRecordData)
Note: Now this method is called only by a special processor CFAUTOITComponent
Before calling this method, you must make sure the test record data
is correctly initialized.
|
long |
processRecord(TestRecordHelper testRecordData)
Initiate the event-driven protocol to send the test record to the engine.
|
protected boolean |
waitForGUI(AutoItRs rs)
Prerequisite:
it and GenericEngine.testRecordData should be initialized. |
deduceBenchFile, deduceProjectFile, deduceTestFile, getAppMapItem, getEngineName, getVariable, isToolRunning, logMessage, makeQuotedPath, makeQuotedString, popTestRecord, postShutdownServiceDelay, pushTestRecord, reset, resetShutdownSemaphore, saveTestRecordScreenToTestDirectory, setTRDStatus, setVariable, shutdownService, waitHookShutdownAndReset
configureJSTAFServiceEmbeddedJVMOption, extendedGenericMessage, finalize, getCoreInterface, getEmbeddedJVMBinPath, getSTAFHelper, logMessage, setLogUtilities, setLogUtilities, shutdown, simpleGenericMessage, simpleGenericSuccessMessage, simpleGenericWarningMessage, simpleSuccessMessage, simpleSuccessMessage, simpleSuccessUsingMessage, standardErrorMessage, waitForServiceStartCompletion
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoreInterface, shutdown
public static final java.lang.String ENGINE_NAME
public static final java.lang.String AUTOITCOMPONENT_ENGINE
protected ComponentFunction cf
protected AutoItComponent.AutoItDriverCommand adc
protected AutoItXPlus it
AutoItComponent()
public AutoItComponent()
public AutoItComponent(DriverInterface driver)
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)
GenericEngine
processRecord
in interface EngineInterface
processRecord
in class GenericEngine
EngineInterface#processRecord()
public void processIndependently(TestRecordHelper testRecordData)
testRecordData
- protected java.util.Collection<java.lang.String> interpretFields(TestRecordHelper testRecordData)
protected boolean waitForGUI(AutoItRs rs) throws SAFSException
it
and GenericEngine.testRecordData
should be initialized.rs
- AutoItRs, the recognition string representing the AutoIT component.SAFSException
Copyright © SAS Institute. All Rights Reserved.