Running tests from the test workbench

After generating the test from a recording, you can edit a test according to your requirements and play it back from the workbench on your mobile device/simulator. This means that the playback is controlled from the workbench and not from the simulator or mobile device. The result of the tests can be viewed from both the test workbench and the mobile test client.

Before you begin

Note: If your test contains datapools, it will be controlled by the workbench.

About this task

If you have not installed the mobile test client through the silent mode and recorded a native or hybrid app from the mobile test client, you must run the test from the mobile test client before running it from test workbench.

Tests created for native or hybrid applications must be run on the Android mobile test client if recorded on Android platform, and on the iOS mobile test client if recorded on iOS platform. But there is no such restriction for tests of web applications and of IBM Worklight® hybrid applications, as they can be recorded and run on either platform.

Resource monitoring starts immediately after the test run is initiated. Resource data is collected at the frequency specified in the polling interval. At every interval the collected data is averaged for resources and sent back to workbench to be plotted in the report. Resource monitoring is terminated when the test run finishes.

Procedure

  1. From the test workbench, you can initiate the running of a mobile test by using any of the following steps in the Test Workbench perspective:
    • In the Test Navigator view, right-click a test and click Run As > Test.
    • From the Test Navigator view, open the test and, in the test editor, click the Run button.
    • Add the mobile test to the Compound Test editor.
  2. A wizard displays the list of available devices. Select the device on which the test will be run.
  3. Optional: To measure the usage of resources such as processor, physical memory, network traffic in and out, and battery of the mobile device and the application under test, select the Resource Monitoring check box. Use the Polling Interval field to specify the periodic intervals in which the resources should be monitored during a run. For example, if you specify 5000 milliseconds, the resource monitoring process starts when the test is executed and collects data every 5000 milliseconds of the test run. The process stops when the test run is completed.
    Note: To view known limitations for resource monitoring, see release notes.
  4. The first time you run a test, you will be prompted to run the test from the Test Execution perspective. Select the Remember my decision check box to avoid receiving the message again and click Yes. The test is played back in the mobile device.
    Note:

    Do not interact with the mobile device till the test is complete.

    If you need to stop the test run, click the Stop test button in the toolbar of the test workbench.

Results

After the run, both Statistical (Performance) and Mobile (Live) reports are displayed.

What to do next

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

Feedback