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 detailed instructions on using annotations and methods, refer to Usage.

Multi-Project Support

Qase Tavern Reporter supports sending test results to multiple Qase projects simultaneously. You can specify different test case IDs for each project using the QaseProjectID.PROJECT_CODE=IDS format in test names.

For detailed information and examples, see the Multi-Project Support section in the usage documentation.

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"
      }
    }
  },
  "logging": {
    "console": true,
    "file": false
  },
  "environment": "local"
}

Requirements

We maintain the reporter on LTS versions of Python.

python >= 3.9 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-3.0.0.tar.gz (15.0 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-3.0.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qase_tavern-3.0.0.tar.gz
Algorithm Hash digest
SHA256 c881731d8730529be5cdc0d5e5c42d6e256625f4d8ffeaba8ba544646e0fbaf1
MD5 4eb641005fd6919274752ad17b7c640e
BLAKE2b-256 86bb0ddb65b095c5789b8d12060188987741d5272d713059d6dab442ed250b76

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qase_tavern-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 633d6d0585071a87e8cc778cbd42658dd11c90890bb440ed25dafd0876022f9d
MD5 bb6e0a295450b8adafc352d795acb6bf
BLAKE2b-256 8bf1c2213f20c62d6df7786a1d28c0fe4ef27e1b17661984720f322d4555ce22

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