public class DCDriverCommand extends DriverCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BROWSER |
static int |
DEFAULT_BROWSER_TIMEOUT |
static int |
DEFAULT_GET_URL_TIMEOUT |
static java.lang.String |
SUFFIX_VARIABLE_HEADERS |
static java.lang.String |
SUFFIX_VARIABLE_READY_STATE |
static java.lang.String |
SUFFIX_VARIABLE_STATUS |
static java.lang.String |
SUFFIX_VARIABLE_STATUS_TEXT |
static java.lang.String |
SUFFIX_VARIABLE_XML |
protected WebDriverGUIUtilities |
wdgu
A convenient GUIUtilities
|
command, iterator, utils
breakpointsOn, CASE_INSENSITIVE_FLAG, CASEINSENSITIVE_FLAG, clearProxiesAlways, commandLineBreakpoint, customStr, customText, DEBUG_MESSAGE, debugStr, debugText, DEFAULT_CUSTOM_PROCESSOR_PACKAGE, DEFAULT_CUSTOM_PROCESSOR_SUBPACKAGE, DEFAULT_PROCESSOR_PACKAGE, FAILED_MESSAGE, FAILED_OK_MESSAGE, failedStr, failedText, FAILURE_DETAIL, GENERIC_MESSAGE, genericStr, genericText, LINE_FAILURE_4, log, myBreakpointsOn, otherStr, otherText, PARAM_SIZE_1, PARAM_SIZE_2, PARAM_SIZE_3, PARAM_SIZE_4, params, PASSED_MESSAGE, passedStr, passedText, PRE_TXT_SUCCESS_4, PRE_TXT_SUCCESS_5, processorConfigSet, processorMap, recordProcessed, RECTYPE_DRIVER_COMMAND, RECTYPE_DRIVER_COMMAND_F, RECTYPE_DRIVER_COMMAND_W, RECTYPE_TEST_STEP, RECTYPE_TEST_STEP_F, RECTYPE_TEST_STEP_W, RFSMCache, RFSMOnly, RFT_FIND_SEARCH_MODE_ALGORITHM, RFT_FIND_SEARCH_MODE_CACHE, SAFS_CLEARPROXIESALWAYS_ITEM, SAFS_COMMANDLINEBREAKPOINT_ITEM, SAFS_COMMANDLINEBREAKPOINT_VARIABLE, SAFS_PARAMS_FILE, SAFS_RESBUN_NAME, SAFS_SECSWAITFORCOMPONENT_ITEM, SAFS_SECSWAITFORCOMPONENT_VARIABLE, SAFS_SECSWAITFORWINDOW_ITEM, SAFS_SECSWAITFORWINDOW_VARIABLE, SAFS_TESTDOMAINS_ITEM, SAFS_TESTDOMAINS_VARIABLE, secsWaitForComponent, secsWaitForWindow, SENT_MSG_3, testDomains, testRecordData, testrecordStackable, TXT_FAILURE_1, TXT_FAILURE_2, TXT_FAILURE_3, TXT_FAILURE_4, TXT_FAILURE_5, TXT_SUCCESS_1, TXT_SUCCESS_2, TXT_SUCCESS_2a, TXT_SUCCESS_3, TXT_SUCCESS_3a, TXT_SUCCESS_4, TXT_SUCCESS_5, unexpectedAlertBehaviour, WARNING_MESSAGE, WARNING_OK_MESSAGE, warningStr, warningText
Constructor and Description |
---|
DCDriverCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkGUIExistence(boolean expectedExist,
java.lang.String mapNam,
java.lang.String window,
java.lang.String component,
int timeoutInSeconds)
Check the existence of the window/component and return the satisfaction of the existence.
The satisfaction depends on component's existence and our expectation of its existence. Subclass only need to implement this method to get the following keywords work. |
protected void |
commandProcess()
Process the driver command specifically.
|
(package private) static void |
focusWindow(org.openqa.selenium.WebDriver webdriver)
TODO Need to move to class WDLibrary, this doesn't work yet!!!
|
protected void |
init()
Convert the general GUIUtilities to a specific one.
|
TestRecordData |
popTestRecord()
Retrieve the Test-Record from the the Stack after the execution of a keyword.
|
void |
pushTestRecord(TestRecordData trd)
Push the current 'test record' into the Stack before the execution of a keyword.
|
protected void |
sendHttpGetRequest() |
protected void |
switchWindow() |
getStandardFailureDetail, getStandardWarningDetail, interpretFields, issueActionUsingNegativeMessage, issueActionWarning, issueExecutionNegativeMessage, issueFileErrorFailure, issueGenericSuccess, issueGenericSuccess, issueGenericSuccessUsing, issueParameterCountFailure, issueParameterCountFailure, issueParameterValueFailure, issuePassedSuccess, issueUnknownErrorFailure, isSupportedRecordType, localProcess, process
activateBreakpoint, checkBreakpoints, checkMyBreakpoints, deduceBenchFile, deduceDiffFile, deduceProjectFile, deduceTestFile, delay, distributeConfigInformation, getAbsolutFileName, getAlternateParams, getAppMapItem, getChainedProcessor, getClassInstance, getClearProxiesAlways, getCustomProcClassNames, getCustomProcInstancePath, getLogUtilities, getParams, getProcClassNames, getProcInstance, getProcInstancePath, getRequiredField, getSecsWaitForComponent, getSecsWaitForWindow, getStandardErrorMessage, getTestRecordData, getUnexpectedAlertBehaviour, getVariable, hasChainedProcessor, initProcessorAndProcess, instanceProcessorAndProcess, isBreakpointsOn, isComponentFunctionRecord, isDriverCommandRecord, isEngineCommandRecord, isMyBreakpointsOn, isRecordProcessed, isRFSMCache, isRFSMOnly, issueActionFailure, issueActionOnXFailure, issueErrorPerformingAction, issueErrorPerformingActionOnX, issueErrorPerformingActionUsing, issueInputRecordFailure, issueInputRecordFailure, issuePassedSuccess, logFailureMessage, normalizeTestFileName, paramsFailedMsg, paramsFailedMsg, processCustomProcessor, processSubclassProcessor, setAtEndOfProcess, setBreakpointsOn, setChainedProcessor, setClearProxiesAlways, setCommandLineBreakpoint, setCustomProcInstancePath, setLogUtilities, setMyBreakpointsOn, setParams, setProcInstance, setProcInstancePath, setRecordProcessed, setRFSMCache, setRFSMOnly, setSecsWaitForComponent, setSecsWaitForWindow, setTestDomains, setTestRecordData, setUnexpectedAlertBehaviour, setVariable, standardFailureMessage, substituteVariable, validateParamSize, validProcessorClassName
public static final java.lang.String DEFAULT_BROWSER
public static final int DEFAULT_BROWSER_TIMEOUT
public static final int DEFAULT_GET_URL_TIMEOUT
protected WebDriverGUIUtilities wdgu
public static final java.lang.String SUFFIX_VARIABLE_READY_STATE
public static final java.lang.String SUFFIX_VARIABLE_HEADERS
public static final java.lang.String SUFFIX_VARIABLE_STATUS
public static final java.lang.String SUFFIX_VARIABLE_STATUS_TEXT
public static final java.lang.String SUFFIX_VARIABLE_XML
protected void init() throws SAFSException
init
in class DriverCommand
SAFSException
protected void commandProcess()
DriverCommand
commandProcess
in class DriverCommand
protected void switchWindow()
protected void sendHttpGetRequest()
public void pushTestRecord(TestRecordData trd)
Processor
Push the current 'test record' into the Stack before the execution of a keyword. This should be called after the 'test record' is properly set.
pushTestRecord
in interface ITestRecordStackable
pushTestRecord
in class Processor
trd
- TestRecordData, the test record to push into a stackProcessor.popTestRecord()
public TestRecordData popTestRecord()
Processor
After execution of a keyword, pop the test record from Stack and return is as the result. Replace the class field 'Test Record' by that popped from the stack if they are not same.
popTestRecord
in interface ITestRecordStackable
popTestRecord
in class Processor
Processor.pushTestRecord(TestRecordData)
protected boolean checkGUIExistence(boolean expectedExist, java.lang.String mapNam, java.lang.String window, java.lang.String component, int timeoutInSeconds) throws SAFSException
DriverCommand
checkGUIExistence
in class DriverCommand
expectedExist
- boolean, the expected existence of the window/component.mapNam
- String, the map namewindow
- String, the window's namecomponent
- String, the component's nametimeoutInSeconds
- int, the timeout in secondsSAFSException
- is thrown out if there is something wrong.DriverCommand.onGUIGotoCommands(boolean)
static void focusWindow(org.openqa.selenium.WebDriver webdriver) throws SeleniumPlusException
webdriver
- SeleniumPlusException
Copyright © SAS Institute. All Rights Reserved.