Behave JIRA XRAY results uploader
Project description
behave-xray
Installation
pip install -U behave-xray
or from the source:
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!
@jira.testcase('JIRA-2')
Scenario Outline: Add two numbers in Calc
Given Calculator is open
When I add <a> and <b>
Then result is <result>
Examples: Sum
| a | b | result |
| 3 | 4 | 7 |
| 6 | 10 | 18 |
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
Release history Release notifications | RSS feed
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
Close
Hashes for behave_xray-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68c5cc5d0d7d4100926807507ae52de2fcaa89ff098b364ed3169f2e0bd7e3a7 |
|
MD5 | 9e39a720276967e1ea7d7c8cb418818e |
|
BLAKE2b-256 | f3c9f8620d74d1d472b91e63a71606c85afcc771afc2d124df901d16b10b4caa |