Skip to main content

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


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.0.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file qmetry_pytest-1.0.0.tar.gz.

File metadata

  • Download URL: qmetry_pytest-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for qmetry_pytest-1.0.0.tar.gz
Algorithm Hash digest
SHA256 13f8904cd74984263e9b1e8fa7fb5bdd76a209a7e0f7616ab9780b6f371979e3
MD5 48c1b7a5d0d7e34c8b6e29e0316c859a
BLAKE2b-256 97c5c374c3569fae322604c5f215cb58971f1fe80086f59b47e9d9d9732cfd24

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