Skip to main content

Qase Tavern Plugin for Qase TestOps and Qase Report

Project description

Qase TestOps Tavern Reporter

License

Installation

To install the latest version, run:

pip install pre qase-tavern

Getting started

The Tavern reporter can auto-generate test cases and suites from your test data. Test results of subsequent test runs will match the same test cases as long as their names and file paths don't change.

You can also annotate the tests with the IDs of existing test cases from Qase.io before executing tests. It's a more reliable way to bind autotests to test cases, that persists when you rename, move, or parameterize your tests.

For example:

---
test_name: QaseID=1 Test with QaseID success

stages:
  - name: Step 1
    request:
    response:

  - name: Step 2
    request:
    response:

To execute Tavern tests and report them to Qase.io, run the command:

pytest

You can try it with the example project at examples/tavern.

Configuration

Qase Tavern Reporter is configured in multiple ways:

  • using a config file qase.config.json
  • using environment variables
  • using command line options

Environment variables override the values given in the config file, and command line options override both other values.

Configuration options are described in the configuration reference.

Example: qase.config.json

{
  "mode": "testops",
  "fallback": "report",
  "testops": {
    "project": "YOUR_PROJECT_CODE",
    "api": {
      "token": "YOUR_API_TOKEN",
      "host": "qase.io"
    },
    "run": {
      "title": "Test run title"
    },
    "batch": {
      "size": 100
    }
  },
  "report": {
    "driver": "local",
    "connection": {
      "local": {
        "path": "./build/qase-report",
        "format": "json"
      }
    }
  },
  "environment": "local"
}

Requirements

We maintain the reporter on LTS versions of Python.

python >= 3.7 tavern >= 2.11.0

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

qase_tavern-1.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qase_tavern-1.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file qase_tavern-1.1.0.tar.gz.

File metadata

  • Download URL: qase_tavern-1.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for qase_tavern-1.1.0.tar.gz
Algorithm Hash digest
SHA256 732fdcaad5e689fbded3fbb5031d081eecccfe57c9bbabe898544804b330be5b
MD5 2df03ca357e621e607fb1d20eec426d9
BLAKE2b-256 daf5f9aa17512ec9d9e3c4bbe9abb59afe6d8ee8c6d0d26f1627700fa6a0c3b4

See more details on using hashes here.

File details

Details for the file qase_tavern-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: qase_tavern-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for qase_tavern-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1024332568c81cafad3cdf7af1731eb2cb11f9ae76a4b25bb5797343c185bd4a
MD5 7e4415c9f077b7c4d58d4534e30abafc
BLAKE2b-256 672c121585091da3981d015e2b07ab357aff407d938cdaad6fcb7e9b30bb5a89

See more details on using hashes here.

Supported by

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