public class DriverCommandProcessor extends Processor
Modifier and Type | Field and Description |
---|---|
protected static boolean |
dcBreakpointsOn
All DriverCommandProcessor instances may enable/disable and force breakpoints where they
deem this appropriate.
|
protected DriverCommand |
dcCustom |
protected DriverCommand |
dcData |
protected DriverCommand |
dcFile |
protected DriverCommand |
dcFlow |
protected DriverCommand |
dcMisc |
protected DriverCommand |
dcStrg |
protected DriverCommand |
dcTimer |
static java.lang.String |
DEFAULT_DRIVER_COMMAND_CLASSNAME
"DCDriverCommand"
Short classname appended to alternative/custom package names.
|
protected boolean |
standardDC
True if the processor is suppose to use Standard Driver Command processors.
|
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, RFSMCache, RFSMOnly, RFT_FIND_SEARCH_MODE_ALGORITHM, RFT_FIND_SEARCH_MODE_CACHE, 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, testrecordStackable, 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, unexpectedAlertBehaviour, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText
Constructor and Description |
---|
DriverCommandProcessor()
Purpose: constructor, calls super |
Modifier and Type | Method and Description |
---|---|
protected void |
checkMyBreakpoints(java.lang.String breakpoint_message)
test for enabled DC-specific breakpoints in addition to the standard
Processor breakpoints.
|
java.util.ArrayList |
getCustomProcClassNames()
Overrides Processor.getCustomProcClassName
The routine returns a list of:
super.getCustomProcClassNames customProcInstancePath.DCDriverCommand customProcInstancePath.custom.DCDriverCommand |
java.util.ArrayList |
getProcClassNames()
Overrides Processor.getProcClassNames
The routine returns a list of:
super.getProcClassNames procInstancePath.DCDriverCommand |
protected boolean |
instantiateAndProcessDriverCommand(java.util.Collection params)
Purpose: instantiateAndProcessDriverCommand Side Effects: State Read: Processor.testRecordData
Assumptions: If it cannot process a local (org.safs) driver command, then assumes that the driver command is DCDriverCommand with the path taken from testRecordData.getCompInstancePath() |
protected java.util.Collection |
interpretFields()
Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData. |
static boolean |
isDCBreakpointsOn()
test if DC-specific breakpoints are enabled.
|
boolean |
isStandardDriverCommandsEnabled() |
boolean |
isSupportedRecordType(java.lang.String recordType)
Supports standard DRIVER COMMAND record types (C, CW, CF)
|
void |
process()
Purpose: process: process the testRecordData |
protected boolean |
processStandardDriverCommands(java.util.Collection params) |
static void |
setDCBreakpointsOn(boolean enabled)
This may be set by any means.
|
void |
setStandardDriverCommandsEnabled(boolean enabled) |
activateBreakpoint, checkBreakpoints, deduceBenchFile, deduceDiffFile, deduceProjectFile, deduceTestFile, delay, distributeConfigInformation, getAbsolutFileName, getAlternateParams, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcInstancePath, getLogUtilities, getParams, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getUnexpectedAlertBehaviour, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, isRFSMCache, isRFSMOnly, issueActionFailure, issueActionOnXFailure, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueErrorPerformingActionUsing, issueInputRecordFailure, issueInputRecordFailure, issuePassedSuccess, logFailureMessage, normalizeTestFileName, paramsFailedMsg, paramsFailedMsg, popTestRecord, processCustomProcessor, processSubclassProcessor, pushTestRecord, setAtEndOfProcess, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setRFSMCache, setRFSMOnly, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setUnexpectedAlertBehaviour, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassName
public static final java.lang.String DEFAULT_DRIVER_COMMAND_CLASSNAME
protected static boolean dcBreakpointsOn
protected boolean standardDC
protected DriverCommand dcMisc
protected DriverCommand dcFile
protected DriverCommand dcData
protected DriverCommand dcStrg
protected DriverCommand dcFlow
protected DriverCommand dcCustom
protected DriverCommand dcTimer
public DriverCommandProcessor()
public boolean isSupportedRecordType(java.lang.String recordType)
isSupportedRecordType
in class Processor
recordType
- -- String text of record type to match (ignoring case).public static void setDCBreakpointsOn(boolean enabled)
public static boolean isDCBreakpointsOn()
protected void checkMyBreakpoints(java.lang.String breakpoint_message)
checkMyBreakpoints
in class Processor
public void setStandardDriverCommandsEnabled(boolean enabled)
public boolean isStandardDriverCommandsEnabled()
protected boolean processStandardDriverCommands(java.util.Collection params)
public java.util.ArrayList getProcClassNames()
Use validProcessorClassName before adding class names to the list.
getProcClassNames
in class Processor
public java.util.ArrayList getCustomProcClassNames()
Use validProcessorClassName before adding class names to the list.
getCustomProcClassNames
in class Processor
public void process()
At this point the Driver has determined we are dealing with a Driver Command Record.
Field #1: The record type (C).
Subsequent fields would be as follows (with a separator between each field):
Field: #2 #3 - N
============== ==============
COMMAND, [PARAMETER(S),]
COMMAND the driver command
Side Effects: Processor.testRecordData
statusCode is set
based on the result of the processing
State Read: Processor.testRecordData
Assumptions: an 'SAFSException' is caught here, and if so, the status code
is set to StatusCodes.WRONG_NUM_FIELDS, which is the only error which should come
from the interpretFields() method which we call. This only happens if we don't have
the token (2)
Added by dbauman Feb, 2004 so that a variable remains for the next test with
the status code. Copies the status code to variable 'customStatusCode'
protected java.util.Collection interpretFields() throws SAFSException
Processor.testRecordData
fields are set from the inputRecord.
Processor.testRecordData
, the inputRecord field
Field #1: The DRIVER COMMAND record type (C).
Subsequent fields would be as follows (with a separator between each field):
Field: #2 #3 - N
============== ===============
COMMAND, [PARAMETER(S),]
SAFSException
protected boolean instantiateAndProcessDriverCommand(java.util.Collection params) throws SAFSException
Processor.testRecordData
for driver commands in different packages,
we make use of a HashMap of commands already instantiated,
and reuse them if possible, so that we do not have to incurr the cost of
instantiating over and over again. field: '#commandMap
'
params,
- CollectionSAFSException
Copyright © SAS Institute. All Rights Reserved.