Members
-
Private
-
Type Definitions
-
ClickActionTestStepOptions
-
Type:
Properties:
Name Type Argument Default Description expectNav
boolean <optional>
false Expect the click action to trigger a page navigation. If true, Hobbes.js will wait until a page navigation occurs. If no navigation occurs after 30s. (fixed timeout) the action will be marked FAILED.
-
HobbesDOMElement
-
A representation of a DOM element to interact with
It can be:
- a string evaluated as a jQuery string selector (it can then be evaluated using hobs.find)
- a DOM element (ex. hobs.context().document.getElementById('my-div-id'), hobs.find('.my-div').get(0))
- a jQuery object (hobs.find('.my-div'))
- a function that returns one of the 3 above type (ex. function() { return hobs.find('.my-div'); })
REMARK: Hobbes.js always refer to a test context, see hobs.context
Type:
- *
-
OpenWindowTestStepOptions
-
Type:
Properties:
Name Type Argument Description success
function <optional>
Function executed once the new window has been loaded. First (and only) argument passed to the function is the reference to newly opened window
-
TestActionOptions
-
Type:
Properties:
Name Type Argument Default Description timeout
int <optional>
hobs.config.action_timeout Maximum execution time of the test action (in ms.). If timeout is reach, the test action is marked
failed
-
TestStepOptions
-
Type:
- object
- a Number (representing a wait delay in ms.)
- a function to execute
- a test element (hobs.TestCase)
- an array containing these 3 types.
- a Number (representing a wait delay in ms.)
- a function to execute
- a test element (hobs.TestCase)
- an array containing these 3 types.
Properties:
Name Type Argument Description before
* <optional>
Element(s) to execute before the teststep. It can be :
after
* <optional>
Element(s) to execute after the teststep. It can be :
delay
int <optional>
Delay (in ms.) applied before TestCase execution
delayBefore
int <optional>
Delay (in ms.) applied before TestCase execution
delayAfter
int <optional>
Delay (in ms.) applied after TestCase execution
execBefore
hobs.TestCase <optional>
Test case executed before TestCase execution
execAfter
hobs.TestCase <optional>
Test case executed after TestCase execution
params
object <optional>
Defines/Overrides values of dynamic parameters (see hobs.param) that will be passed to the TestCase
-
TestSuiteOptions
-
Type:
Properties:
Name Type Argument Default Description path
string <optional>
Relative path to the javascript file defining the TestSuite on the web server
execInNewWindow
boolean <optional>
false If set to true, the testsuite will be executed in a newly created window (and not in the default test context)
register
boolean <optional>
true Control registration of the TestSuite on hobs. By default, only registered TestSuites will be added to the testrunner UI.