A PyTest plugin that provides seamless integration with QMetry Test Management Platform.
Project description
QMetry PyTest
A PyTest plugin that provides seamless integration with QMetry Test Management Platform.
Features
- Automatically uploads test results to QMetry
- Generates test cycles and updates test case statuses seamlessly
- Supports JUnit XML reports for Automation API
- Supports Cucumber JSON reports for Automation API
Installation
pip install qmetry-pytest
Configuration
You'll need to create a qmetry.properties file in your project root:
qmetry.enabled=true
qmetry.url=<your_qmetry_url>
qmetry.authorization=<your_authorization>
qmetry.automation.enabled=true
qmetry.automation.apikey=<your_api_key>
qmetry.automation.format=<junit/cucumber>
qmetry.automation.resultfile=<your_report_path/filename.xml/json>
Test Example
# test_example.py
import pytest
@pytest.mark.qid("TC-123")
def test_example():
assert True
@pytest.mark.qid("TC-124")
def test_another_example():
assert 1 + 1 == 2
Test Execution
pytest --qmetry
Generate XML report before upload
pytest --qmetry --junitxml=report/results.xml
Best Practices
- No markers are required for the automation flow.
- Ensure secure authentication and keep the configuration updated in
qmetry.properties. - Remember to include --qmetry as a command-line argument during test execution.
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
qmetry_pytest-1.0.1.tar.gz
(5.9 kB
view details)
File details
Details for the file qmetry_pytest-1.0.1.tar.gz.
File metadata
- Download URL: qmetry_pytest-1.0.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27e30f96603f0065ce5c558ab7300bfc76951ef46b8cde9f56cde21d737ced02
|
|
| MD5 |
76f27d2879b24a82176e8031ef7ced44
|
|
| BLAKE2b-256 |
5adc0a008b99bfc9bba2837823de14daaf679b2bdf675b2dab7a595d37535d51
|