Skip to main content

pytest plugin for collecting test cases and recording test results

Project description

NOTE: pytest-polarion-cfme is no longer using pylarion as pylarion is being deprecated. As a consequence command line options changed too.

pytest-polarion-cfme is a pytest plugin for collecting test cases and recording test results to database.

From set of test cases specified on command line the plugin selects such test cases that are present in the database and have no reportable result yet.

After executing a test case the plugin records its result in the database. By default results for passed and blocked (test cases with blocker or ‘skipif’) test cases are recorded.

It is tailored to work with test case ids and blockers used by CFME QE team.

Usage

Generate sqlite3 file out of the CSV file exported from Polarion®. Use the csv2sqlite.py from dump2polarion for this.

From test cases available to pytest (you can limit these using standard pytest features like -k or specifying file/directory path) select and run those that are present in the database and have no reportable result. Record results for test cases that passed or that are blocked:

$ py.test --db <db_file.sqlite3>

To exclude tests that were already executed but haven’t passed, add --skip-executed command line option (i.e. failing/skipped tests are not re-run and it saves time):

$ py.test --db <db_file.sqlite3> --skip-executed

Submit results to Polarion® xunit importer using dump2polarion.py from dump2polarion.

Install

For CFME QE specific instructions see https://mojo.redhat.com/docs/DOC-1098563 (accessible only from internal network).

Install this plugin:

$ pip install .

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

pytest_polarion_cfme-0.1.3.tar.gz (4.7 kB view details)

Uploaded Source

File details

Details for the file pytest_polarion_cfme-0.1.3.tar.gz.

File metadata

File hashes

Hashes for pytest_polarion_cfme-0.1.3.tar.gz
Algorithm Hash digest
SHA256 73e0abb6ce6b459efdc1a646c994142982c795487375621c8a917b47db1dda13
MD5 46fdce2b797146885f4327f434d5d228
BLAKE2b-256 b923ddcc5dcfea7dfa8b6b37a1cbf3ad606745ce7b1be206332dbcf9d6d1411e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page