testrail-api-client
testrail-api-client - is a client for provide integration with TestRail
General information about TestRail Api
Requirements
- requests
- pytest
- gherkin-official
- pytest-bdd
Installation
pip install pytest-testrail-api-client
Configuration Starting from version 0.3 you can configure testrail client credentials with 3 way:
Way 1. Directly set credentials in class constructor
from pytest_testrail_api_client.test_rail import TestRail
test_rail = TestRail('your_host', 'your_username', 'your_token')
Way 2. Set credentials in pytest.ini or in test_rail.ini This files must be in root folder project path Add group [pytest] Add variables:
- testrail-email
- testrail-key
- testrail-url
Example pytest.ini or test_rail.ini
[saucelab]
testrail-email = your_email
testrail-key = your_token
testrail-url = your_host
When you add credentials to ini file:
from pytest_testrail_api_client.test_rail import TestRail
test_rail = TestRail()
Way 3. You can set environment variables:
- TESTRAIL_EMAIL
- TESTRAIL_KEY
- TESTRAIL_URL
When you add credentials to environment variables:
from pytest_testrail_api_client.test_rail import TestRail
test_rail = TestRail()
Features in version: 0.3.1
- Access to TestRail Api
- Export feature files to TestRail (use pytest --pytest_testrail_export_test_cases --pytest-testrail-feature-files-relative-path "%RELATIVE_PATH%")
- Export tests results to TestRail (use pytest --pytest-testrail-export-test-results --pytest-testrail-test-plan-id %PLAN_ID% --pytest-testrail-test-configuration-name %CONFIGURATION%)
- Scenarios validation (please, see pytest_testrail_api_client/client_config.py)
- Tags replacing (for example: you have automation status "To Be Automated" and you use tag "to_automate" if feactures you can set it in variable REPLACE_TAGS - it will bind these tags)
- Priority replace: variable PRIORITY_REPLACE
Usage examples
from pytest_testrail_api_client.test_rail import TestRail
test_rail = TestRail()
case = test_rail.cases.get_case(1)
Metadata
Release files for pytest-testrail-api-client 0.3.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytest-testrail-api-client-0.3.9.tar.gz | 26.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_testrail_api_client-0.3.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.2 kB
Release files / pytest-testrail-api-client-0.3.9.tar.gz
| Download URL | pytest-testrail-api-client-0.3.9.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e2c4d67a2d5e83986cf61ccf5fd2b956875621eb804c72789dbd82738d2ff9d
|
|
BLAKE2b-256 checksum How to use checksums |
405723b7fa78e49242f42816e6e5f4340a268d9c74644f20e9e2519e568f629f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Release files / pytest_testrail_api_client-0.3.9-py3-none-any.whl
| Download URL | pytest_testrail_api_client-0.3.9-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
019b75aaf554dd1d906ed1a2489c936aec6c089fbac4fcc5369a4bca10c2c56b
|
|
BLAKE2b-256 checksum How to use checksums |
4f075082cdbf290791d943f12c4382836232f244f072acda34511ff27641027e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
|
Security for pytest-testrail-api-client 0.3.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.