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
File details
Details for the file rotest_reportportal-1.1.4.tar.gz
.
File metadata
- Download URL: rotest_reportportal-1.1.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 404b8f7e4f9959d96ab51086c54d628fac7cb0157888eb54f37262c18a3b4173 |
|
MD5 | b5c6a1e9c9d53cb55470338bb7c69334 |
|
BLAKE2b-256 | 62ad8ec5bda50377e535b009043112a5c128f3c4a6113c887b0d82328e236484 |
File details
Details for the file rotest_reportportal-1.1.4-py2-none-any.whl
.
File metadata
- Download URL: rotest_reportportal-1.1.4-py2-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6266f28217a35844568eaf05cccce1ffeb6e1f423e2b89f1f1043dedb5dcba |
|
MD5 | f19b076fc85877415be792ba4175337f |
|
BLAKE2b-256 | 4a73cfa7583b38dd81c5426409dcd76473936f6527482d9f465da30a90202ee8 |