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_CONFIG
data, 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, start
checkConfiguration, driverShutdownRequest, getHelper, getProcessName, getSemaphoreName, getTRDName, hook_shutdown, setGUIUtilities, setLogUtilities, setRequestProcessor, setSemaphoreName, setTRDData, setTRDName
public EmbeddedSeleniumHookDriver()
public TestRecordHelper getTRDData()
getTRDData
in class EmbeddedHookDriver
JavaHook.getTRDData()
,
DCTestRecordHelper
public LogUtilities getLogUtilities()
EmbeddedHookDriver
getLogUtilities
in class EmbeddedHookDriver
JavaHook.getLogUtilities()
,
org.safs.LogUtilities
public Processor getEngineDriverCommandProcessor()
EmbeddedHookDriver
getEngineDriverCommandProcessor
in class EmbeddedHookDriver
public Processor getEngineTestStepProcessor()
EmbeddedHookDriver
getEngineTestStepProcessor
in class EmbeddedHookDriver
public DDGUIUtilities getGUIUtilities()
EmbeddedHookDriver
A 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 EmbeddedHookDriver
JavaHook.getHelper()
,
EmbeddedHookDriver.getTRDData()
,
DCGUIUtilities
protected void instantiateHookConfig()
JavaHook
JavaHook.initConfigPaths()
. instantiateHookConfig
in class JavaHook
JavaHook.initConfigPaths()
public boolean shutdown()
EmbeddedHookDriver
This default implementation unregisters our STAFProcessHelper if it is not null. Subclasses may wish to provide additional functionality before calling super.shutdown().
shutdown
in class EmbeddedHookDriver
Copyright © SAS Institute. All Rights Reserved.