public class AbbotJavaHook extends JavaHook
The STAF name predefined for this Abbot Engine is "SAFS/Abbot".
As of this writing, this hook uses standard org.safs.LogUtilities. The TestStepProcessor is a new "standard" org.safs.JVMAgentTestStepProcessor.
The SAFS/Abbot engine does require Abbot-specific implementations of
Assuming everything is properly CLASSPATHed the Engine can be launched simply with:
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ABBOT_COMMANDS
Our predefined STAF process name: "SAFS/Abbot"
|
_showMonitor, data, DEBUG_MESSAGE, errorText, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_ERROR, GENERIC_MESSAGE, helper, log, PASSED_MESSAGE, PAUSE_EXECUTION, PAUSE_SWITCH_OFF, PAUSE_SWITCH_ON, process_name, processor, REQUEST_PROCEED_TESTING, REQUEST_USER_STOPPED_SCRIPT_REQUEST, RUNNING_EXECUTION, semaphore_name, SHOW_MONITOR, SHUTDOWN_RECORD, STAF_ERROR, STEP_EXECUTION, STEP_RETRY_EXECUTION, STEPPING_EXECUTION, STEPPING_RETRY_EXECUTION, trd_name, utils, WARNING_MESSAGE, WARNING_OK_MESSAGE
Constructor and Description |
---|
AbbotJavaHook()
No-arg constructor for AbbotJavaHook
Simply calls the super()
|
AbbotJavaHook(java.lang.String process_name)
Constructor for AbbotJavaHook
Simply calls super(process_name)
|
AbbotJavaHook(java.lang.String process_name,
LogUtilities logs)
Constructor for AbbotJavaHook
Simply calls super(process_name, logs)
|
AbbotJavaHook(java.lang.String process_name,
java.lang.String trd_name)
Constructor for AbbotJavaHook
Simply calls super(process_name, trd_name)
|
AbbotJavaHook(java.lang.String process_name,
java.lang.String trd_name,
LogUtilities logs)
Constructor for AbbotJavaHook
Simply calls super(process_name, trd_name, logs)
|
AbbotJavaHook(java.lang.String process_name,
java.lang.String trd_name,
LogUtilities logs,
TestRecordHelper trd_data,
DDGUIUtilities gui_utils,
ProcessRequest aprocessor)
Advanced Constructor for AbbotJavaHook.
|
Modifier and Type | Method and Description |
---|---|
DDGUIUtilities |
getGUIUtilities()
Use this method to retrieve/create the current/default DDGUIUtilities instance.
|
LogUtilities |
getLogUtilities()
Use this method to retrieve/create the current/default LogUtilities instance.
|
ProcessRequest |
getRequestProcessor()
Use this method to retrieve/create the current/default ProcessRequest instance.
|
TestRecordHelper |
getTRDData()
Use this method to retrieve/create the current/default TestRecordHelper instance.
|
static void |
main(java.lang.String[] args)
Launches a default instance of the SAFS/Abbot engine.
|
allowSystemExit, driverShutdownRequest, evaluateRuntimeException, getHelper, getProcessName, getSemaphoreName, getTRDName, hook_shutdown, initConfigPaths, setGUIUtilities, setHelper, setLogUtilities, setProcessName, setRequestProcessor, setSemaphoreName, setTRDData, setTRDName, start
public static final java.lang.String ABBOT_COMMANDS
public AbbotJavaHook()
public AbbotJavaHook(java.lang.String process_name)
process_name
- the ID to use when registering with STAF.
Normally this would be our predefined name "SAFS/Abbot".public AbbotJavaHook(java.lang.String process_name, LogUtilities logs)
process_name
- the ID to use when registering with STAF.
Normally this would be our predefined name "SAFS/Abbot".logs
- the LogUtilities to be used by the Engine. Currently we can
use the default org.safs.LogUtilitiesorg.safs.LogUtilites
public AbbotJavaHook(java.lang.String process_name, java.lang.String trd_name)
process_name
- the ID to use when registering with STAF.
Normally this would be our predefined name "SAFS/Abbot".trd_name
- -- The root name for specific TestRecordData to reference
in STAF. This should typically be STAFHelper.SAFS_HOOK_TRD which is used
by default.STAFHelper.SAFS_HOOK_TRD
public AbbotJavaHook(java.lang.String process_name, java.lang.String trd_name, LogUtilities logs)
process_name
- the ID to use when registering with STAF.
Normally this would be our predefined name "SAFS/Abbot".trd_name
- -- The root name for specific TestRecordData to reference
in STAF. This should typically be STAFHelper.SAFS_HOOK_TRD which is used
by default.logs
- the LogUtilities to be used by the Engine. Currently we can
use the default org.safs.LogUtilitiesSTAFHelper.SAFS_HOOK_TRD
,
org.safs.LogUtilites
public AbbotJavaHook(java.lang.String process_name, java.lang.String trd_name, LogUtilities logs, TestRecordHelper trd_data, DDGUIUtilities gui_utils, ProcessRequest aprocessor)
process_name
- the ID to use when registering with STAF.
Normally this would be our predefined name "SAFS/Abbot".trd_name
- -- The root name for specific TestRecordData to reference
in STAF. This should typically be STAFHelper.SAFS_HOOK_TRD which is used
by default.logs
- the LogUtilities to be used by the Engine. Currently we can
use the default org.safs.LogUtilitiestrd_data
- -- ATestRecordHelper to hold TestRecordData.
The Abbot engine expects an instance of ATestRecordHelper.gui_utils
- -- AbbotGuiUtilities the hook will use for handling components.
The Abbot engine expects an instance of AbbotGuiUtilities.aprocessor
- -- ProcessRequest object the hook will use for routing records.
The Abbot engine uses the standard ProcessRequest class and a standard TestStepProcessor.STAFHelper.SAFS_HOOK_TRD
,
org.safs.LogUtilites
,
ATestRecordHelper
,
AbbotGUIUtilities
,
ProcessRequest
,
TestStepProcessor
public TestRecordHelper getTRDData()
Note that there is a known circular execution between getTRDData and getGUIUtilities if neither was previously set. Each routine calls the other which may result in a second call to the other. This has not been a problem.
getTRDData
in class JavaHook
ATestRecordHelper
,
JavaHook.getHelper()
,
getGUIUtilities()
,
JavaHook.getTRDData()
public DDGUIUtilities getGUIUtilities()
The AbbotGUIUtilities talk with our embedded proxies over a SAFS RMI bridge. The local RMI server (AServerImpl) is instanced if not already set.
Note that there is a known circular execution between getTRDData and getGUIUtilities if neither was previously set. Each routine calls the other which may result in a second call to the other. This has not been a problem.
getGUIUtilities
in class JavaHook
JavaHook.getGUIUtilities()
,
JavaHook.getHelper()
,
getTRDData()
,
AbbotGUIUtilities
,
AServerImpl
public LogUtilities getLogUtilities()
getLogUtilities
in class JavaHook
JavaHook.getLogUtilities()
,
org.safs.LogUtilities
public ProcessRequest getRequestProcessor()
getRequestProcessor
in class JavaHook
JavaHook.getRequestProcessor()
,
ProcessRequest
,
ATestRecordHelper
,
getTRDData()
,
getLogUtilities()
,
org.safs.LogUtilities
,
TestStepProcessor
public static void main(java.lang.String[] args)
Assuming everything is properly CLASSPATHed, the default SAFS/Abbot Engine can be launched simply with: