Rotest result handler to send data to a ReportPortal system
Project description
What is it?
A plugin to the Rotest testing framework, that enables reporting the test results to the amazing Report Portal system.
Installation
Install it using pip:
$ pip install rotest_reportportal
Configuration
In the rotest.yml configuration file (or any of the available configuration formats, like .rotest.yaml) add the following entry:
rotest:
<rotest configuration>
reportportal:
endpoint: http://<reportportal_host>:<port>
project: <project name>
For example:
rotest:
...
reportportal:
endpoint: http://reportal:8080/
project: SUPERADMIN_PERSONAL
In addition to that, you need to define the ROTEST_REPORTPORTAL_TOKEN environment variable a user’s UUID. For example:
$ export ROTEST_REPORTPORTAL_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
$ # or, on Windows:
$ set ROTEST_REPORTPORTAL_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
A couple of things about the UUID:
You can obtain it from your user profile: http://{report_portal}:{port}/ui/#user-profile
Tests published with this UUID will identify the user that ran those tests.
Unless you want everyone to be able to publish results for you, keep this UUID a secret (no mentioning in the repository’s code or any public space).
Usage
You can run tests and activate the result handler, in the following way:
$ python <some_test_file> -o reportportal
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rotest_reportportal-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8972a9afd03606c87d7cf132a0abb89ea08f75b091a31f7972d91d3f77329dd |
|
MD5 | 953b9ead19533f90c1319acd0ae2e5ef |
|
BLAKE2b-256 | 1ba0e2f5afa07eefeaa27637506eac64792f952bf2e6955e183ea3bd43e40078 |
Hashes for rotest_reportportal-1.1.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6561718016b406d63e71feca81ca789c07b689e2fdfcd33451de43ad9d0b49fb |
|
MD5 | 2e5b47f7adbba2159e20268bf375d355 |
|
BLAKE2b-256 | 2aa75e3fe45d4f1ab8181fdebd920a6f9e4a3194010a16cb14123ff601d7cb92 |