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 Rational Test Workbench , where it is used to generate a test.
Before you begin
To record tests:
- The mobile test client must
be running and be connected to the test workbench. To use the browser-based client, you must type
the Workbench URL in the Safari or Chrome browser on your device,
or in the Safari browser on your iOS Simulator. See iOS testing overview for details
about running the browser-based client and
running the native client for the iOS Simulator.
- Native and hybrid applications under test must be instrumented,
and then pushed to the test workbench and simulator or installed on
a device. For more details, see Instrumenting iOS applications.
- If you are testing Web applications, the IBM Rational Test Workbench Mobile
Web Recorder is required
to record user actions. You can download it from the Apple App Store
on to your mobile device. If you are testing with the iOS Simulator,
you must install the IBM Rational Test Workbench Mobile
Web Recorder manually
because the iOS Simulator does not have access to the Apple App Store.
See Installing the IBM Rational Test Workbench Mobile Web Recorder on the iOS Simulator for details.
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.