public class GroovyBridge extends SeleniumPlus
SeleniumPlus.Assert, SeleniumPlus.CheckBox, SeleniumPlus.ComboBox, SeleniumPlus.Component, SeleniumPlus.Counters, SeleniumPlus.EditBox, SeleniumPlus.Files, SeleniumPlus.ListView, SeleniumPlus.Logging, SeleniumPlus.Menu, SeleniumPlus.Misc, SeleniumPlus.Rest, SeleniumPlus.ScrollBar, SeleniumPlus.Strings, SeleniumPlus.TabControl, SeleniumPlus.Tree, SeleniumPlus.WDTimeOut, SeleniumPlus.Window
SAFSPlus.DriverCommand
PRODUCT_DESCRIPTION, PRODUCT_NAME, PRODUCT_VERSION, Runner, TEMP_SELENIUM_PLUS_RS_VAR
_autorun, _autorunClassProvided, _injectDataAwareness, _isInjected, _isSPC, _junit, allowExit, ARG_AUTORUN, ARG_AUTORUN_CLASS, ARG_JUNIT, ARG_SAFSVAR, DefaultRunner, exitCode, normalizeTextForInput, prevResults, RELATIVE_TO_PARENT, RELATIVE_TO_SCREEN, springApplicationContext
Constructor and Description |
---|
GroovyBridge() |
Modifier and Type | Method and Description |
---|---|
groovy.lang.GroovyObject |
getMap()
Used when a Groovy script has:
|
java.lang.String |
GetVariableValue(ComponentHolder variableName)
Used when a Groovy script has:
|
java.lang.Object |
propertyMissing(java.lang.String name)
Called by Groovy when a getter is not found for a property.
|
void |
runTest()
INTERNAL USE ONLY.
|
void |
setClosure(groovy.lang.Closure<?> myclosure) |
void |
withBrowser(java.lang.Object URL,
java.lang.Object browserID,
groovy.lang.Closure<?> closure)
A script is expected to look something like this:
|
void |
withHighlight(groovy.lang.Closure<?> closure)
A script may start highlighting like this:
|
AbortTest, AltLeftDrag, Click, ClickUnverified, CtrlAltLeftDrag, CtrlClick, CtrlLeftDrag, CtrlRightClick, CtrlShiftLeftDrag, deduceFilterAreas, DoubleClick, executeAsyncScript, ExecuteScript, executeScript, GetGUIImage, GetGUIImage, getObject, getObject, GetVariableValue, Highlight, HoverScreenLocation, LeftDrag, main, Pause, PrintTestCaseSummary, PrintTestSuiteSummary, RightClick, RightDrag, SetVariableValue, ShiftClick, ShiftLeftDrag, StartTestCase, StartTestSuite, StartWebBrowser, StopTestCase, StopWebBrowser, SwitchWebBrowser, TypeChars, TypeEncryption, TypeKeys, VerifyBinaryFileToFile, VerifyFileToFile, VerifyGUIImageToFile, VerifyTextFileToFile, VerifyValueContains, VerifyValueContainsIgnoreCase, VerifyValueDoesNotContain, VerifyValues, VerifyValuesIgnoreCase, VerifyValuesNotEqual, WaitForGUI, WebDriver
_getMappedValue, _getVariable, _processArgs, _resolveDDVariables, _setVariable, action, actionGUILess, autorun, back, combineParams, command, debug, error, forward, getAllowExit, getExitCode, getRunner, iDriver, normalizeTextForInput, quote, quotePath, replaceSeparator, setAllowExit, setExitCode, setLeveledTest, setNormalizeTextForInput, setRunner, testStatusCode
public void setClosure(groovy.lang.Closure<?> myclosure)
public void runTest()
SAFSPlus
Start writing tests in this required method in your subclass. This must be an "instance" method because subclasses cannot Override static superclass methods.
public void withBrowser(java.lang.Object URL, java.lang.Object browserID, groovy.lang.Closure<?> closure)
test {
withBrowser('http://my.site', 'MainPage') {
// perform operations while the browser is open
}
}
A browser is started before the operations are run and will be closed after the operations are completed.
URL
- browserID
- closure
- contains the operations to be performed while the browser is open.public void withHighlight(groovy.lang.Closure<?> closure)
test {
withHighlight {
// perform operations while the highlighting is active
}
}
The highlighting is started before the operations are run and will be stopped after the operations are completed.
closure
- public java.lang.String GetVariableValue(ComponentHolder variableName)
GetVariableValue(map.Variable)
variableName
- public groovy.lang.GroovyObject getMap()
map.Variable
public java.lang.Object propertyMissing(java.lang.String name)
If a script uses logger, component, etc., a GroovyObject that calls into the corresponding SeleniumPlus class is returned (ie. SeleniumPlus.Logger, SeleniumPlus.Component, etc.
name
- the name of the propertyCopyright © SAS Institute. All Rights Reserved.