Last updated: Jun 17, 2020 16:05
Supported Appium and Selenium versions
Perfecto supports Appium server 1.12.0 or later. See also Supported platforms.
Supported devices and OS versions
Perfecto supports emulators for Android versions 8.0 and later on the following devices.
Watch the video to see how to work with emulators in Perfecto.
For your convenience, following is the script used in the video. You can run it in your environment with the following changes:
<your_token>: The Perfecto security token for your user. For information about obtaining a token, see Generate security tokens.
<your_cloud_URL>: The URL for your Perfecto cloud.
1 | Configure and run your tests
This step walks you through adding the required capabilities to your existing Appium test scripts against a virtual mobile device. For comprehensive information on how to make Appium test scripts work with Perfecto, including adding dependencies and integrating with Perfecto Smart Reporting, see Appium.
To configure and run your tests:
Open an existing test script in the IDE of your choice.
The following sample code snippet is not yet configured to run in Perfecto. It opens an app (Safari) on a mobile platform (iOS) of a specific version (13.3). The device name is specific (iPhone X).
Configure the script to run in Perfecto by following the steps in the Appium section. In particular, you need to add dependencies, provide the security token and URL required to connect to the Perfecto cloud, and create an instance of the reporting client to integrate with Perfecto Smart Reporting.
To run the test on a virtual device, add the capability
useVirtualDeviceand set it to
true. The script should now look similar to the following. For more information on the individual capabilities, see Supported capabilities for virtual mobile devices | Early Access and Supported Appium capabilities.
If you want to run your test on an emulator other than GoogleAPI, add the capability
emulatorTypeand set it to
- Save your test.
- To avoid script failure, check if a simulator license is available via the Get License Information by Type API.
- If a license is available, run your script.
2 | View execution results
To view execution results:
- When your test execution has finished, go to your Perfecto cloud instance and click Analyze Reports to open the Test Analysis view.
In the Report Library, in the right pane, under Filter, select Platform type > Mobile simulator.
If the right pane is not visible, click Configure View to open it.
The report list refreshes to show only tests run on a simulator, as indicated by the simulator iconin the Platform column.
For more information on filtering, see Focus on what's important to you.
- Click the relevant test report.
- In the test view, do any of the following:
- In the left pane, under Test Flow, review the test steps.
- In the right pane, play the video.
- At the top right, click the download button to download the full report or the video.