You can run compound tests that contain mobile tests on Android mobile devices
that are connected to the Perfecto Cloud.
You must have completed the following tasks:
- Recorded mobile tests. See Recording mobile tests for Android applications.
- Created a compound test that contains mobile tests, see
Creating a compound test.
- Set up your account to access Perfecto
Mobile Cloud. You must have valid credentials such as the hostname or
the URL of the Perfecto Mobile Cloud instance and the security token to
authenticate the connection.
- Installed the .apk
file of the Android application that you want to test on an Android
device in Perfecto Mobile Cloud. For information, refer to Manage Apps in the Perfecto
documentation.
- Installed the Android application that
you want to test on the Android device.
When you run mobile tests, you can enable
Test UI to collect metrics
for certain parameters of the resources used by the mobile applications or
devices. You can select the Resource Monitoring option and set the time
intervals for the collection of the metrics during the test run.
Important: The collection of Resource Monitoring
metrics and display of the data graphically is supported only when you run a
compound test on a single device.
-
Open the UI Test perspective in Test UI if it is not
already open.
-
Select the compound test that contains the mobile tests from the
Test Navigator pane.
The test window is displayed.
-
Click .
The UI Test Playback pane is displayed.
-
Perform the following steps in the UI Test Playback
pane:
-
Click the Mobile Device Cloud tab.
-
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 hostname of the Perfecto Cloud
instance.
|
|
Security Token
|
Enter the Token to authenticate the connection
to the Perfecto Cloud instance.
|
-
Click Apply and Close.
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.
-
Click the Run Compound Test
icon.
The Run Configuration dialog is displayed.
Perform any of the following actions:
- To run each mobile test that are in the compound test on a specific
device, go to step 6.
- To simultaneously run all the tests that are in the compound test on
the same set of devices, go to step 7.
-
Clear the Run on several devices and browsers in
parallel option, if selected, and then perform the following
actions:
-
Click the Run using option for each test, to
view the mobile devices or emulators that are connected to the Perfecto
Cloud.
-
Select a device from the list.
-
Repeat steps 6.a and 6.b, for each of the tests in the Compound
test.
-
Click Next.
The
Advanced Playback Options dialog is
displayed.
Note: There is no action to be
performed by you for mobile tests.
-
Go to step 8.
-
Select the Run on several devices and browsers in
parallel option, if not selected.
All the mobile devices and emulators that are connected to the Perfecto Cloud
are displayed.
You must perform the following steps:
-
Select the devices on which you want to run the test.
-
Click Next.
The
Advanced Playback Options dialog is
displayed.
Note: There is no action to be
performed by you for mobile tests.
-
Go to step 8.
-
Click Next.
The Performance Measurement dialog is displayed.
-
Perform the following steps if you want Test UI to collect the
Resource Monitoring metrics during the test run:
-
Select the Resource Monitoring option.
-
Set the interval to collect the metrics by entering a number in the
Polling interval field.
Note: The minimum value that you can enter in
the Polling interval field is 1000
milliseconds.
-
Click Finish.
You can view the unified report for the mobile tests and
choose to export the unified report. See Unified reports.
If you opted to collect the Resource Monitoring
metrics, you can view the metrics displayed graphically in the UI Test
Statistical report. You can analyze the Resource Monitoring metrics to manage
the resources of the device or the mobile application under test. See UI Test Statistical report.