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 HCL OneTest UI. You can also view the report on the mobile test client.

Before you begin

  • You must first record and generate a test as mentioned in Recording Android tests.
  • To be able to test your application on a mobile device, the mobile device must be running the mobile test client and be connected to HCL OneTest UI.
  • For Android 6 devices that are connected to the computer running HCL OneTest UI with a USB cable, open Device Settings > Developer Options on the device and deselect Verify apps over USB. Otherwise, a conformation dialog opens each time the mobile test client or an application under test (AUT) is installed.

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.

What to do next

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