org.safs.jrex
Class JREXCustomProcessor

java.lang.Object
  |
  +--org.safs.Processor
        |
        +--org.safs.jrex.JREXCustomProcessor
Direct Known Subclasses:
startJrex

public class JREXCustomProcessor
extends Processor


Field Summary
protected  java.lang.String ECHORECORD
           
protected  java.lang.String SETURL
           
protected  java.lang.String STARTJREX
           
 
Fields inherited from class org.safs.Processor
breakpointsOn, 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, 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_PARAMS_FILE, SAFS_RESBUN_NAME, secsWaitForComponent, secsWaitForWindow, SENT_MSG_3, 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_4, TXT_SUCCESS_5, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText
 
Constructor Summary
JREXCustomProcessor()
           
 
Method Summary
protected  boolean instantiateAndProcessDriverCommand(java.util.Collection param)
           
protected  java.util.Collection interpretFields()
          
Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData.
 boolean isSupportedRecordType(java.lang.String recordType)
          Determine support for a particular record type.
 void process()
          
Purpose: process: process the testRecordData
protected  void setURL(java.lang.String url)
           
protected  void startJRex()
           
 
Methods inherited from class org.safs.Processor
activateBreakpoint, checkBreakpoints, checkMyBreakpoints, delay, getAlternateParams, getAppMapItem, getClassInstance, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getTestRecordData, getVariable, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isMyBreakpointsOn, isRecordProcessed, paramsFailedMsg, paramsFailedMsg, processCustomProcessor, processSubclassProcessor, setBreakpointsOn, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setTestRecordData, setVariable, substituteVariable, validProcessorClassName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STARTJREX

protected java.lang.String STARTJREX

SETURL

protected java.lang.String SETURL

ECHORECORD

protected java.lang.String ECHORECORD
Constructor Detail

JREXCustomProcessor

public JREXCustomProcessor()
Method Detail

isSupportedRecordType

public boolean isSupportedRecordType(java.lang.String recordType)
Description copied from class: Processor
Determine support for a particular record type.
Overrides:
isSupportedRecordType in class Processor
Following copied from class: org.safs.Processor
Parameters:
recordType - -- String text of record type to match (ignoring case).
Returns:
'true' if the provided recordType is one this Processor can execute. Note, that SAFS record types are normally not case-sensitive. So the comparison to match the provided recordType should ignore case.


process

public void process()

Purpose: process: process the testRecordData

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'

Overrides:
process in class Processor

interpretFields

protected java.util.Collection interpretFields()
                                        throws SAFSException

Purpose: Interprets the fields of the driver command record and puts the appropriate values into the fields of testRecordData.
Side Effects: Processor.testRecordData fields are set from the inputRecord.
State Read: Processor.testRecordData, the inputRecord field
Assumptions: The following order:

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),]

Returns:
Collection of the parameter(s)

instantiateAndProcessDriverCommand

protected boolean instantiateAndProcessDriverCommand(java.util.Collection param)
                                              throws java.lang.Exception

startJRex

protected void startJRex()

setURL

protected void setURL(java.lang.String url)