Name | xray-uploader JSON |
Version |
2.8.1
JSON |
| download |
home_page | None |
Summary | upload test results to xray. |
upload_time | 2025-07-16 09:23:59 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.0 |
license | MIT License |
keywords |
xray
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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
```
usage: xray-uploader [-h] -r RESULT -f FORMAT -pi PROJECTID -s SUMMARY [-ci CLIENTID] [-cs CLIENTSECRET] [-tp TESTPLAN] [-se] [-cr]
Upload test results to Xray.
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 testng, junit, json
-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.
-se, --setEnv Set azure pipeline environment "XRAY_EXECUTION_ID" with xray key.
-cr, --checkResult Check xray format of the result file.
```
Raw data
{
"_id": null,
"home_page": null,
"name": "xray-uploader",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": null,
"keywords": "xray",
"author": null,
"author_email": "qun <qun.chen@hexagon.com>",
"download_url": "https://files.pythonhosted.org/packages/71/82/2c3539394ab47803541414bbf0b1637fc648e180cf1857693ea1b91ea3a8/xray_uploader-2.8.1.tar.gz",
"platform": null,
"description": "# Xray Uploader\r\n\r\n## usage\r\n\r\n- import as a module:\r\n```\r\nfrom xray import Uploader\r\n\r\nresult_file = \"res.xml\"\r\nsummary = \"automation test\"\r\nproject_id = \"12345\"\r\nresult_format = \"junit\"\r\n\r\nupl = Uploader({client_id}, {client_secret})\r\nupl.import_execution(result_file, summary, project_id, result_format)\r\n```\r\n\r\n- execute as a command\r\n```\r\nusage: xray-uploader [-h] -r RESULT -f FORMAT -pi PROJECTID -s SUMMARY [-ci CLIENTID] [-cs CLIENTSECRET] [-tp TESTPLAN] [-se] [-cr]\r\n\r\nUpload test results to Xray.\r\n\r\noptions:\r\n -h, --help show this help message and exit\r\n -r RESULT, --result RESULT\r\n A result file with absolute path.\r\n -f FORMAT, --format FORMAT\r\n Format of the result file. Valid formats are testng, junit, json\r\n -pi PROJECTID, --projectId PROJECTID\r\n ID of the project where the test execution is going to be created.\r\n -s SUMMARY, --summary SUMMARY\r\n Summary of the test execution.\r\n -ci CLIENTID, --clientId CLIENTID\r\n Client ID to authorize if it is specified, otherwise will read from env CLIENT_ID.\r\n -cs CLIENTSECRET, --clientSecret CLIENTSECRET\r\n Client secret to authorize if it is specified, otherwise will read from env CLIENT_SECRET.\r\n -tp TESTPLAN, --testPlan TESTPLAN\r\n The tests will be added automatically to the test plan if it is specified.\r\n -se, --setEnv Set azure pipeline environment \"XRAY_EXECUTION_ID\" with xray key.\r\n -cr, --checkResult Check xray format of the result file.\r\n\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "upload test results to xray.",
"version": "2.8.1",
"project_urls": null,
"split_keywords": [
"xray"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "d62a129f4157f5f44c6a8d9a9eb18f8071341c68810e063b83e93446f3c62750",
"md5": "ff3105851a8512e9caa75e6fd27c79f8",
"sha256": "23687fa36653ae71ffe50d95f719385fafb512b26ceb022b85203d3340050f1f"
},
"downloads": -1,
"filename": "xray_uploader-2.8.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ff3105851a8512e9caa75e6fd27c79f8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.0",
"size": 6268,
"upload_time": "2025-07-16T09:23:57",
"upload_time_iso_8601": "2025-07-16T09:23:57.507921Z",
"url": "https://files.pythonhosted.org/packages/d6/2a/129f4157f5f44c6a8d9a9eb18f8071341c68810e063b83e93446f3c62750/xray_uploader-2.8.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "71822c3539394ab47803541414bbf0b1637fc648e180cf1857693ea1b91ea3a8",
"md5": "295371201069b94071f24232b865f5ff",
"sha256": "3c31b561097f114a9420498acf3a7c53b2686414dfd676ccea546f172fd5f433"
},
"downloads": -1,
"filename": "xray_uploader-2.8.1.tar.gz",
"has_sig": false,
"md5_digest": "295371201069b94071f24232b865f5ff",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 5328,
"upload_time": "2025-07-16T09:23:59",
"upload_time_iso_8601": "2025-07-16T09:23:59.837575Z",
"url": "https://files.pythonhosted.org/packages/71/82/2c3539394ab47803541414bbf0b1637fc648e180cf1857693ea1b91ea3a8/xray_uploader-2.8.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-16 09:23:59",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "xray-uploader"
}