Skip to main content

upload junit or testng format 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 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 .

Project details


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.6.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xray_uploader-2.6.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file xray-uploader-2.6.1.tar.gz.

File metadata

  • Download URL: xray-uploader-2.6.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for xray-uploader-2.6.1.tar.gz
Algorithm Hash digest
SHA256 da9792aed1f15091fa62bfabae987ef2a8e4938fd2b5cea58c125d20f1f9d184
MD5 aceffbb3a34fd09fad5218ecf0594137
BLAKE2b-256 b69460843db7f0d476cb927a78995526a77d0f5f844f99d48037328dfc8a1081

See more details on using hashes here.

File details

Details for the file xray_uploader-2.6.1-py3-none-any.whl.

File metadata

  • Download URL: xray_uploader-2.6.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for xray_uploader-2.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b604885436aac690dfd5c48971d037a6d20dbbac13354b21043d2926399b6fe1
MD5 01e4c3e9868c8f56c01f03da2d2ce25f
BLAKE2b-256 08bbb65e433f2677dcd03d09260e518e8c302bdbe275b703a16336228bd8ed36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page