Last updated: Nov 04, 2020 11:55
1 | Install Robotframework-PerfectoLibrary
To install Robotframework-PerfectoLibray
, you can use your Python's pip module.
To install the Robotframework-PerfectoLibrary
:
- Open a command line window.
Run the following command:
python -m pip install perfectolibrary
For Python 3, run:
python -m pip install perfectolibrary_py37
The following image shows sample output.
- If needed, downgrade the
robotframework-selenium2library
package. See note above.
2 | Configure PerfectoLibrary
When 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:
Library PerfectoLibrary ${Your_Project_Name} | ${Your_Project_Version} | ${Your_CI_Test_Job_Name} | ${Your_CI_Test_Job_ID}
where:
Your_Project_Name
is the name of your project. This enables you to filter reports in Perfecto using the project name.Your_Project_Version
is 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_ID
is 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
When 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.