Configuring Android applications for mobile tests

You can configure Android applications in a common web interface and use the configured applications any time later to record mobile tests. You can record mobile tests to perform actions on Android applications and automate the mobile tests.

Procedure

  1. Go to the UI Test perspective in Rational® Functional Tester.
  2. Click the Application configuration icon for mobile and web ui view icon in the toolbar.
    The Application configuration page opens in the default browser.
    This page displays the list of applications that you configured in Rational® Functional Tester.
  3. Click Add and select Android.

    The Android application dialog box is displayed.

  4. Choose a mode for configuring the Android application. You can click one of the following modes:
    • Manually: Click this option to manually enter the complete details of the Android application.
    • From APK: Click this option to either drag and drop the package file .apk or browse to select the package file of the Android application. After you drag and drop the package file in the Drop APK or click to browse field, the details of the Android application are populated automatically.
    • From device: Click this option to select the Android application from devices or emulators that are connected to your computer.
  5. Complete the action for each option as described in the following table:
    Option Action
    Device
    Note: This field is displayed only when you select the From device mode.
    Select a device or an emulator that is connected to your computer.
    Package
    Note: This field is displayed only when you select the Manually or From device mode.
    Perform one of the following actions based on the mode that you chose to configure the application:
    • Manually: Enter the package name of the Android application that you want to configure.
    • From device: Select the package name from the Device list.

    For example, the package name for YouTube is com.google.Android.youtube.

    You can also add an icon to the Android application by clicking the Edit icon inline with the Package field. This icon is prefixed to the application name.

    Name

    The application name is auto populated for From APK or From device modes. You can also edit the name as required.

    For the Manually mode, enter a name for the Android application with which you want to identify the application. This name is displayed as the Application Name after you configure the application.

    For example, the application name can be add_forms.

    Activity

    The activity name is used to identify the purpose of the Android application that you want to configure.

    After you enter the package name in the Package field, the same name is auto populated in the Activity field and it is suffixed with the text .Main Activity.

    For example, if the package name is com.google.Android.youtube, then the Activity name is auto populated as com.google.Android.youtube.MainActivity. You can edit the text as required.

    Version Enter a number that you want to identify the version of the mobile application used for the test.

    For example, the version number can be dev_bld_V123.

    Description Enter a description for the application.

    For example, the application description can be Test add video in bld V123.

  6. Click Add.

Results

You have configured the Android application.

What to do next

You can use the Android application to record the mobile tests.