Xray-Bot
Synchronize atlassian xray test case tickets with your test code and upload the test results.
Install
$ pip install xray-bot
Example
from xraybot import XrayBot, TestEntity, TestResultEntity, XrayResultType
xray_bot = XrayBot("http://jira_server", "username", "pwd", "project_key")
xray_tests = xray_bot.get_xray_tests()
local_tests = [
TestEntity(
unique_identifier="com.foo.bar.TestClass#testFoo",
summary="foo",
description="desc",
req_key="REQ-100",
),
TestEntity(
unique_identifier="com.foo.bar.TestClass#testBar",
summary="Bar",
description="desc",
req_key="REQ-101",
),
]
xray_bot.sync_tests(local_tests)
test_results = [
TestResultEntity(key="KEY-1", result=XrayResultType.PASS),
TestResultEntity(key="KEY-2", result=XrayResultType.FAIL),
]
xray_bot.upload_automation_results("test_plan", "test_execution", test_results)
Development
$ pip install -e ".[dev]"
# test
$ invoke test
# lint
$ invoke lint
# reformat code
$ invoke reformat-code
# install
$ invoke install
Metadata
Release files for xray-bot 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xray_bot-1.0.0.tar.gz | 201.2 kB | Without provenance | Details for xray_bot-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xray_bot-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for xray_bot-1.0.0-py3-none-any.whl |
Total release size: 217.6 kB
Release files / xray_bot-1.0.0.tar.gz
| Download URL | xray_bot-1.0.0.tar.gz |
|---|---|
| Size | 201.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92a6d7b37356d2e7a931d2dee47db4533a39a56bc9f3c2c0201f92f41f74ec01
|
|
BLAKE2b-256 checksum How to use checksums |
3ac5e9c06d5a1cb84023faf38f838d255e5a7ad728fa82a857a93aebd3e95150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / xray_bot-1.0.0-py3-none-any.whl
| Download URL | xray_bot-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b3ff1aa6b90716fd45d1797f0838cb8fb98a829e127193054262da56107b68a
|
|
BLAKE2b-256 checksum How to use checksums |
1fdbd89e746cb748eef581b802ee49fc0b5737f500948891894212696f5bfd54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for xray-bot 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.