Skip to main content

Behave JIRA XRAY results uploader

Project description

behave-xray

PyPi Build Status

Installation

pip install -U behave-xray

or

python setup.py install

Usage

Add JIRA tags to Gherkin scenario:

# --FILE: tutorial.feature 
@jira.test_plan('JIRA-3')
Feature: showing off behave

  @jira.testcase('JIRA-1')
  Scenario: run a simple test
     Given we have behave installed
      When we implement a test
      Then behave will test it for us!

Set system environments (Basic authentication) for Xray Server/DC:

export XRAY_API_BASE_URL=<jira URL>
export XRAY_API_USER=<jria username>
export XRAY_API_PASSWORD=<user password>

Run tests:

behave -f behave_xray:XrayFormatter

Set system environments (Bearer authentication) for Xray Cloud:

export XRAY_API_BASE_URL=<jira URL>
export XRAY_CLIENT_ID=<Xray client id>
export XRAY_CLIENT_SECRET=<Xray client secret>

Run tests:

behave -f behave_xray:XrayCloudFormatter

You can register formatter in behave.ini:

# -- FILE: behave.ini
[behave.formatters]
xray = behave_xray:XrayCloudFormatter

and use with shorter name:

behave --f xray

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

behave_xray-0.1.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file behave_xray-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: behave_xray-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

File hashes

Hashes for behave_xray-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 487161ec165daf8316cfbbbc8fbb7d44fdd03e286fbcf190709df19e2e5e56c8
MD5 c710ce61694cf1f37650bf1f757e1330
BLAKE2b-256 01e2d3c650bde82a7c25ec509fd7ba51f4fa3fdc7ce1e581d548d8cafeb0c83f

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