Skip to main content

Qase TestOps API V2 client for Python

Project description

qase

Qase TestOps API v2 Specification.

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

  • API version: 2.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-v2-client

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

Then import the package:

import qase.api_client_v2

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_v2

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

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

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

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_v2.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = qase.api_client_v2.ResultsApi(api_client)
    project_code = 'project_code_example'  # str | 
    run_id = 56  # int | 
    result_create = qase.api_client_v2.ResultCreate()  # ResultCreate | 

    try:
        # (Beta) Create test run result
        api_instance.create_result_v2(project_code, run_id, result_create)
    except ApiException as e:
        print("Exception when calling ResultsApi->create_result_v2: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
ResultsApi create_result_v2 POST /{project_code}/run/{run_id}/result (Beta) Create test run result
ResultsApi create_results_v2 POST /{project_code}/run/{run_id}/results (Beta) Bulk create test run result
CustomFieldsApi get_custom_field_v2 GET /custom-fields/{id} Get custom field
CustomFieldsApi get_custom_fields_v2 GET /custom-fields Get custom 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_v2_client-2.0.7.tar.gz (33.6 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_v2_client-2.0.7-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file qase_api_v2_client-2.0.7.tar.gz.

File metadata

  • Download URL: qase_api_v2_client-2.0.7.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qase_api_v2_client-2.0.7.tar.gz
Algorithm Hash digest
SHA256 e5717c176725d0f5042543555f17af90b79ad4c9e48033e502bbbb40c0fb780a
MD5 14e529a57921db1c6c11933fc1380308
BLAKE2b-256 714c91a4b82519a095911e0e16a334ebfb45852953bdb74c0043cda883e6bb82

See more details on using hashes here.

File details

Details for the file qase_api_v2_client-2.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for qase_api_v2_client-2.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a348a8d38a86b3ace017c4ce5f532d45f7db09f984a613232025b89e1f91acd7
MD5 956ead8249929e5085009c2fabad09eb
BLAKE2b-256 9bd8e9f9bd4b6bff48752723fb553f0b3e89b29b9195f99417d37d4f254ef810

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