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
- You must have recorded and generated a test as mentioned in Recording tests from the test workbench.
- Ensure that you give control to the test workbench to run tests by
tapping Enter passive mode. After you tap it,
on the mobile client, a message tells you to press Back to
end this mode or wait until a playback scenario starts. On iPads,
you must select any other page on the left to end the passive mode.
Note: If your test contains datapools, it will be controlled
by the workbench.
About this task
This procedure applies to Android and iOS applications. You
can play back a test of web application on either platform. You can
also run the same test recorded for an Android or iOS IBM Worklight® hybrid
application and run it from the
test workbench on either platform.
Procedure
- 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 .
- 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.
- A wizard displays the list of available devices. Select
the device on which the test will be run.
- 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.
What to do next
You can now evaluate the test results. See
Evaluate
results.