Validator Test Actions

Test Actions are processed sequentially in a synchronous fashion. Test Actions are responsible for driving the state of the application during test playback.

Event Playback

Playback an event capture file recorded with the capture-playback plugin.

Arguments:

  • Filename: The path to the event capture file to play. Can be relative to the project or absolute.

Touch Control

Touch a control. The validator plugin will search the current screen for the specified control. The coordinates of the center of the control are computed and a gre.press, wait the sepecified amount of time and send a gre.release, this will cause a gre.touch event to be sent to the control, provided that the control is still in the original area to receive the press event.

Arguments:

  • Fqn: The fully qualified name of the Storyboard control to touch.

  • Duration: The time in msbetween gre.press and gre.release.

Touch Coordinates

Touch a coordinate on screen. The validator plugin will send a gre.press, wait the specified amount of time and send a gre.release, this will cause a gre.touch event

Arguments:

  • X: The x coordinate to touch.

  • Y: The y coordinate to touch.

  • Duration: The time between gre.press and gre.release.

Wait Event

Wait until the an event with the specified name arrives.

Arguments:

  • Name: The name of the incoming event to wait for.

Wait for Screen

Wait until the gre.screenshow.post on the specified screen.

Arguments:

  • Name: The name of the screen to wait to arrive on.

Wait for time

Wait for the specified number of ms.

Arguments:

  • Duration: Number of ms to wait.

Send Event

Send an event with the specified name to the application.

Arguments:

  • Event: The name of the event to send.

Was this article helpful?
0 out of 0 found this helpful