public class SAFSSELENIUM extends GenericEngine
The default SAFSDRIVER Tool-Independent Driver (TID) does not provide for any command-line options to configure the Engine. All configuration information must be provided in config files. By default, these are SAFSTID.INI files.
See SAFS Selenium Hook for config options of Selenium2.0
Also see SAFSDRIVER Configuration File for more information.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENGINE_DESCRIPTION
'The engine using Selenium to test GUI on browser.'
|
(package private) static java.lang.String |
ENGINE_NAME
"SAFS/Selenium" -- The name of this engine as registered with STAF.
|
static java.lang.String |
ENGINE_VERSION
'3.4.0'
|
(package private) static java.lang.String |
HOOK_CLASS
"org.safs.selenium.SeleniumJavaHook" -- The Selenium class for the SAFS hook.
|
(package private) static java.lang.String |
HOOK_CLASS2 |
(package private) static java.lang.String |
XBOOTCLASSPATH_OPTION |
console, description, process, productName, testRecordData, testrecordStackable, version
config, customStr, customText, debugStr, debugText, driver, DRIVER_TEMP_PROCESS, failedStr, failedText, genericStr, genericText, launchCount, log, machine, otherStr, otherText, passedStr, passedText, processName, running, SAFS_RESBUN_NAME, servicename, shutdownCount, staf, STAFPROC_EXE, warningStr, warningText, weStartedService, weStartedSTAF
COMMAND_SHUTDOWN_HOOK
Constructor and Description |
---|
SAFSSELENIUM()
Constructor for SAFSSELENIUM.
|
SAFSSELENIUM(DriverInterface driver)
PREFERRED Constructor for SAFSSELENIUM.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isToolRunning()
Verifies a STAF tool matching our engine name is running.
|
void |
launchInterface(java.lang.Object configInfo)
Extracts configuration information and launches SELENIUM in a new process.
|
long |
processRecord(TestRecordHelper testRecordData)
Override superclass to catch unsuccessful initialization scenarios.
|
deduceBenchFile, deduceProjectFile, deduceTestFile, getAppMapItem, getDescription, getEngineName, getProductName, getVariable, getVersion, logMessage, makeQuotedPath, makeQuotedString, popTestRecord, postShutdownServiceDelay, pushTestRecord, reset, resetShutdownSemaphore, saveTestRecordScreenToTestDirectory, setDescription, setProductName, setTRDStatus, setVariable, setVersion, shutdownService, waitHookShutdownAndReset
configureJSTAFServiceEmbeddedJVMOption, extendedGenericMessage, finalize, getCoreInterface, getEmbedded64JVMBinPath, getEmbeddedJVMBinPath, getSTAFHelper, logMessage, setLogUtilities, setLogUtilities, shutdown, simpleGenericMessage, simpleGenericSuccessMessage, simpleGenericWarningMessage, simpleSuccessMessage, simpleSuccessMessage, simpleSuccessUsingMessage, standardErrorMessage, waitForServiceStartCompletion
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCoreInterface, shutdown
static final java.lang.String ENGINE_NAME
public static final java.lang.String ENGINE_VERSION
public static final java.lang.String ENGINE_DESCRIPTION
static final java.lang.String XBOOTCLASSPATH_OPTION
static final java.lang.String HOOK_CLASS
static final java.lang.String HOOK_CLASS2
public SAFSSELENIUM()
public SAFSSELENIUM(DriverInterface driver)
public void launchInterface(java.lang.Object configInfo)
launchInterface
in interface ConfigurableToolsInterface
launchInterface
in class GenericEngine
configInfo
- can be whatever the final implementation needs it to be. This
might be a String with configuration information, the name of a class, or an instance
of some object used to provide configuration assets.GenericEngine.launchInterface(Object)
public long processRecord(TestRecordHelper testRecordData)
processRecord
in interface EngineInterface
processRecord
in class GenericEngine
EngineInterface#processRecord()
public boolean isToolRunning()
GenericEngine
isToolRunning
in interface GenericToolsInterface
isToolRunning
in class GenericEngine
GenericToolsInterface.isToolRunning()
Copyright © SAS Institute. All Rights Reserved.