pytest-railflow-testrail-reporter
pytest-railflow-testrail-reporter is a pytest plugin generates json outputs with predefined metadata as json attributes defined during the tests.
It is designed for generating testrail outputs.
Requirements
In order to use pytest-railflow-testrail-reporter plugin, following prerequsites should be met.
- Python 2.7, 3.4 or greater
- Pytest
Installation
Using Pip
To install the pytest-railflow-testrail-reporter plugin using pip,run the following command in terminal:
pip install pytest-railflow-testrail-reporter
This will install the plugin to the system.
Usage
Currently the plugin supports the metadata attributes given below. All other undefined metadata attributes will be rejected with a warning.
Function level Attributes | Class level Attributes |
---|---|
jira_ids | case_fields |
case_fields | result_fields |
result_fields | case_type |
testrail_ids | case_priority |
case_type | smart_assignment |
case_priority |
To run the test, enter the following command in the terminal from test directory.
pytest --jsonfile output.json
Examples
Please check examples for more information and sample tests.
License
This software is licensed under the MIT license
See License file for more information.