Adding hardware actions in a test

You can add hardware actions to your test. It consists in creating an action using a physical widget.

Before you begin

You must have created a test from a recording and have the test script open in the test editor. You can add hardware 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.

About this task

This action applies only to tests created from Android apps.

Procedure

  1. In the , open a test script and in the Test Contents area, click in the launch app node where you want the action to be added.
  2. Click the insert button and select Hardware action. Another way is to right-click the selection or click Options and insert in the test editor to select the menu item. The values are different for Web UI apps and Android apps.
  3. In the Test Element Details section, select an item in the list of object’s actions. You can enter a value for the timeout too. The new action is added before the script item you had initially selected in the launch node.
  4. Save the test.

Feedback