Dana steps
List of predefined steps
Explanations
You can see in this page, the predefined steps list.
You must define the parameters inside the "..."
& ...
elements.
Examples of expected parameters for a step:
[String: screen name]
A “screen name” (first and only parameter, as aString
) is expected for the step.[String: view name, Number: item index]
A view name (first parameter, as aString
) and an item index (second parameter, as aNumber
) are expected for the step.
Given steps
i start on "..." screen | [String: screen name]
Start the scenario at a screen (corresponding to a given screen name).
"..." data has ... elements | [String: data name, Number: number of elements]
Set a content data (corresponding to a given data name) a given number of elements. Must be done before the screen is started.
Then & And steps
"..." is focused | [String: view name]
Check that a view (corresponding to a given view name) is focused.
"..." item ... is focused | [String: list view name, Number: item index]
Check that for a list view (corresponding to a given list view name), an item at a given index is focused.
"..." screen is displayed | [String: screen name]
Check that a screen (corresponding to a given screen name) is displayed.
"..." is shown | [String: view name]
Check that a view (corresponding to a given view name) is shown on the screen (must be visible and inside the limits of the screen).
"..." is hidden | [String: view name]
Check that a view (corresponding to a given view name) is hidden (must be either invisible or outside the limits of the screen).
"..." value is equal to "..." | [String: data name, String: data name]
Check that the value of a data (corresponding to a given data name) is equal to the value of another data (corresponding to another given data name).
"..." value is not equal to "..." | [String: data name, String: data name]
Check that the value of a given data is not equal to the value of another data (corresponding to another given data name).
"..." value is greater than "..." | [String: data name, String: data name]
Check that the value of a data (corresponding to a given data name) is greater than the value of another data (corresponding to another given data name).
"..." value is less than "..." | [String: data name, String: data name]
Check that the value of a data (corresponding to a given data name) is less than the value of another data (corresponding to another given data name).
"..." value is greater or equal to "..." | [String: data name, String: data name]
Check that the value of a data (corresponding to a given data name) is greater or equal to the value of another data (corresponding to another given data name).
"..." value is less or equal to "..." | [String: data name, String: data name]
Check that the value of a data (corresponding to a given data name) is less or equal to the value of another data (corresponding to another given data name).
store "..." value | [String: data name]
Store the data (corresponding to a given data name) inside a variable, in order to use it later in the scenario.
store value "..." as "..." | [String: data, String: data name]
Store the given data as a given data name inside a variable, in order to use it later in the scenario.
listen to "..." event | [String: event name]
Listen to an event (corresponding to a given event name) that may be triggered later.
"..." event is triggered | [String: event name]
Check that a listened event (corresponding to a given event name, see @listen to “…” event) is triggered.
set "..." value to "..." | [String: data name, String: data]
Set a given data name (with a service call) a given data value (as a string value).
set "..." value to ... | [String: data name, Number: data]
Set a given data name (with a service call) a given data value (as a number value, e.g: set the volume of the UI to 60).
When steps
i press "..." -screen change- | [String: key name]
Press a key (corresponding to a given key name) where the screen will be changed.
i press "..." | [String: key name]
Press a key (corresponding to a given key name) where the screen will stay the same.
i press "..." ... times | [String: key name, Number: number of presses]
Press a key (corresponding to a given key name) a given number of presses times.
Available keys (press)
Here is the list of all available keys, used for keyPress actions.
- LEFT
- RIGHT
- UP
- DOWN
- PLAY
- PAUSE
- PLAY_PAUSE
- FORWARD
- REWIND
- NUM_0
- NUM_1
- NUM_2
- NUM_3
- NUM_4
- NUM_5
- NUM_6
- NUM_7
- NUM_8
- NUM_9
- MUTE
- VOL_UP
- VOL_DOWN
- PROG_UP
- PROG_DOWN
- BACK
- OK
- HOME
- MENU