Adding user actions in a test

You can add user actions in a test script from the test editor for Android or iOS apps.

Before you begin

Create a test from a recording and open the test script in the test editor. You can create user actions in the tests which are created from mobile or Web-based apps if the Web UI actions and elements for hybrid apps is activated, see Activating web UI actions.

Procedure

  1. In the , open the test script; and in the Test Contents area, click an action item where you want to add a user action.
  2. Click the insert button and select Add user action for Android or WebUI, depending on the target application. Another way is to right-click the selection or click Options and insert in the test editor to select the menu item.
  3. In the Test Element Details section select a value for the artifacts identified as required for the action selected. To create a user action, you must specify an object and an action. The content of the Graphic object field is not the same for Android and iOS apps. The choices available in the object’s action list are dependent from the object selected. Other artifacts are optional. The values available in the mandatory fields are different for Web UI apps and Android apps.
  4. A user action is added to the test script just before the node selected.
  5. Save the test.

Feedback