Running mobile tests as an AFT Suite on multiple mobile clouds
After you create an AFT Suite for mobile tests, you can run the tests simultaneously on devices connected to multiple mobile clouds to accelerate the test efforts.
Before you begin
- Created an AFT suite with mobile tests, See Creating an AFT Suite to run the tests on multiple mobile clouds.
- You must have set up accounts and obtained valid credentials for more than one
mobile cloud as mentioned below:
- BitBar Cloud: The host name or the URL of the BitBar Cloud instance, and an API key to authenticate the connection.
- pCloudy Cloud: The host name or the URL of the pCloudy Cloud instance, the user name, and an API key to authenticate the connection.
- Perfecto Cloud: The host name or the URL of the Perfecto Cloud instance, and the security token to authenticate the connection.
- Uploaded the .ipa file of the iOS application or the
.apk file of the Android application that you want to
test in the mobile cloud. For more information, refer to the following:
- BitBar: Live Testing in the BitBar documentation.
- pCloudy: Upload Android App or Upload iOS App in the pCloudy documentation.
- Perfecto: Manage Apps in the Perfecto documentation.
- Installed the Android or iOS application that you want to test on the device.
Note: To install the application in a device on the pCloudy Cloud, refer to Installing Android app or Installing iOS app in the pCloudy documentation.
- Connected and started the Android or iOS device that you want to use for testing the mobile applications. You can connect the device to the computer through a USB cable.
- If the test to be run on pCloudy Cloud, verified that the device you want to test is available and in the Released state on the pCloudy cloud.
About this task
Procedure
- Open the UI Test perspective in Rational® Functional Tester, if it is not already open.
-
Click
.
The UI Test Playback pane is displayed.
-
Click the Mobile Device Cloud tab, and perform the
following steps to configure the mobile clouds with Rational® Functional Tester:
You must only enter the details of mobile clouds on which you want to run the AFT Suite.
- BitBar Cloud
- Select the BitBar host checkbox to enable the options on the BitBar Device Cloud Environment panel.
- Perform the actions as listed in the following table:
Option
Action
BitBar host
Enter the host name of the BitBar Cloud instance.
API Key
Enter the API key of your BitBar Cloud account to authenticate the connection, and then click the Refresh projects and device groups .Note: Clicking the Refresh projects and device groups enables the Project and Device Group fields.Project
Select the BitBar project from the drop-down list.
Device Group
Select the mobile device group that you want to use in the BitBar cloud.
Test Run Enter an appropriate name for the test with which you can identify the test run on the BitBar Cloud dashboard.
- Click Apply.Note: When the connection with the BitBar Cloud instance is successful, the mobile devices that you have configured on the BitBar Cloud are displayed in the Run using drop-down list.
- pCloudy Cloud
- Select the pCloudy host checkbox to enable the options on the pCloudy Device Cloud Environment panel.
- Perform the actions as listed in the following table:
Option
Action
pCloudy host
Enter the host name of the pCloudy instance.
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.
- Click Apply.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.
- Perfecto Cloud
- Select the Perfecto host checkbox to enable the options on the Perfecto Device Cloud Environment panel.
- Perform the actions as listed in the following table:
Option
Action
Perfecto host
Enter the host name of the Perfecto Cloud instance.
Security Token
Enter the Token to authenticate the connection to the Perfecto Cloud instance.
- Click Apply.Note: When the connection with the Perfecto Cloud instance is successful, the mobile devices that you have configured on the Perfecto Cloud are displayed in the Run using drop-down list.
- BitBar Cloud
- Click Apply and Close.
-
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.
- Expand the contents of the Accelerated Functional Tests folder to view the AFT XML that is displayed with the name you provided.
-
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.
- 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 multiple mobile clouds from the location you configured.
What to do next
You can view the unified report for the mobile tests and choose to export the unified report. See Unified reports.