项目作者: devolo

项目描述 :
python package providing functionality for Jira Test Management (tm4j)
高级语言: Python
项目地址: git://github.com/devolo/adaptavist.git
创建时间: 2019-10-31T10:11:28Z
项目社区:https://github.com/devolo/adaptavist

开源协议:MIT License

下载


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):

  1. python -m pip install adaptavist

To uninstall adaptavist, you can use the following command:

  1. 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

  1. from adaptavist import Adaptavist
  2. # create a new instance
  3. atm = Adaptavist(jira_server, jira_username, jira_password)
  4. # create a test plan
  5. test_plan_key = atm.create_test_plan(project_key="TEST", test_plan_name="my test plan")
  6. # create a test cycle (formerly test run) with a set of test cases and add it to test plan
  7. 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)
  8. # as test cycle creation also creates/initializes test results, we can just edit these
  9. atm.edit_test_script_status(test_run_key=test_run_key, test_case_key="TEST-T1", step=1, status="Pass")
  10. # (optional) edit/overwrite the overall execution status of the test case (by default this is done automatically when editing status of a single step)
  11. 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.