Qase Behave Plugin for Qase TestOps and Qase Report
Project description
Qase TestOps Behave Reporter
Installation
To install the latest version, run:
pip install 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 caseqase.fields- set the fields of the test caseqase.suite- set the suite of the test caseqase.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 information about attaching files and content or adding comments to test results, see Attachments.
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.9
behave >= 1.2.6
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qase_behave-2.0.0.tar.gz.
File metadata
- Download URL: qase_behave-2.0.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c4a318fecf8364da872df8bd64a27ad624e0205969b007b1cc6b4361151a881
|
|
| MD5 |
cbf6b0f0858eec5063fea25f60bf5a8f
|
|
| BLAKE2b-256 |
f7a26cc2f7d9fa6fb6c1a25fd8b6c2a5ff830162eb407d0da9a6fd0bc4b94287
|
File details
Details for the file qase_behave-2.0.0-py3-none-any.whl.
File metadata
- Download URL: qase_behave-2.0.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8b802a7887570fcd136dfb0357d26b1821fdc326f115825f8ef2b2a9e557876
|
|
| MD5 |
f9ef476c02c49b18f32dd60fe24c81a6
|
|
| BLAKE2b-256 |
e319c48d0dd77ba01bf68cf0f6211e4c8356605e58a487bc0642d1761583aef8
|