public class TIDComponent extends GenericEngine
These are Component Functions that do not actually reference any GUI component. Some examples of these are commands like VerifyValues and certain database commands that allow the Window and Component references to be "Anything" "At All".
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 |
TIDComponent.CFComponent
Local CFComponent
|
protected class |
TIDComponent.RESTComponent
Internal Component Function Processor to handle REST actions.
|
Modifier and Type | Field and Description |
---|---|
protected ComponentFunction |
cf
The special Processor for handling TID Component Function keywords.
|
(package private) static java.lang.String |
COMMAND_CLEARAPPMAPCACHE
"VerifyValues"
|
(package private) static java.lang.String |
COMMAND_CLICK
"Click"
|
(package private) static java.lang.String |
COMMAND_CLICKSCREENIMAGE
"ClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_CLICKSCREENLOCATION
"ClickScreenLocation"
|
(package private) static java.lang.String |
COMMAND_CLICKSCREENPOINT
"ClickScreenPoint"
|
(package private) static java.lang.String |
COMMAND_CTRLCLICK
"CtrlClick"
|
(package private) static java.lang.String |
COMMAND_CTRLCLICKSCREENIMAGE
"CtrlClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_CTRLRIGHTCLICK
"CtrlRightClick"
|
(package private) static java.lang.String |
COMMAND_CTRLRIGHTCLICKSCREENIMAGE
"CtrlRightClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_DOUBLECLICK
"DoubleClick"
|
(package private) static java.lang.String |
COMMAND_DOUBLECLICKSCREENIMAGE
"DoubleClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_DOUBLECLICKSCREENLOCATION
"DoubleClickScreenLocation"
|
(package private) static java.lang.String |
COMMAND_DOUBLECLICKSCREENPOINT
"DoubleClickScreenPoint"
|
(package private) static java.lang.String |
COMMAND_GETGUIIMAGE
"GetGUIImage"
|
(package private) static java.lang.String |
COMMAND_GETTEXTFROMGUI
"GetTextFromGUI"
|
(package private) static java.lang.String |
COMMAND_GUIDOESEXIST
"GUIDoesExist"
|
(package private) static java.lang.String |
COMMAND_GUIDOESNOTEXIST
"GUIDoesNotExist"
|
(package private) static java.lang.String |
COMMAND_HOVERMOUSE
"HoverMouse"
|
(package private) static java.lang.String |
COMMAND_HOVERSCREENLOCATION
"HoverScreenLocation"
|
(package private) static java.lang.String |
COMMAND_INPUTCHARS
"InputCharacterss"
|
(package private) static java.lang.String |
COMMAND_INPUTKEYS
"InputKeys"
|
(package private) static java.lang.String |
COMMAND_LEFTDRAG
"LeftDrag"
|
(package private) static java.lang.String |
COMMAND_LOCATESCREENIMAGE
"LocateScreenImage"
|
(package private) static java.lang.String |
COMMAND_MULTICLICK
"MultiClick"
|
(package private) static java.lang.String |
COMMAND_MULTICLICKSCREENIMAGE
"MultiClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_RIGHTCLICK
"RightClick"
|
(package private) static java.lang.String |
COMMAND_RIGHTCLICKSCREENIMAGE
"RightClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_RIGHTCLICKSCREENLOCATION
"RightClickScreenLocation"
|
(package private) static java.lang.String |
COMMAND_RIGHTCLICKSCREENPOINT
"RightClickScreenPoint"
|
(package private) static java.lang.String |
COMMAND_RIGHTDRAG
"RightDrag"
|
(package private) static java.lang.String |
COMMAND_SAVETEXTFROMGUI
"SaveTextFromGUI"
|
(package private) static java.lang.String |
COMMAND_SHIFTCLICK
"ShiftClick"
|
(package private) static java.lang.String |
COMMAND_SHIFTCLICKSCREENIMAGE
"ShiftClickScreenImage"
|
(package private) static java.lang.String |
COMMAND_TYPECHARS
"TypeChars"
|
(package private) static java.lang.String |
COMMAND_TYPEENCRYPTION
"TypeEncryption"
|
(package private) static java.lang.String |
COMMAND_TYPEKEYS
"TypeKeys"
|
(package private) static java.lang.String |
COMMAND_VERIFYBINARYFILETOFILE
"VerifyBinaryFileToFile"
|
(package private) static java.lang.String |
COMMAND_VERIFYCLIPBOARDTOFILE
"VerifyValues"
|
(package private) static java.lang.String |
COMMAND_VERIFYFILETOFILE
"VerifyFileToFile"
|
(package private) static java.lang.String |
COMMAND_VERIFYGUIIMAGETOFILE
"VerifyGUIImageToFile"
|
(package private) static java.lang.String |
COMMAND_VERIFYTEXTFILETOFILE
"VerifyTextFileToFile"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUECONTAINS
"VerifyValueContains"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUECONTAINSIGNORECASE
"VerifyValueContainsIgnoreCase"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUEDOESNOTCONTAIN
"VerifyValueDoesNotContain"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUEEQUALS
"VerifyValueEquals"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUES
"VerifyValues"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUESIGNORECASE
"VerifyValuesIgnoreCase"
|
(package private) static java.lang.String |
COMMAND_VERIFYVALUESNOTEQUAL
"VerifyValuesNotEqual"
|
(package private) static java.lang.String |
ENGINE_NAME
"SAFS/TIDComponent"
|
static java.lang.String |
FLAG_SAFSREST
"SAFSREST"
|
(package private) static java.lang.String |
PARAM_SUPPRESSVALUE
"SuppressValue"
|
protected ComponentFunction |
restCF
The special Processor for handling REST Component Function keywords.
|
(package private) static java.lang.String |
TIDCOMPONENT_ENGINE
"TIDComponent"
|
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 |
---|
TIDComponent()
Constructor for TIDComponent
|
TIDComponent(DriverInterface driver)
PREFERRED Constructor for TIDComponent.
|
Modifier and Type | Method and Description |
---|---|
static Response |
deleteRestResponse(java.lang.String responseID) |
static void |
deleteRestResponseStore()
Clean the whole Map, all Responses will be removed.
|
static Response |
getRestResponse(java.lang.String responseID) |
protected java.util.Collection<java.lang.String> |
interpretFields(TestRecordHelper testRecordData) |
static boolean |
isCheckGUIExistence(java.lang.String action)
Note: We don't if the GUI exist or not, so we will NOT force to wait for GUI's existence.
|
static boolean |
isGUILess(java.lang.String action)
Note: As these are GUILess actions, so we will NOT force to wait for GUI's existence.
|
static boolean |
isRESTFunction(java.lang.String flag)
Check if the action is a REST action.
|
void |
launchInterface(java.lang.Object configInfo)
Typically expects a DriverInterface object for initialization.
|
static boolean |
noWaitGUIExistence(java.lang.String action)
Note: For some component keywords, the existence of GUI is required, like Click, GetGUIImage etc.
While for others, the existence of GUI in NOT necessary, like VerifyValues, TypeKeys etc., for this kind of keywords, we will not wait for GUI existence in TestStepProcessor.process() .If the GUI existence is not necessary, then this method will return true. |
void |
processIndependently(TestRecordHelper testRecordData)
Note: Now this method is called only by a special processor CFTIDComponent
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.
|
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
static final java.lang.String ENGINE_NAME
static final java.lang.String TIDCOMPONENT_ENGINE
public static final java.lang.String FLAG_SAFSREST
static final java.lang.String COMMAND_CLEARAPPMAPCACHE
static final java.lang.String COMMAND_VERIFYCLIPBOARDTOFILE
static final java.lang.String COMMAND_VERIFYVALUES
static final java.lang.String COMMAND_VERIFYVALUESNOTEQUAL
static final java.lang.String COMMAND_VERIFYVALUESIGNORECASE
static final java.lang.String COMMAND_VERIFYVALUECONTAINS
static final java.lang.String COMMAND_VERIFYVALUECONTAINSIGNORECASE
static final java.lang.String COMMAND_VERIFYVALUEDOESNOTCONTAIN
static final java.lang.String COMMAND_VERIFYVALUEEQUALS
static final java.lang.String COMMAND_VERIFYBINARYFILETOFILE
static final java.lang.String COMMAND_VERIFYFILETOFILE
static final java.lang.String COMMAND_VERIFYTEXTFILETOFILE
static final java.lang.String COMMAND_CLICK
static final java.lang.String COMMAND_CTRLCLICK
static final java.lang.String COMMAND_SHIFTCLICK
static final java.lang.String COMMAND_MULTICLICK
static final java.lang.String COMMAND_CLICKSCREENIMAGE
static final java.lang.String COMMAND_CTRLCLICKSCREENIMAGE
static final java.lang.String COMMAND_SHIFTCLICKSCREENIMAGE
static final java.lang.String COMMAND_RIGHTCLICK
static final java.lang.String COMMAND_CTRLRIGHTCLICK
static final java.lang.String COMMAND_LEFTDRAG
static final java.lang.String COMMAND_RIGHTDRAG
static final java.lang.String COMMAND_RIGHTCLICKSCREENIMAGE
static final java.lang.String COMMAND_CTRLRIGHTCLICKSCREENIMAGE
static final java.lang.String COMMAND_DOUBLECLICK
static final java.lang.String COMMAND_DOUBLECLICKSCREENIMAGE
static final java.lang.String COMMAND_MULTICLICKSCREENIMAGE
static final java.lang.String COMMAND_LOCATESCREENIMAGE
static final java.lang.String COMMAND_GETGUIIMAGE
static final java.lang.String COMMAND_HOVERMOUSE
static final java.lang.String COMMAND_VERIFYGUIIMAGETOFILE
static final java.lang.String COMMAND_GUIDOESEXIST
static final java.lang.String COMMAND_GUIDOESNOTEXIST
static final java.lang.String COMMAND_CLICKSCREENPOINT
static final java.lang.String COMMAND_RIGHTCLICKSCREENPOINT
static final java.lang.String COMMAND_DOUBLECLICKSCREENPOINT
static final java.lang.String COMMAND_HOVERSCREENLOCATION
static final java.lang.String COMMAND_CLICKSCREENLOCATION
static final java.lang.String COMMAND_RIGHTCLICKSCREENLOCATION
static final java.lang.String COMMAND_DOUBLECLICKSCREENLOCATION
static final java.lang.String COMMAND_TYPEKEYS
static final java.lang.String COMMAND_INPUTKEYS
static final java.lang.String COMMAND_TYPECHARS
static final java.lang.String COMMAND_TYPEENCRYPTION
static final java.lang.String COMMAND_INPUTCHARS
static final java.lang.String COMMAND_GETTEXTFROMGUI
static final java.lang.String COMMAND_SAVETEXTFROMGUI
static final java.lang.String PARAM_SUPPRESSVALUE
protected ComponentFunction cf
protected ComponentFunction restCF
public TIDComponent()
public TIDComponent(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)
public static boolean isGUILess(java.lang.String action)
action
- String, the keyword to executepublic static boolean isCheckGUIExistence(java.lang.String action)
action
- String, the keyword to executepublic static boolean noWaitGUIExistence(java.lang.String action)
TestStepProcessor.process()
.action
- String, the keyword to executeTestStepProcessor.process()
public static boolean isRESTFunction(java.lang.String flag)
flag
- String, it could be the WindowID or the WindowNamepublic static Response getRestResponse(java.lang.String responseID)
responseID
- String, the unique ID to identify the rest service Response.public static Response deleteRestResponse(java.lang.String responseID)
responseID
- String, the unique ID to identify the rest service Response.public static void deleteRestResponseStore()
Copyright © SAS Institute. All Rights Reserved.