public class EmbeddedSeleniumHookDriver extends EmbeddedHookDriver
This is primarily a proof-of-concept at this time. Users would use a subclass of this class for runtime execution inside the Selenium engine.
The class has the same config requirements as JSAFSDriver. However, the new implementations of the EmbeddedHookDriver will attempt to use default values (test.ini) if
EmbeddedHookDriver,
JSAFSDriver| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
enableLogs |
HOOK_DRIVER_NAME, SAFS_PROJECT_CONFIG, TEST_INI_DEFAULT, TESTDESIGNER_PROJECT_CONFIGdata, DEBUG_MESSAGE, errorText, FAILED_MESSAGE, FAILED_OK_MESSAGE, GENERIC_ERROR, GENERIC_MESSAGE, helper, hookconfig, 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, 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 |
|---|
EmbeddedSeleniumHookDriver()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Processor |
getEngineDriverCommandProcessor()
Subclasses should instantiate an engine-specific DriverCommands Processor here.
|
Processor |
getEngineTestStepProcessor()
Subclasses should instantiate an engine-specific TestStepProcessor Processor here, if any.
|
DDGUIUtilities |
getGUIUtilities()
Subclasses should override this method to retrieve/create the DDGUIUtilities instance
needed by the specific engine subclass.
|
LogUtilities |
getLogUtilities()
Use this method to retrieve/create the current/default LogUtilities instance.
|
TestRecordHelper |
getTRDData()
Instantiates a default DCTestRecordHelper for this engine.
|
protected void |
instantiateHookConfig()
Instantiate the HookConfig, used to get settings from ConfigureInterface.
|
boolean |
shutdown()
Perform final engine hook shutdown activities AND shutdown the internal
JSAFSDriver.
|
allowSystemExit, config, evaluateRuntimeException, getEngineEngineCommandProcessor, getRequestProcessor, initConfigPaths, initialize, jsafs, run, setHelper, setProcessName, startcheckConfiguration, driverShutdownRequest, getHelper, getProcessName, getSemaphoreName, getTRDName, hook_shutdown, setGUIUtilities, setLogUtilities, setRequestProcessor, setSemaphoreName, setTRDData, setTRDNamepublic EmbeddedSeleniumHookDriver()
public TestRecordHelper getTRDData()
getTRDData in class EmbeddedHookDriverJavaHook.getTRDData(),
DCTestRecordHelperpublic LogUtilities getLogUtilities()
EmbeddedHookDrivergetLogUtilities in class EmbeddedHookDriverJavaHook.getLogUtilities(),
org.safs.LogUtilitiespublic Processor getEngineDriverCommandProcessor()
EmbeddedHookDrivergetEngineDriverCommandProcessor in class EmbeddedHookDriverpublic Processor getEngineTestStepProcessor()
EmbeddedHookDrivergetEngineTestStepProcessor in class EmbeddedHookDriverpublic DDGUIUtilities getGUIUtilities()
EmbeddedHookDriverA newly instantiated DDGUIUtilities should have critical helpers set:
Note that the call to getTRDData() may force the instantiation of the default TestRecordHelper if one has not already been set.
getGUIUtilities in class EmbeddedHookDriverJavaHook.getHelper(),
EmbeddedHookDriver.getTRDData(),
DCGUIUtilitiesprotected void instantiateHookConfig()
JavaHookJavaHook.initConfigPaths(). instantiateHookConfig in class JavaHookJavaHook.initConfigPaths()public boolean shutdown()
EmbeddedHookDriverThis default implementation unregisters our STAFProcessHelper if it is not null. Subclasses may wish to provide additional functionality before calling super.shutdown().
shutdown in class EmbeddedHookDriverCopyright © SAS Institute. All Rights Reserved.