Skip to main content

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)

Source distribution for xray-bot 1.0.0
File Size Uploaded
xray_bot-1.0.0.tar.gz 201.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xray-bot 1.0.0
File Interpreter ABI Platform
xray_bot-1.0.0-py3-none-any.whl Python 3 none any Details

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
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page