upload junit xml to xray.
Project description
Xray Uploader
usage
- import as a module:
from xray import Uploader
result_file = "res.xml"
summary = "automation test"
project_id = "12345"
result_format = "junit"
upl = Uploader({client_id}, {client_secret})
upl.import_execution(result_file, summary, project_id, result_format)
- execute as a command
eg: xray-uploader -r result.xml -f junit -pi 12345 -s "Test Execution"
usage: xray-uploader [-h] -r RESULT -f FORMAT -pi PROJECTID -s SUMMARY [-ci CLIENTID] [-cs CLIENTSECRET] [-tp TESTPLAN]
options:
-h, --help show this help message and exit
-r RESULT, --result RESULT
A result file with absolute path.
-f FORMAT, --format FORMAT
Format of the result file. Valid formats are testing, junit
-pi PROJECTID, --projectId PROJECTID
ID of the project where the test execution is going to be created.
-s SUMMARY, --summary SUMMARY
Summary of the test execution.
-ci CLIENTID, --clientId CLIENTID
Client ID to authorize if it is specified, otherwise will read from env CLIENT_ID.
-cs CLIENTSECRET, --clientSecret CLIENTSECRET
Client secret to authorize if it is specified, otherwise will read from env CLIENT_SECRET.
-tp TESTPLAN, --testPlan TESTPLAN
The tests will be added automatically to the test plan if it is specified.
General purpose xray uploader.
Currently either specify a testNG or a junit style xml file .
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
xray-uploader-2.4.0.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for xray_uploader-2.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 058fad8634dcad800d6d6afd245e26e9dd71bb5faa7e867b239b8845ccf0ea2b |
|
MD5 | 4f63b9487cf73b14890c14a24916f97c |
|
BLAKE2b-256 | 24e7dea54691b3f1c1f4185d7a0b0ac05f9a3c12cde841a575ebc10bda91b563 |