Name | xray-uploader JSON |
Version |
2.6.1
JSON |
| download |
home_page | |
Summary | upload junit or testng format xml to xray. |
upload_time | 2024-03-12 02:23:18 |
maintainer | |
docs_url | None |
author | |
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
```
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 format is one of 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.
General purpose xray uploader.
Currently either specify a testNG or a junit format xml file .
```
Raw data
{
"_id": null,
"home_page": "",
"name": "xray-uploader",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": "",
"keywords": "xray",
"author": "",
"author_email": "qun <qun.chen@hexagon.com>",
"download_url": "https://files.pythonhosted.org/packages/b6/94/60843db7f0d476cb927a78995526a77d0f5f844f99d48037328dfc8a1081/xray-uploader-2.6.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\neg: xray-uploader -r result.xml -f junit -pi 12345 -s \"Test Execution\"\r\n\r\nusage: xray-uploader [-h] -r RESULT -f FORMAT -pi PROJECTID -s SUMMARY [-ci CLIENTID] [-cs CLIENTSECRET] [-tp TESTPLAN]\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 format is one of 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\r\nGeneral purpose xray uploader.\r\nCurrently either specify a testNG or a junit format xml file .\r\n```\r\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "upload junit or testng format xml to xray.",
"version": "2.6.1",
"project_urls": null,
"split_keywords": [
"xray"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "08bbb65e433f2677dcd03d09260e518e8c302bdbe275b703a16336228bd8ed36",
"md5": "01e4c3e9868c8f56c01f03da2d2ce25f",
"sha256": "b604885436aac690dfd5c48971d037a6d20dbbac13354b21043d2926399b6fe1"
},
"downloads": -1,
"filename": "xray_uploader-2.6.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "01e4c3e9868c8f56c01f03da2d2ce25f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.0",
"size": 5246,
"upload_time": "2024-03-12T02:23:16",
"upload_time_iso_8601": "2024-03-12T02:23:16.871765Z",
"url": "https://files.pythonhosted.org/packages/08/bb/b65e433f2677dcd03d09260e518e8c302bdbe275b703a16336228bd8ed36/xray_uploader-2.6.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b69460843db7f0d476cb927a78995526a77d0f5f844f99d48037328dfc8a1081",
"md5": "aceffbb3a34fd09fad5218ecf0594137",
"sha256": "da9792aed1f15091fa62bfabae987ef2a8e4938fd2b5cea58c125d20f1f9d184"
},
"downloads": -1,
"filename": "xray-uploader-2.6.1.tar.gz",
"has_sig": false,
"md5_digest": "aceffbb3a34fd09fad5218ecf0594137",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 4245,
"upload_time": "2024-03-12T02:23:18",
"upload_time_iso_8601": "2024-03-12T02:23:18.865764Z",
"url": "https://files.pythonhosted.org/packages/b6/94/60843db7f0d476cb927a78995526a77d0f5f844f99d48037328dfc8a1081/xray-uploader-2.6.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-12 02:23:18",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "xray-uploader"
}