Pytest plugin for uploading test results to your QA Touch Testrun.
Project description
pytest-qatouch
Pytest plugin for uploading test results to your QA Touch Testrun.
Features
- It only will upload the test results to the specified testrun in your Qatouch portal
Installation
You can install "pytest-qatouch" via pip from PyPI::
pip install pytest-qatouch
Usage
from pytest_qatouch import qatouch @qatouch.TR(10) def test_for_testcase_number0010(): assert True @qatouch.TR(9) def test_for_testcase_number0009(): assert False
And If you want to use it with a parameterized tests , you can do as the example below.
import pytest from pytest_qatouch import qatouch @pytest.mark.parametrize( "num1,num2", [ (9, 8), pytest.param(8, 10, marks=qatouch.TR(2)), pytest.param(0, 10, marks=qatouch.TR(10)), pytest.param(1, 4, marks=qatouch.TR(9)), ], ) def test_sum_greater_than10(num1, num2): assert num1+num2 >= 10
Configuration
You can use a config file or pass it to pytest
as command line options.
Config file
pytest.ini
or setup.cfg
pytest configuration
[pytest] qatouch (string): Enable the qatouch plugin (Set it to 'True' to enable it) qatouch-subdomain (string): Your qatouch submodule name (i.e <your_subdomain>.qatouch.com) qatouch-api-token (string): Your qatouch API token qatouch-project-key (string): The qatouch project key qatouch-testrun-key (string): The testrun key in qatouch project
Command line options
--qatouch Enable the qatouch plugin (Set it to 'True' to enable it) --qatouch-subdomain Your qatouch submodule name (i.e <your_subdomain>.qatouch.com) --qatouch-api-token Your qatouch API token --qatouch-project-key The qatouch project key --qatouch-testrun-key The testrun key in qatouch project
Issues
If you encounter any problems, please file an issue along with a detailed description.
Contributing
Contributions are very welcome.
Development
To start development,run your python environment then run the following commands:
# Update pip, wheel and setuptools python -m pip install -U pip wheel setuptools # Instal all the needed dependencies pip install -e .[dev]
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
pytest-qatouch-0.2.0.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for pytest_qatouch-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c89e6fe43d5fb4fe20062625c945ff8cdbab36afa16fe84915e0683d9a998b9 |
|
MD5 | a042bc18027d1d1e3c5f4e2d1777c19c |
|
BLAKE2-256 | bf31475388e1c2ae167c3114af9aa2e22f2d60735b5ec10a694529c93a955f23 |