|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.safs.TestRecordData
org.safs.TestRecordHelper
public class TestRecordHelper
Purpose:TestRecordHelper: helper class which can populate data in
TestRecordData
It can be populated from a STAF Variables pool.
| Field Summary | |
|---|---|
protected STAFRequester |
requester
|
| Fields inherited from class org.safs.TestRecordData |
|---|
possibleSeparator |
| Constructor Summary | |
|---|---|
TestRecordHelper()
Purpose: no-arg constructor to make this fully qualified javabean |
|
| Method Summary | |
|---|---|
java.lang.String |
getCompInstancePath()
A method to return a default class package prefix used by some processors. |
DDGUIUtilities |
getDDGUtils()
|
protected STAFHelper |
getStaf()
|
STAFHelper |
getSTAFHelper()
|
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 |
void |
setDDGUtils(DDGUIUtilities ddgutils)
|
void |
setSTAFHelper(STAFHelper helper)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected STAFRequester requester
| Constructor Detail |
|---|
public TestRecordHelper()
| Method Detail |
|---|
public STAFHelper getSTAFHelper()
protected STAFHelper getStaf()
public void setSTAFHelper(STAFHelper helper)
public DDGUIUtilities getDDGUtils()
public void setDDGUtils(DDGUIUtilities ddgutils)
public void populateDataFromVar()
throws SAFSException
helper, - STAFHelperold, - TestRecordData, if null then a new instance is returned.
SAFSException, - if not ok (since it used the method getVariable)
SAFSException
public void sendbackResponse()
throws SAFSException
helper, - STAFHelperdata, - TestRecordData
SAFSException, - if STAF has a problem
SAFSExceptionpublic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||