Running mobile tests as an AFT Suite on pCloudy Cloud

After you create an AFT Suite for mobile tests, you can run the AFT Suite on devices connected to pCloudy Cloud to accelerate the test efforts.

Before you begin

You must have completed the following tasks:
  • Created an AFT Suite with mobile tests. See Creating an AFT Suite for mobile tests to run the tests on pCloudy cloud.
  • Set up your account to access the pCloudy cloud. You must have valid credentials such as the host name or the URL of the pCloudy cloud instance, the user name, and an API key to authenticate the connection.
  • Uploaded the .apk file of the Android application or the .ipa file of the iOS application that you want to test in the pCloudy Cloud. For more information, refer to Upload Android App or Upload iOS App in the pCloudy documentation.
  • Installed the Android application or iOS application that you want to test on the device. For more information, refer to Installing Android app or Installing iOS app in the pCloudy documentation.
  • Verified that the device you want to test is available and in the Released state on the pCloudy cloud.

Procedure

  1. Open the UI Test perspective in Rational® Functional Tester, if it is not already open.
  2. Click Window > Preferences > Test > Test Execution > UI Test Playback.

    The UI Test Playback pane is displayed.

  3. Perform the following steps in the UI Test Playback pane:
    1. Click the Mobile Device Cloud tab.
    2. Select the pCloudy host checkbox to enable the options on the pCloudy Device Cloud Environment panel.
    3. Perform the actions as listed in the following table:

      Option

      Action

      pCloudy host

      Enter the host name of the pCloudy instance. For example, device.pcloudy.com.

      User Name

      Enter the user name of your pCloudy account.

      API Key

      Enter the API key of your pCloudy account to authenticate the user name for a successful connection.

    4. Click Apply and Close.
      Note: When the connection with the pCloudy instance is successful, the mobile devices that you have configured on the pCloudy Cloud are displayed in the Run using drop-down list.
  4. Select the project that contains the AFT Suite, in the Test Navigator pane.
    The AFT Suite that you created for the mobile tests is in the Accelerated Functional Tests folder.
  5. Expand the contents of the Accelerated Functional Tests folder to view the AFT XML that is displayed with the name you provided.
  6. Right-click the XML file of the AFT Suite, and then click Run Distributed Tests.
    The Run Accelerated Functional Test dialog is displayed.
    Note: If you are repeating the AFT Suite run because the previous run failed, the Re-run failed tests only from the last playback option is available for selection. When you select this option, the AFT Suite is run on the devices and location on which it previously failed.
  7. Click OK.

Results

You have run the mobile tests that are in an AFT Suite. The tests run on mobile devices that are connected to the Cloud from the location you configured.

The test result is displayed as a unified report in Rational® Functional Tester.

What to do next

You can view the unified report for the mobile tests and choose to export the unified report. See Unified reports.