Mobile tests are typically created by recording
a session on the mobile device or simulator that runs the app being
tested. At the end of the recording session, you close the app and
the IBM® Rational® Test Workbench Mobile Client uploads
the recorded session to the IBM Rational Test Workbench Mobile Test Edition, where it is used to generate a test.
About this task
This task applies to
testing iOS native applications, hybrid applications or web applications.
With
the
mobile test client for
iOS, GPS hardware actions are supported.
Procedure
To record a session on the mobile device or simulator
from an iOS app:
- In the IBM Rational Test Workbench Mobile Client,
tap Manage applications to record a test for
a native application, or tap Manage web applications to
record a test for a web application.
- Tap the application for which a test must be recorded.
You might have to refresh the list to see the application. Then tap Record.
- When the app starts, you can interact with the device using
the iOS device or simulator. All your actions on the device and responses from the app
are recorded.
- To end the recording, tap Home. The recording is uploaded to the test workbench. Depending on the
size of the recording, the upload might take a few seconds to several
minutes. Recordings are displayed in the test navigator under Mobile
Incoming Recordings with a name and a timestamp.
Note: If
your session involves switching between apps, including multiple apps,
a new recording is uploaded each time you switch apps. This action
produces multiple recording logs in the Mobile
Incoming Recordings folder. You can combine these multiple
recordings to generate a single test.
- In the test workbench Test Navigator,
expand Mobile Incoming Recordings, right-click
a recording, and select Generate Test. Alternatively,
click the link in the message that warns you that there is a new incoming
recording. The New Test from Incoming Recordings window
opens.
- Select a project folder and a name for the new
test. If necessary, you can click to create
a new project folder.
- Optional: If you want to generate
a test with multiple recordings (for example, if your session involves
switching between multiple apps), click Next and
select the recordings that you want to use to generate the test.
- Click Finish and Open
test. The test editor opens in Rational Test Workbench and
displays the generated test.