Invoking actionsInvoking actions is an option for inserting and executing actions without interaction within the graphical user interface. Actions are directly executed on the basis of the ‘Invoke action’ commands.
In this chapter
Simple button clickWithin this section, we show you how to replace a mouse click on a button by a corresponding ‘Invoke action’ type. See action #1 in the below-displayed image referring to the click on the Add entry button of the application under test (AUT).
Mouse click action on Add entry button
Open the Add new action menu and click Invoke action
An empty Invoke action is inserted into the action table
Inserting an invoke action
Link the repository item of the ‘Add entry’ button to the currently invoked action by dragging the repository item to the ‘Invoke action’
Linking repository item to invoke action
Finally, specify the action type ‘PerformClick()’ and disable the previous regular mouse click action
Specifying invoke action type
- The click on the ‘Add entry’ button is executed without visual mouse movement and click
List item selectionThe regular automated selection of list items can be difficult, or impossible in case of their invisibility on the screen. Here, the application of ‘Invoke actions’ improves the stability and robustness of the automated tests.
List item selection
Mouse click representing the opening of the drop-down list for department selection
Selection of Project Management department
Invoke action for list item selection
Insert two empty invoke actions to the action list
Link the corresponding repository items to the new invoke actions
Specify the correct action types for the invoke actions
- The list item selection is executed without visual mouse movement and click