public class ControlStep extends Control implements java.util.Observer
a controller for teststeps: if the arg is testscript, then it loads the file specifed and treats each line as a test script. If no args are specified, the it uses Class.forName to load the org.safs.control.swing.ControlStepUI class which is the Observable to our Observer. Our 'update' method gets the commands from that GUI and executes them
Control.HookTestRecordData
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
instanceName
the instance name of the GUI,
default value is "org.safs.control.swing.ControlStepUI"
|
static java.lang.String |
METHOD_ADDOBSERVER |
static java.lang.String |
METHOD_SETAPPMAPITEM |
static java.lang.String |
METHOD_SETDELIM |
static java.lang.String |
METHOD_SETINPUTRECORD
method names of the GUI class
|
static java.lang.String |
METHOD_SETSTATUSCODE |
static java.lang.String |
METHOD_SETTESTLOGMSG |
static java.lang.String |
METHOD_START |
appMapName, data, debug, delim, driver, fac, filename, firstFoundMsg, firstMapMsg, helper, nodebug, ROBOTJ_PROCESS_NAME, SAFS_SHARED_TRD_PREFIX, SAFS_TESTLOG_MSG, testLevel, timeout
Constructor and Description |
---|
ControlStep() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
instanceGui(java.lang.String instanceName)
Tries to instance a Gui
|
protected void |
invokeSetInputRecord(java.lang.String request) |
static void |
main(java.lang.String[] args)
Purpose: main method |
protected void |
showStatus()
show status to the gui
|
void |
update(java.util.Observable obs,
java.lang.Object arg)
Purpose: this class is called when a GUI sends us data |
callSAFSJHook, fireJRequest, getSAFSTestRecordData, initHelper, prepTestRecordData, setSAFSTestRecordData, testJHook
public static java.lang.String instanceName
public static final java.lang.String METHOD_SETINPUTRECORD
public static final java.lang.String METHOD_ADDOBSERVER
public static final java.lang.String METHOD_START
public static final java.lang.String METHOD_SETAPPMAPITEM
public static final java.lang.String METHOD_SETSTATUSCODE
public static final java.lang.String METHOD_SETTESTLOGMSG
public static final java.lang.String METHOD_SETDELIM
public static void main(java.lang.String[] args)
args,
- String[],
public java.lang.Object instanceGui(java.lang.String instanceName)
instanceName,
- Stringpublic void update(java.util.Observable obs, java.lang.Object arg)
update
in interface java.util.Observer
obs,
- Observablearg,
- Objectprotected void invokeSetInputRecord(java.lang.String request)
invokeSetInputRecord
in class Control
protected void showStatus()
showStatus
in class Control
Copyright © SAS Institute. All Rights Reserved.