Running tests from an Android mobile test client

You can run a test from an Android mobile device or emulator. After the run, the report is automatically uploaded to the test workbench. You can also view the report on the mobile test client.

Before you begin

About this task

This task applies to native, hybrid and web applications recorded on an Android mobile test client that you run on a simulator or mobile device. You can play back tests for web applications on either Android or iOS. In addition, you can record a test on one device, such as a phone, and play back the test on another type of device, such as a tablet, if the application tested has the same behavior on both types of devices.

With the mobile test client for Android, you can also play back GPS locations and hardware actions such as volume up and down, mute, the use of headphones, and all media actions (play, pause, and so on), making calls, and ending calls. Camera and microphone functions are not supported.

Procedure

  1. In the mobile test client, tap Manage Applications for a native application or Manage Web Applications for a web application, and then tap the application under test.

    A list of available tests is displayed.

  2. Tap a test script in the list, and then tap Run Test.

    If your device or emulator is set up with the USB Controller, which enables Android silent mode, the test is played back automatically on the mobile device or emulator. Do not interact with the mobile device until the test is complete.

    Note: You can also run a test in silent mode without the USB Controller. However, in this case, silent mode is not available on devices and emulators with API level 17 and above (Android 4.2 +) due to a known limitation. See Recording tests from the Android mobile test client for more information about silent mode without the USB Controller.

    If your device or emulator is not set up for silent mode, you will be prompted to uninstall the recording-ready app and install the playback-ready app before the test is run.

What to do next

You can now evaluate the test results. See Evaluate results.

Feedback