Skip to main content

Rotest result handler to send data to a ReportPortal system

Project description

https://travis-ci.org/gregoil/rotest_reportportal.svg?branch=master PyPI

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

rotest_reportportal-1.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

rotest_reportportal-1.1.1-py2-none-any.whl (4.9 kB view details)

Uploaded Python 2

File details

Details for the file rotest_reportportal-1.1.1.tar.gz.

File metadata

File hashes

Hashes for rotest_reportportal-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3037e329ce483354e3b458d9109a297ae4a57bb34a1fa2d936c1c7fc8c569a5e
MD5 c873d74c9905f60e7d9b0628d36e3da8
BLAKE2b-256 a5511ed35a5aeddf3bf953b734d9873a88b15c1d605523f9f09cc59d9047abdc

See more details on using hashes here.

File details

Details for the file rotest_reportportal-1.1.1-py2-none-any.whl.

File metadata

File hashes

Hashes for rotest_reportportal-1.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 fe3a72c97e22d6052024cf9dc5824ece1f33fe6b0a56f43206a4f6ed73c0109a
MD5 ec57c3310368e85a08ffebbd5701924d
BLAKE2b-256 9aea08cb47eb98d856ed49b80562cd2bdd19cf82098271cae86ed0a1a3ba64ad

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page