public class TestRecordHelper extends TestRecordData
Modifier and Type | Class and Description |
---|---|
(package private) static class |
TestRecordHelper.MySTAFRequester |
Modifier and Type | Field and Description |
---|---|
protected STAFRequester |
requester |
POSSIBLE_SEPARATOR
Constructor and Description |
---|
TestRecordHelper()
Purpose: no-arg constructor to make this fully qualified javabean |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCompGuiId()
Note: Before calling this method, make sure the property windowName, compName , mapName and stafHelper are correctly set. |
java.lang.String |
getCompInstancePath()
A method to return a default class package prefix used by some processors.
|
static ConfigureInterface |
getConfig()
accessor method
|
DDGUIUtilities |
getDDGUtils() |
protected STAFHelper |
getStaf() |
STAFHelper |
getSTAFHelper() |
java.lang.String |
getWindowGuiId()
Note: Before calling this method, make sure the property windowName, compName , mapName and stafHelper are correctly set. |
boolean |
isMixedRsUsed()
Purpose: To test if the RS is specify in mixed mode. |
void |
populateDataFromVar()
Purpose: populate data from the VAR pool using STAF, basically grabs the following fields in a TestRecordData instance from the VAR of STAF: - inputRecord - filename - lineNumber - separator - testLevel - appMapName - fac - statusCode - statusInfo Side Effects: State Read: Assumptions: none |
void |
sendbackResponse()
Purpose: sendback response, the statusCode is sent back in the VAR: getInstanceName() + "statuscode" Assumptions: none |
static void |
setConfig(ConfigureInterface c)
accessor method
|
void |
setDDGUtils(DDGUIUtilities ddgutils) |
void |
setSTAFHelper(STAFHelper helper) |
boolean |
targetIsComponent() |
boolean |
targetIsWindow() |
copyData, getAltCompType, getAppMapName, getCommand, getCompClass, getCompModule, getCompName, getCompType, getEnvironment, getFac, getFileID, getFilename, getInputRecord, getInputRecordToken, getInstanceName, getLineNumber, getNotSeparatorString, getRecordType, getSeparator, getStatusCode, getStatusInfo, getTestLevel, getTrimmedUnquotedInputRecordToken, getWinCompName, getWindowName, inputRecordSize, reinit, setAltCompType, setAppMapName, setCommand, setCompClass, setCompGuiId, setCompModule, setCompName, setCompType, setEnvironment, setFac, setFileID, setFilename, setInputRecord, setInstanceName, setLineNumber, setRecordType, setSeparator, setShutdownData, setStatusCode, setStatusInfo, setTestLevel, setWindowGuiId, setWindowName, toString
protected STAFRequester requester
public TestRecordHelper()
public STAFHelper getSTAFHelper()
protected STAFHelper getStaf()
public void setSTAFHelper(STAFHelper helper)
public DDGUIUtilities getDDGUtils()
public void setDDGUtils(DDGUIUtilities ddgutils)
public static void setConfig(ConfigureInterface c)
public static ConfigureInterface getConfig()
public void populateDataFromVar() throws SAFSException
SAFSException
- STAFHelper.getVariable() will throw itpublic void sendbackResponse() throws SAFSException
SAFSException,
- if STAF has a problemSAFSException
public java.lang.String getCompInstancePath()
For example, RTestRecordData used by Rational RobotJ returns "org.safs.rational." This enables default processors to location the following processors:
org.safs.rational.DCDriverCommand
org.safs.rational.custom.DCDriverCommand
org.safs.rational.CF[componentType] classes
org.safs.rational.CFComponent
org.safs.rational.custom.CF[componentType]
This requires that the subclassing implementations stick to this strict class naming convention.
The org.safs.Processor class now allows users to specify any package and or classname for use in dynamically locating classes at runtime. This means that subclasses like DriverCommandProcessor and TestStepProcessor can be given alternative package or class names to search for.
This method is no longer required, though it will be queried first to maintain compatibility with processors using this feature.
public java.lang.String getWindowGuiId() throws SAFSException
getWindowGuiId
in class TestRecordData
SAFSException
public java.lang.String getCompGuiId() throws SAFSException
getCompGuiId
in class TestRecordData
SAFSException
public boolean isMixedRsUsed() throws SAFSException
SAFSException
public boolean targetIsWindow() throws SAFSException
SAFSException
- if the window's name is null.public boolean targetIsComponent() throws SAFSException
SAFSException
- if the window's name is null.Copyright © SAS Institute. All Rights Reserved.