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

Uploaded Source

Built Distribution

rotest_reportportal-2.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rotest_reportportal-2.0.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for rotest_reportportal-2.0.0.tar.gz
Algorithm Hash digest
SHA256 c7a12681e8d9edebac100184d9b088479a0719a6e85c7cb7ac3bd330e16da8fb
MD5 e30e8112e2531f1a39d7bfc5d9c99b5d
BLAKE2b-256 55bb2d501d23c381eb746f49a510030ad74d9c88c3cad98bd42e7a6aa9b8aa6b

See more details on using hashes here.

File details

Details for the file rotest_reportportal-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: rotest_reportportal-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for rotest_reportportal-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 443440d51945a1403633b03982f32c987a30781d21ef6455307759fa87c4913e
MD5 c572833ea66f065b985ea3b4a1a9cbc2
BLAKE2b-256 0afbd17524476c700437162eb92f0f0376a4d3e1a5528965dbe966cee410dc25

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