org.safs.rational
Class RTestRecordData

java.lang.Object
  extended by org.safs.TestRecordData
      extended by org.safs.TestRecordHelper
          extended by org.safs.rational.RTestRecordData
All Implemented Interfaces:
java.io.Serializable

public class RTestRecordData
extends TestRecordHelper


Purpose:RTestRecordData: extends TestRecordData, which holds key data used by a driver, like step driver. Based on the SAFS Test Record Data doc.

While the DriverCommands processor object may handle all the different driver commands directly, the ComponentFunctions processor will need to evaluate the "type" of component represented by any retrieved application SpyMappedTestObject then forward this object on to the RobotJ script/object that handles that component type.

Since:
JUN 03, 2003
JUN 03, 2003 (DBauman) Original Release
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.safs.TestRecordHelper
requester
 
Fields inherited from class org.safs.TestRecordData
possibleSeparator
 
Constructor Summary
RTestRecordData()
          
Purpose: no-arg constructor to make this fully qualified javabean
RTestRecordData(STAFHelper helper, Script script)
           
RTestRecordData(STAFHelper helper, Script script, DDGUIUtilities ddgutils)
           
 
Method Summary
 java.lang.String getCompInstancePath()
          A method to return a default class package prefix used by some processors.
 TestObject getCompTestObject()
          
Purpose: accessor method(s) We might have to UNREGISTER these TestObjects!
static ConfigureInterface getConfig()
          accessor method
 Script getScript()
           
 TestObject getWindowTestObject()
          
Purpose: accessor method(s) We might have to UNREGISTER these TestObjects!
 void reinit()
          
Purpose: reinit this object to be reused over again.
 void setCompTestObject(TestObject compTestObject)
           
static void setConfig(ConfigureInterface c)
          accessor method
 void setScript(Script script)
           
 void setWindowTestObject(TestObject windowTestObject)
           
 
Methods inherited from class org.safs.TestRecordHelper
getDDGUtils, getStaf, getSTAFHelper, populateDataFromVar, sendbackResponse, setDDGUtils, setSTAFHelper
 
Methods inherited from class org.safs.TestRecordData
copyData, getAltCompType, getAppMapName, getCommand, getCompClass, getCompGuiId, getCompModule, getCompName, getCompType, getEnvironment, getFac, getFileID, getFilename, getInputRecord, getInputRecordToken, getInstanceName, getLineNumber, getNotSeparatorString, getRecordType, getSeparator, getStatusCode, getStatusInfo, getTestLevel, getTrimmedUnquotedInputRecordToken, getWindowGuiId, getWindowName, inputRecordSize, setAltCompType, setAppMapName, setCommand, setCompClass, setCompGuiId, setCompModule, setCompName, setCompType, setEnvironment, setFac, setFileID, setFilename, setInputRecord, setInstanceName, setLineNumber, setRecordType, setSeparator, setShutdownData, setStatusCode, setStatusInfo, setTestLevel, setWindowGuiId, setWindowName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RTestRecordData

public RTestRecordData()

Purpose: no-arg constructor to make this fully qualified javabean


RTestRecordData

public RTestRecordData(STAFHelper helper,
                       Script script)

RTestRecordData

public RTestRecordData(STAFHelper helper,
                       Script script,
                       DDGUIUtilities ddgutils)
Method Detail

setConfig

public static void setConfig(ConfigureInterface c)
accessor method


getConfig

public static ConfigureInterface getConfig()
accessor method


getScript

public Script getScript()

setScript

public void setScript(Script script)

getWindowTestObject

public TestObject getWindowTestObject()

Purpose: accessor method(s) We might have to UNREGISTER these TestObjects!


setWindowTestObject

public void setWindowTestObject(TestObject windowTestObject)

getCompTestObject

public TestObject getCompTestObject()

Purpose: accessor method(s) We might have to UNREGISTER these TestObjects!


setCompTestObject

public void setCompTestObject(TestObject compTestObject)

reinit

public void reinit()

Purpose: reinit this object to be reused over again.
Assumptions: fields set to null: compSpyMappedTestObject

Overrides:
reinit in class TestRecordData

getCompInstancePath

public java.lang.String getCompInstancePath()
Description copied from class: TestRecordHelper
A method to return a default class package prefix used by some processors. This allows subclassing engines to create a subclass of TestRecordHelper and provide a single package designation used to dynamically instance tool-specific processors.

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.

Overrides:
getCompInstancePath in class TestRecordHelper