Skip to main content

upload test results 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
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.

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

Uploaded Source

Built Distribution

xray_uploader-2.7.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file xray_uploader-2.7.0.tar.gz.

File metadata

  • Download URL: xray_uploader-2.7.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for xray_uploader-2.7.0.tar.gz
Algorithm Hash digest
SHA256 bde4e0e77d9636e4a3c6977892ec5af54a94609249695c4107bf196bbe479364
MD5 2d7645f4787a3dfab45c7e7be0f60208
BLAKE2b-256 1787a9163ddfea9e022a2bdaf9cbfbd49a83a4667a0ee5de6a9758a92a32fa42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xray_uploader-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for xray_uploader-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51bef9c3886be92bb2ff52c9c569a69a7820a71a7092542f8bf19d24d1362957
MD5 8503cf7c5554ad3b872e4ab68ee98c8b
BLAKE2b-256 a5a916854265495a57b8b144ddf5c9ede0f5a6c0d52421c348535a6857d31102

See more details on using hashes here.

Supported by

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