Skip to main content

Qase TestOps API V1 client for Python

Project description

qase-api-client

Qase TestOps API v1 Specification.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Generator version: 7.15.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://qase.io

Requirements

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install qase-api-client

(you may need to run pip with root permission: sudo pip install qase-api-client)

Then import the package:

import qase.api_client_v1

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import qase.api_client_v1

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import qase.api_client_v1
from qase.api_client_v1.rest import ApiException
from pprint import pprint
import certifi

# Defining the host is optional and defaults to https://api.qase.io/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = qase.api_client_v1.Configuration(
    host = "https://api.qase.io/v1"
)

configuration.ssl_ca_cert = certifi.where()

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: TokenAuth
configuration.api_key['TokenAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['TokenAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with qase.api_client_v1.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = qase.api_client_v1.AttachmentsApi(api_client)
    hash = 'hash_example' # str | Hash.

    try:
        # Remove attachment by Hash
        api_response = api_instance.delete_attachment(hash)
        print("The response of AttachmentsApi->delete_attachment:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AttachmentsApi->delete_attachment: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.qase.io/v1

Class Method HTTP request Description
AttachmentsApi delete_attachment DELETE /attachment/{hash} Remove attachment by Hash
AttachmentsApi get_attachment GET /attachment/{hash} Get attachment by Hash
AttachmentsApi get_attachments GET /attachment Get all attachments
AttachmentsApi upload_attachment POST /attachment/{code} Upload attachment
AuthorsApi get_author GET /author/{id} Get a specific author
AuthorsApi get_authors GET /author Get all authors
CasesApi bulk POST /case/{code}/bulk Create test cases in bulk
CasesApi case_attach_external_issue POST /case/{code}/external-issue/attach Attach the external issues to the test cases
CasesApi case_detach_external_issue POST /case/{code}/external-issue/detach Detach the external issues from the test cases
CasesApi create_case POST /case/{code} Create a new test case
CasesApi delete_case DELETE /case/{code}/{id} Delete test case
CasesApi get_case GET /case/{code}/{id} Get a specific test case
CasesApi get_cases GET /case/{code} Get all test cases
CasesApi update_case PATCH /case/{code}/{id} Update test case
ConfigurationsApi create_configuration POST /configuration/{code} Create a new configuration in a particular group.
ConfigurationsApi create_configuration_group POST /configuration/{code}/group Create a new configuration group.
ConfigurationsApi get_configurations GET /configuration/{code} Get all configuration groups with configurations.
CustomFieldsApi create_custom_field POST /custom_field Create new Custom Field
CustomFieldsApi delete_custom_field DELETE /custom_field/{id} Delete Custom Field by id
CustomFieldsApi get_custom_field GET /custom_field/{id} Get Custom Field by id
CustomFieldsApi get_custom_fields GET /custom_field Get all Custom Fields
CustomFieldsApi update_custom_field PATCH /custom_field/{id} Update Custom Field by id
DefectsApi create_defect POST /defect/{code} Create a new defect
DefectsApi delete_defect DELETE /defect/{code}/{id} Delete defect
DefectsApi get_defect GET /defect/{code}/{id} Get a specific defect
DefectsApi get_defects GET /defect/{code} Get all defects
DefectsApi resolve_defect PATCH /defect/{code}/resolve/{id} Resolve a specific defect
DefectsApi update_defect PATCH /defect/{code}/{id} Update defect
DefectsApi update_defect_status PATCH /defect/{code}/status/{id} Update a specific defect status
EnvironmentsApi create_environment POST /environment/{code} Create a new environment
EnvironmentsApi delete_environment DELETE /environment/{code}/{id} Delete environment
EnvironmentsApi get_environment GET /environment/{code}/{id} Get a specific environment
EnvironmentsApi get_environments GET /environment/{code} Get all environments
EnvironmentsApi update_environment PATCH /environment/{code}/{id} Update environment
MilestonesApi create_milestone POST /milestone/{code} Create a new milestone
MilestonesApi delete_milestone DELETE /milestone/{code}/{id} Delete milestone
MilestonesApi get_milestone GET /milestone/{code}/{id} Get a specific milestone
MilestonesApi get_milestones GET /milestone/{code} Get all milestones
MilestonesApi update_milestone PATCH /milestone/{code}/{id} Update milestone
PlansApi create_plan POST /plan/{code} Create a new plan
PlansApi delete_plan DELETE /plan/{code}/{id} Delete plan
PlansApi get_plan GET /plan/{code}/{id} Get a specific plan
PlansApi get_plans GET /plan/{code} Get all plans
PlansApi update_plan PATCH /plan/{code}/{id} Update plan
ProjectsApi create_project POST /project Create new project
ProjectsApi delete_project DELETE /project/{code} Delete Project by code
ProjectsApi get_project GET /project/{code} Get Project by code
ProjectsApi get_projects GET /project Get All Projects
ProjectsApi grant_access_to_project POST /project/{code}/access Grant access to project by code
ProjectsApi revoke_access_to_project DELETE /project/{code}/access Revoke access to project by code
ResultsApi create_result POST /result/{code}/{id} Create test run result
ResultsApi create_result_bulk POST /result/{code}/{id}/bulk Bulk create test run result
ResultsApi delete_result DELETE /result/{code}/{id}/{hash} Delete test run result
ResultsApi get_result GET /result/{code}/{hash} Get test run result by code
ResultsApi get_results GET /result/{code} Get all test run results
ResultsApi update_result PATCH /result/{code}/{id}/{hash} Update test run result
RunsApi complete_run POST /run/{code}/{id}/complete Complete a specific run
RunsApi create_run POST /run/{code} Create a new run
RunsApi delete_run DELETE /run/{code}/{id} Delete run
RunsApi get_run GET /run/{code}/{id} Get a specific run
RunsApi get_runs GET /run/{code} Get all runs
RunsApi update_run_publicity PATCH /run/{code}/{id}/public Update publicity of a specific run
SearchApi search GET /search Search entities by Qase Query Language (QQL)
SharedStepsApi create_shared_step POST /shared_step/{code} Create a new shared step
SharedStepsApi delete_shared_step DELETE /shared_step/{code}/{hash} Delete shared step
SharedStepsApi get_shared_step GET /shared_step/{code}/{hash} Get a specific shared step
SharedStepsApi get_shared_steps GET /shared_step/{code} Get all shared steps
SharedStepsApi update_shared_step PATCH /shared_step/{code}/{hash} Update shared step
SuitesApi create_suite POST /suite/{code} Create a new test suite
SuitesApi delete_suite DELETE /suite/{code}/{id} Delete test suite
SuitesApi get_suite GET /suite/{code}/{id} Get a specific test suite
SuitesApi get_suites GET /suite/{code} Get all test suites
SuitesApi update_suite PATCH /suite/{code}/{id} Update test suite
SystemFieldsApi get_system_fields GET /system_field Get all System Fields

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

TokenAuth

  • Type: API key
  • API key parameter name: Token
  • Location: HTTP header

Author

support@qase.io

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

qase_api_client-2.0.1.tar.gz (134.9 kB view details)

Uploaded Source

Built Distribution

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

qase_api_client-2.0.1-py3-none-any.whl (341.3 kB view details)

Uploaded Python 3

File details

Details for the file qase_api_client-2.0.1.tar.gz.

File metadata

  • Download URL: qase_api_client-2.0.1.tar.gz
  • Upload date:
  • Size: 134.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qase_api_client-2.0.1.tar.gz
Algorithm Hash digest
SHA256 005487c67e3354298d755c287c7335aadd558629b72be384d784f920367d3dfa
MD5 50b11aa10cb7ecf3915003c542e6d3b8
BLAKE2b-256 1d77d98423e9cde08293a12f4799865a10cd976364153a4ee9b339de66f9447a

See more details on using hashes here.

File details

Details for the file qase_api_client-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for qase_api_client-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 590f2a5c9010459c9e1b069653f2d4402e4b31e421c31a06670d2aff791dd26d
MD5 e686ce822f3b27b384a657edee0d338c
BLAKE2b-256 f8c1168d7118671ee261dcb2fd167b2ec7b2e3b112a1e31288261ff684d2fbd5

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