Test IT TMS importers
Allure report
Getting Started
Installation
pip install testit-importer-allure
Usage
Configuration
Use the command testit --help to view the configuration setup help:
testit --url <url>
testit --privatetoken <token>
testit --projectid <id>
testit --configurationid <id>
And fill parameters with your configuration, where:
url - location of the TMS instance
privatetoken - API secret key
- go to the https://{DOMAIN}/user-profile profile
- copy the API secret key
projectid - id of project in TMS instance
- create a project
- open DevTools -> network
- go to the project https://{DOMAIN}/projects/{PROJECT_GLOBAL_ID}/tests
- GET-request project, Preview tab, copy id field
configurationid - id of configuration in TMS instance
- create a project
- open DevTools -> network
- go to the project https://{DOMAIN}/projects/{PROJECT_GLOBAL_ID}/tests
- GET-request configurations, Preview tab, copy id field
Importing
Use the command testit --resultsdir allure-results --testrunname <name> to specify the directory with Allure report results and create new test run with the specified name in TMS instance.
The --testrunname parameter is optional. The default name of testrun is "AllureRun"
Or use the command testit --resultsdir allure-results --testrunid <id> to specify the directory with Allure report results and id of test run in TMS instance.
Important: This command initiates the import.
Test run tags and links
You can attach test run tags and links (e.g. CI job URL) so they are visible in TMS while the run is still in progress.
| Source | Tags | Links |
|---|---|---|
| CLI | --testruntags / -trt |
--testrunlinks / -trl |
| Env | TMS_TEST_RUN_TAGS |
TMS_TEST_RUN_LINKS |
connection_config.ini [testit] |
testRunTags |
testRunLinks |
Priority: env > CLI > ini. Empty / omitted values mean "do not change".
Tags — comma-separated or JSON array:
smoke,nightly
["smoke", "nightly"]
Links — JSON array (url required; title, description, type optional):
[
{
"url": "https://gitlab.example.com/group/project/-/jobs/12345",
"title": "CI Job",
"type": "Related"
}
]
Supported link types: Related, BlockedBy, Defect, Issue, Requirement, Repository.
Behaviour:
- New test run (
--testrunname/ default): tags and links are sent in the create request. - Existing test run (
--testrunid): tags and links are merged at the start of import (existing items are kept; duplicates by tag name / link URL are skipped).
Example (CI job URL + tags):
testit --resultsdir allure-results \
--testruntags smoke,nightly \
--testrunlinks "[{\"url\":\"$CI_JOB_URL\",\"title\":\"CI Job\",\"type\":\"Related\"}]"
Or via env:
export TMS_TEST_RUN_TAGS=smoke,nightly
export TMS_TEST_RUN_LINKS='[{"url":"https://gitlab.example.com/.../jobs/12345","title":"CI Job","type":"Related"}]'
testit --resultsdir allure-results
Contributing
You can help to develop the project. Any contributions are greatly appreciated.
- If you have suggestions for adding or removing projects, feel free to open an issue to discuss it, or directly create a pull request after you edit the README.md file with necessary changes.
- Please make sure you check your spelling and grammar.
- Create individual PR for each suggestion.
- Please also read through the Code Of Conduct before posting your first idea as well.
License
Distributed under the Apache-2.0 License. See LICENSE for more information.
Release files for testit-importer-allure 1.17.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| testit_importer_allure-1.17.6.tar.gz | 24.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| testit_importer_allure-1.17.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.6 kB
Release files / testit_importer_allure-1.17.6.tar.gz
| Download URL | testit_importer_allure-1.17.6.tar.gz |
|---|---|
| Size | 24.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c88b2c019b74f31fb26409923418d1c0bb27d2582e351d209eb79ff7ea280400
|
|
BLAKE2b-256 checksum How to use checksums |
51e593931f2db256eb0feb2908483126c9420af204a1f86aca905007f38a4188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / testit_importer_allure-1.17.6-py3-none-any.whl
| Download URL | testit_importer_allure-1.17.6-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bef617357e3c4c3b4d6c6706b2428e4a467f745c1feb4f6344e1124df3564c60
|
|
BLAKE2b-256 checksum How to use checksums |
257910ec9874e8f7723e3edc1d4552b9c2e384d5793978fdc38e82dfbdb4b40c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|