Skip to main content

python package providing functionality for Jira Test Management (tm4j)

Project description

adaptavist

This python package provides functionality for Jira Test Management (tm4j).

Table of Contents

Installation

To install adaptavist, you can use the following command(s):

python -m pip install adaptavist

To uninstall adaptavist, you can use the following command:

python -m pip uninstall adaptavist

Getting Started

adaptavist is using the REST API of Adaptavist Test Management for Jira Server (see https://docs.adaptavist.io/tm4j/server/api/) and Jira's internal REST API, both with HTTP Basic authentication.

In order to access Adaptavist/Jira, valid credentials are necessary. In addition, getpass.getuser().lower() must be a known Jira user as well.

Examples and Features

General Workflow

 from adaptavist import Adaptavist

 # create a new instance
 atm = Adaptavist(jira_server, jira_username, jira_password)

 # create a test plan
 test_plan_key = atm.create_test_plan(project_key="TEST", test_plan_name="my test plan")

 # create a test cycle (formerly test run) with a set of test cases and add it to test plan
 test_run_key = atm.create_test_run(project_key="TEST", test_run_name="my test cycle", test_cases=["TEST-T1"], test_plan_key=test_plan_key)

 # as test cycle creation also creates/initializes test results, we can just edit these
 atm.edit_test_script_status(test_run_key=test_run_key, test_case_key="TEST-T1", step=1, status="Pass")

 # (optional) edit/overwrite the overall execution status of the test case (by default this is done automatically when editing status of a single step)
 atm.edit_test_result_status(test_run_key=test_run_key, test_case_key="TEST-T1", status="Pass")

There's much more inside (like adding attachments, creating folders and environments, cloning test cycles). Additional code examples will follow.

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

adaptavist-2.3.2.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

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

adaptavist-2.3.2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file adaptavist-2.3.2.tar.gz.

File metadata

  • Download URL: adaptavist-2.3.2.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for adaptavist-2.3.2.tar.gz
Algorithm Hash digest
SHA256 9ac98eb93b4b95223b7b6429c8e796f96f18d410f7b6b1b906f6ece0d55d7f03
MD5 ed65242944beb8fc3976c86b1ad3a329
BLAKE2b-256 9a9dbf4a0595cb476e7b73acc8c58a9dcfff256cde54c21d8aab1f308e73ef09

See more details on using hashes here.

File details

Details for the file adaptavist-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: adaptavist-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.17

File hashes

Hashes for adaptavist-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 132f2da0789bb55ccd182bd4c89f2672cfb6e10fdadef3671e1de73133e335e6
MD5 06eb4e0c7cf18decff782e8827929314
BLAKE2b-256 a858a81e12a36e8f2a290ca60b4368926b69cac0acfb4e606ce026f7cc86dbf5

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