Skip to main content

Qase Behave Plugin for Qase TestOps and Qase Report

Project description

Qase TestOps Behave Reporter

License

Installation

To install the latest version, run:

pip install pre qase-behave

Getting started

The Behave 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.

Metadata

  • qase.id - set the ID of the test case
  • qase.fields - set the fields of the test case
  • qase.suite - set the suite of the test case
  • qase.ignore - ignore the test case in Qase. The test will be executed, but the results will not be sent to Qase.

For detailed instructions on using annotations and methods, refer to Usage.

For example:

Feature: Example tests

  @qase.id:1 @qase.fields:{"description":"It_is_simple_test"} @qase.suite:MySuite
  Scenario: Example test
    Given I have a simple test
    When I run it
    Then it should pass

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

behave --format=qase.behave.formatter:QaseFormatter

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

Configuration

Qase Behave 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 behave >= 1.2.6

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_behave-1.1.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

qase_behave-1.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qase_behave-1.1.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for qase_behave-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b090dad894f1b4e3e031e2d49f7364b72ed6c56f44480d75ae7c38d1b3ea9389
MD5 f2c5557e631d48b30fabf021bb4fe67a
BLAKE2b-256 4f3fce7f14a18c1d133d4acf009107914bebc3c19c48112cd3238d8fbc44ff8f

See more details on using hashes here.

File details

Details for the file qase_behave-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: qase_behave-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for qase_behave-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd0e4a4f3db356241190fc28a873ad45552ae4d2ba9a3548d9465f9d1ef76c3
MD5 2cd508bb0335109d012cc7b004b73b0b
BLAKE2b-256 eb6cda25d2ffc1550e1155f25577fe6b247ff1f7f1655fcbb975205ef3f57673

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