Last updated: Nov 04, 2020 11:55
1 | Install Robotframework-PerfectoLibrary
Robotframework-PerfectoLibray, you can use your Python's pip module.
To install the
- Open a command line window.
Run the following command:
For Python 3, run:
The following image shows sample output.
- If needed, downgrade the
robotframework-selenium2librarypackage. See note above.
2 | Configure PerfectoLibrary
PerfectoLibrary has been installed successfully on your machine, you can integrate it with your code. The easiest way is to include it into one of your most commonly used local script libraries, for example
common_lib.robot. You can configure the following parameters to distinguish your script's reports in Perfecto:
Your_Project_Nameis the name of your project. This enables you to filter reports in Perfecto using the project name.
Your_Project_Versionis the version of your project version. This enables you to filter report in Perfecto by project version.
Your_CI_Test_Job_Name: is the name of the CI test job if you have integrated your test scripts with Bamboo or Jenkins. This enables you to see your CI executions in Perfecto's CI Dashboard.
Your_CI_Test_Job_IDis the ID of your CI test job if you have integrated your test scripts with Bamboo or Jenkins. This enables you to view your executions by job ID and compare them with each other to see pass trends by execution.
3 | View execution reports
PerfectoLibrary is integrated with your scripts and configured properly, you can view execution reports in the Perfecto UI. In the CI Dashboard view, for example, you should now see your test job status by job ID, as shown in these sample images.
You can also view your executions by device type in heat map view:
Source code access
This library is open source and under the MIT License. Feel free to check out, fork, or modify the project at https://github.com/PerfectoMobileSA/Robotframework-PerfectoLibrary.