org.safs.rational
Class DCDriverCommand
java.lang.Object
org.safs.Processor
org.safs.DriverCommand
org.safs.rational.DCDriverCommand
public class DCDriverCommand
- extends DriverCommand
Purpose: DCDriverCommand, process a default generic driver command
Lifetime: instantiated by DriverCommandProcessor
im
- Since:
- JUN 14, 2003
Aug 25, 2003 (DBauman) Original Release
Carl Nagle, SEP 16, 20003 Enabled the use of new LogUtilities
Nov 14, 2003 (DBauman) adding commands:
CloseApplication, LaunchApplication,
Nov 15, 2005 (bolawl) Added OnGUI(Not)Exist(s)GotoBlockID commands RJL.
Dec 09, 2005 (bolawl) Added SetContext command RJL.
Oct 23, 2007 (CANAGL) Fixed NullPointerException in waitForPropertyValue
May 05, 2008 (JunwuMa) Added OnMenuItemContainsStateGotoBlockID
JUL 28, 2008 (LeiWang) Modify method OnMenuItemContainsStateGotoBlockID to adapt .NET application.
JUL 31, 2008 (CANAGL) Add CASEINSENSITIVE support to WaitForPropertyValue commands.
JUN 12, 2008 (LeiWang) Modify method: OnMenuItemContainsStateGotoCommand()
For supporting the menu (type is .Menubar) of win domain.
JUL 20, 2009 (CANAGL) Added more significant cache clearing for some driver commands.
AUG 05, 2008 (LeiWang) Add keyword: SetSecsSeekComponent,SetSecsDelayRetryComponent,SetSecsAfterWindowActive
GetSecsSeekComponent,GetSecsDelayRetryComponent,GetSecsAfterWindowActive
DEC 14, 2009 (singrk) Added keyword:ScrollWheel.
| Fields inherited from class org.safs.Processor |
breakpointsOn, CASE_INSENSITIVE_FLAG, CASEINSENSITIVE_FLAG, clearProxiesAlways, commandLineBreakpoint, customStr, customText, DEBUG_MESSAGE, debugStr, debugText, DEFAULT_CUSTOM_PROCESSOR_PACKAGE, DEFAULT_CUSTOM_PROCESSOR_SUBPACKAGE, DEFAULT_PROCESSOR_PACKAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, failedStr, failedText, FAILURE_DETAIL, GENERIC_MESSAGE, genericStr, genericText, LINE_FAILURE_4, log, myBreakpointsOn, otherStr, otherText, PARAM_SIZE_1, PARAM_SIZE_2, PARAM_SIZE_3, PARAM_SIZE_4, params, PASSED_MESSAGE, passedStr, passedText, PRE_TXT_SUCCESS_4, PRE_TXT_SUCCESS_5, processorConfigSet, processorMap, recordProcessed, RECTYPE_DRIVER_COMMAND, RECTYPE_DRIVER_COMMAND_F, RECTYPE_DRIVER_COMMAND_W, RECTYPE_TEST_STEP, RECTYPE_TEST_STEP_F, RECTYPE_TEST_STEP_W, SAFS_CLEARPROXIESALWAYS_ITEM, SAFS_COMMANDLINEBREAKPOINT_ITEM, SAFS_COMMANDLINEBREAKPOINT_VARIABLE, SAFS_PARAMS_FILE, SAFS_RESBUN_NAME, SAFS_SECSWAITFORCOMPONENT_ITEM, SAFS_SECSWAITFORCOMPONENT_VARIABLE, SAFS_SECSWAITFORWINDOW_ITEM, SAFS_SECSWAITFORWINDOW_VARIABLE, SAFS_TESTDOMAINS_ITEM, SAFS_TESTDOMAINS_VARIABLE, secsWaitForComponent, secsWaitForWindow, SENT_MSG_3, testDomains, testRecordData, TXT_FAILURE_1, TXT_FAILURE_2, TXT_FAILURE_3, TXT_FAILURE_4, TXT_FAILURE_5, TXT_SUCCESS_1, TXT_SUCCESS_2, TXT_SUCCESS_2a, TXT_SUCCESS_3, TXT_SUCCESS_3a, TXT_SUCCESS_4, TXT_SUCCESS_5, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText |
|
Method Summary |
void |
process()
Purpose: process: process the testRecordData
This is a driver command processor. |
| Methods inherited from class org.safs.DriverCommand |
getStandardFailureDetail, getStandardWarningDetail, interpretFields, issueActionFailure, issueActionOnXFailure, issueActionWarning, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueExecutionNegativeMessage, issueFileErrorFailure, issueGenericSuccess, issueInputRecordFailure, issueParameterCountFailure, issueParameterCountFailure, issueParameterValueFailure, issueUnknownErrorFailure, isSupportedRecordType |
| Methods inherited from class org.safs.Processor |
activateBreakpoint, checkBreakpoints, checkMyBreakpoints, delay, distributeConfigInformation, getAlternateParams, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, paramsFailedMsg, paramsFailedMsg, processCustomProcessor, processSubclassProcessor, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALLSCRIPT
public static final java.lang.String CALLSCRIPT
- See Also:
- Constant Field Values
WAITFORGUI
public static final java.lang.String WAITFORGUI
- See Also:
- Constant Field Values
WAITFORGUIGONE
public static final java.lang.String WAITFORGUIGONE
- See Also:
- Constant Field Values
CLEARAPPMAPCACHE
public static final java.lang.String CLEARAPPMAPCACHE
- See Also:
- Constant Field Values
CLOSEAPPLICATION
public static final java.lang.String CLOSEAPPLICATION
- See Also:
- Constant Field Values
LAUNCHAPPLICATION
public static final java.lang.String LAUNCHAPPLICATION
- See Also:
- Constant Field Values
WAITFORPROPERTYVALUE
public static final java.lang.String WAITFORPROPERTYVALUE
- See Also:
- Constant Field Values
WAITFORPROPERTYVALUEGONE
public static final java.lang.String WAITFORPROPERTYVALUEGONE
- See Also:
- Constant Field Values
WAITFORWEBPAGE
public static final java.lang.String WAITFORWEBPAGE
- See Also:
- Constant Field Values
SETCONTEXT
public static final java.lang.String SETCONTEXT
- See Also:
- Constant Field Values
SETFOCUS
public static final java.lang.String SETFOCUS
- See Also:
- Constant Field Values
CAPTUREMOUSEPOSITIONONSCREEN
public static final java.lang.String CAPTUREMOUSEPOSITIONONSCREEN
- See Also:
- Constant Field Values
ONGUIEXISTSGOTOBLOCKID
public static final java.lang.String ONGUIEXISTSGOTOBLOCKID
- See Also:
- Constant Field Values
ONGUINOTEXISTGOTOBLOCKID
public static final java.lang.String ONGUINOTEXISTGOTOBLOCKID
- See Also:
- Constant Field Values
ENABLE_DOMAIN
public static final java.lang.String ENABLE_DOMAIN
- See Also:
- Constant Field Values
DISABLE_DOMAIN
public static final java.lang.String DISABLE_DOMAIN
- See Also:
- Constant Field Values
ONMENUITEMCONTAINSSTATEGOTOBLOCKID
public static final java.lang.String ONMENUITEMCONTAINSSTATEGOTOBLOCKID
- See Also:
- Constant Field Values
SET_SECS_SEEK_COMPONENT
public static final java.lang.String SET_SECS_SEEK_COMPONENT
- See Also:
- Constant Field Values
SET_SECS_DELAY_RETRY_COMPONENT
public static final java.lang.String SET_SECS_DELAY_RETRY_COMPONENT
- See Also:
- Constant Field Values
SET_SECS_AFTER_WIN_ACTIVE
public static final java.lang.String SET_SECS_AFTER_WIN_ACTIVE
- See Also:
- Constant Field Values
GET_SECS_SEEK_COMPONENT
public static final java.lang.String GET_SECS_SEEK_COMPONENT
- See Also:
- Constant Field Values
GET_SECS_DELAY_RETRY_COMPONENT
public static final java.lang.String GET_SECS_DELAY_RETRY_COMPONENT
- See Also:
- Constant Field Values
GET_SECS_AFTER_WIN_ACTIVE
public static final java.lang.String GET_SECS_AFTER_WIN_ACTIVE
- See Also:
- Constant Field Values
SCROLLWHEEL
public static final java.lang.String SCROLLWHEEL
- See Also:
- Constant Field Values
DCDriverCommand
public DCDriverCommand()
Purpose: constructor, calls super
process
public void process()
Purpose: process: process the testRecordData
This is a driver command processor.
Side Effects: Processor.testRecordData statusCode is set
based on the result of the processing; processedCommand is set to false
if we do not recognize this command
State Read: Processor.testRecordData, Processor.params
Assumptions: none
- Overrides:
process in class Processor