Skip to main content

Rotest result handler to send data to a ReportPortal system

Project description

PyPI https://travis-ci.org/gregoil/rotest_reportportal.svg?branch=master AppVeyor https://coveralls.io/repos/github/gregoil/rotest_reportportal/badge.svg?branch=master

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.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

rotest_reportportal-1.1.2-py2-none-any.whl (5.0 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for rotest_reportportal-1.1.2.tar.gz
Algorithm Hash digest
SHA256 f6cec3c1027c9d58ddcd70132c6ea1ca10a6c7aa1b6dc989a6cdbf6f867f90d0
MD5 51295440605948e8695be0e72304c0af
BLAKE2b-256 389f9488e364796eca4afc566d34d3e0f1c5489e1b1b3fd192ea09a8e8427fcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rotest_reportportal-1.1.2-py2-none-any.whl
Algorithm Hash digest
SHA256 7b85aff42ed6a14498935ba53f36f7db9491dd40dd54a8a25d2cd6496a87ddd2
MD5 95089914d767a2b30d8d1e80402e6606
BLAKE2b-256 0f3f975d71c251b54b8b81cc2b9b6a4aa67987831899015dd34fc4ffc1513a0d

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