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 Rational® Test Workbench Mobile 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 the Android or iOS platform.
CAUTION:
You can record a test on a device such as a phone and play back the test on another type of device (for example, on a tablet) only if the application tested has the same behavior on both types of devices.

With the mobile test client for Android, you can play back GPS locations and hardware actions such as the use of 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 Managed Applications for a native application or Managed web applications for a web application, and then tap the application under test.
  2. To view the list of tests available for the app, tap Test.
  3. Tap the test script, and then tap Run Test. If your device or emulator does not have silent mode, the recording-ready app is uninstalled and replaced with a playback-ready app. During this process, tap the Uninstall, OK, and Install buttons accordingly. If your device or emulator has silent mode, this process happens in the background. Silent mode is not available on devices and emulators with API level 17 and above (Android 4.2 +) due to a known limitation.

    You can simplify this process of installing and uninstalling versions of the Android app by choosing Playback on instrumented from the Settings page on your Android device or emulator. This lets you play back a test using the more heavily instrumented recording version of the app, rather than the lighter weight playback version of the app. This is at the expense, however, of slower playback speed and greater memory consumption.

    The test is played back in the mobile device. Do not interact with the mobile device until the test is complete.

What to do next

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

Feedback