Recording mobile tests

You can record a mobile test to capture the actions that you perform on Android applications. The actions are captured as test steps.

Before you begin

You must have set the Android SDK path in Preferences and point to the directory where the Android SDK is installed.

About this task

Generally, when you record actions on the Android application, a control on the application is identified by using one of the control properties which is a unique identifier for that control. The following controls on the application can be identified by using the Label property also:
  • Input field
  • Drop-down list

For example, if there are 3 input fields on the application screen, then these input fields are identified by using the Label property which is unique to these input fields.

Procedure

  1. Go to the UI Test perspective in Rational® Functional Tester.
  2. Click the New Test from Recording icon in the toolbar and select Mobile Test.

    The New Mobile Test From Recording dialog box is displayed.

  3. Select a directory to save the test.
  4. Enter the name of the test in the Test name field, and click Next.
    The Select mobile applicationpage displays the list of all Android applications that you configured in the Application Configuration page.
  5. Select the required Android application.
  6. Select the mobile device from the Select mobile device list and click Next.
  7. Click Finish.
    The application is displayed in a virtual client of the selected mobile device in the browser window, and the recording is started.

    You can perform the actions on the selected mobile application by using the virtual client of the actual device or emulator. The actions are imitated on the actual mobile device and are captured as test steps in the test. The test steps are also displayed on the Test Steps pane of the virtual client window.

    The following table lists the options of the actions that you can perform in the virtual client of the mobile device or emulator:
    Option Action when clicked
    Stop recording stop mobile recording Stops the recording and generates the mobile test recording
    Screen lock Performs screen lock action Performs the lock screen action on the mobile device or emulator
    Refresh refreshes the virtual client Refreshes the virtual client if the actions that you perform on the virtual client is not synchronized with the mobile device
    Volume up increase volume level Increases the volume on the mobile device or emulator
    Volume down Reduces the volume in the device or emulator Decreases the volume on the mobile device or emulator
    Mute Mutes the device or emulator Mutes the mobile device or emulator
    Send SMS Peforms the send SMS action Sends an SMS to the phone number that you specify in the Send SMS dialog box
    Make call Performs the call action Calls to the phone number that you specify in the Make a call dialog box
    Overview toggle between active application Displays the previously opened applications
    Home Navigates to the home screen Navigates to the home screen
    Back Navigates to previous window or page Navigates to the previous page or window in the mobile application
  8. Click Stop recording.
    The test recording stops and the browser window is closed. The Test Generation dialog box is displayed in the UI Test perspective.

Results

The mobile test recording is completed.

What to do next

You can click Open Test in the Test Generation dialog box to view the test, and then play back the recording.