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
- Package version: 1.0.0
- Generator version: 7.4.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://qase.io
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
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
# 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"
)
# 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 |
Documentation For Models
- BaseErrorFieldResponse
- BaseErrorFieldResponseErrorFieldsInner
- BaseErrorResponse
- CreateResultV2422Response
- CreateResultsRequestV2
- RelationSuite
- RelationSuiteItem
- ResultCreate
- ResultExecution
- ResultRelations
- ResultStep
- ResultStepData
- ResultStepExecution
- ResultStepStatus
- ResultStepsType
Documentation For Authorization
Authentication schemes defined for the API:
TokenAuth
- Type: API key
- API key parameter name: Token
- Location: HTTP header
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qase_api_v2_client-1.1.0.tar.gz
.
File metadata
- Download URL: qase_api_v2_client-1.1.0.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495613c7a6b87082caec8c1fcafa8cbae5613341f8583c2ed018928d8b26f9de |
|
MD5 | dcf6b591ebfd19c6e0446e3a2233193a |
|
BLAKE2b-256 | 9b19eed292b53b3e55dd451706735521ae79585b524987e3ebd2540f4191844a |
File details
Details for the file qase_api_v2_client-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: qase_api_v2_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 44.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5607bae16e98db3967ed6d6725c5d40975a9398d6ef2abfe9867b3b91a713c0b |
|
MD5 | c95bd05a3e74dff5984740b01bb94850 |
|
BLAKE2b-256 | b4efe861777574acd91c634d397ad3558c4a39545b3962d485f5f6220edf2772 |