Qase TestOps API client for Python
Project description
qaseio
Qase TestOps API Specification.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 4.0.1
- 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 qaseio
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 qaseio
Tests
Execute pytest
to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import qaseio
from qaseio.rest import ApiException
from pprint import pprint
# 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 = qaseio.Configuration(
host = "https://api.qase.io/v1"
)
# 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 qaseio.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = qaseio.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
- Attachment
- AttachmentGet
- AttachmentHash
- AttachmentListResponse
- AttachmentListResponseAllOfResult
- AttachmentResponse
- AttachmentUploadsResponse
- Attachmentupload
- Author
- AuthorListResponse
- AuthorListResponseAllOfResult
- AuthorResponse
- BaseResponse
- Bulk200Response
- Bulk200ResponseAllOfResult
- Configuration
- ConfigurationCreate
- ConfigurationGroup
- ConfigurationGroupCreate
- ConfigurationListResponse
- ConfigurationListResponseAllOfResult
- CustomField
- CustomFieldCreate
- CustomFieldCreateValueInner
- CustomFieldListResponse
- CustomFieldResponse
- CustomFieldUpdate
- CustomFieldValue
- CustomFieldsResponse
- CustomFieldsResponseAllOfResult
- Defect
- DefectCreate
- DefectListResponse
- DefectListResponseAllOfResult
- DefectQuery
- DefectResponse
- DefectStatus
- DefectUpdate
- Environment
- EnvironmentCreate
- EnvironmentListResponse
- EnvironmentListResponseAllOfResult
- EnvironmentResponse
- EnvironmentUpdate
- ExternalIssue
- ExternalIssueIssuesInner
- HashResponse
- HashResponseAllOfResult
- IdResponse
- IdResponseAllOfResult
- Milestone
- MilestoneCreate
- MilestoneListResponse
- MilestoneListResponseAllOfResult
- MilestoneResponse
- MilestoneUpdate
- Plan
- PlanCreate
- PlanDetailed
- PlanDetailedAllOfCases
- PlanListResponse
- PlanListResponseAllOfResult
- PlanQuery
- PlanResponse
- PlanUpdate
- Project
- ProjectAccess
- ProjectCodeResponse
- ProjectCodeResponseAllOfResult
- ProjectCounts
- ProjectCountsDefects
- ProjectCountsRuns
- ProjectCreate
- ProjectListResponse
- ProjectListResponseAllOfResult
- ProjectResponse
- QqlDefect
- QqlPlan
- QqlTestCase
- Requirement
- Response
- Result
- ResultCreate
- ResultCreateBulk
- ResultCreateCase
- ResultCreateResponse
- ResultCreateResponseAllOfResult
- ResultListResponse
- ResultListResponseAllOfResult
- ResultResponse
- ResultUpdate
- ResultcreateBulk
- Run
- RunCreate
- RunEnvironment
- RunListResponse
- RunListResponseAllOfResult
- RunMilestone
- RunPublic
- RunPublicResponse
- RunPublicResponseAllOfResult
- RunResponse
- RunStats
- SearchResponse
- SearchResponseAllOfResult
- SearchResponseAllOfResultEntities
- SharedStep
- SharedStepContent
- SharedStepContentCreate
- SharedStepCreate
- SharedStepListResponse
- SharedStepListResponseAllOfResult
- SharedStepResponse
- SharedStepUpdate
- Suite
- SuiteCreate
- SuiteDelete
- SuiteListResponse
- SuiteListResponseAllOfResult
- SuiteResponse
- SuiteUpdate
- SystemField
- SystemFieldListResponse
- SystemFieldOption
- TagValue
- TestCase
- TestCaseCreate
- TestCaseExternalIssues
- TestCaseExternalIssuesLinksInner
- TestCaseListResponse
- TestCaseListResponseAllOfResult
- TestCaseParams
- TestCaseQuery
- TestCaseResponse
- TestCaseUpdate
- TestCasebulk
- TestCasebulkCasesInner
- TestCaseexternalIssues
- TestStep
- TestStepCreate
- TestStepResult
- TestStepResultCreate
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 qaseio-4.0.2.tar.gz
.
File metadata
- Download URL: qaseio-4.0.2.tar.gz
- Upload date:
- Size: 91.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac65d260da79bae5b12bdf9cd49ea9d096013763bf8c1278368fd5d1de9eccf9 |
|
MD5 | 55df5157276ab27336e7e893a84b21b1 |
|
BLAKE2b-256 | f6316d87af2e92cb8b5123b7f6ce160d26239baef8134dc74d353cd4205f7002 |
File details
Details for the file qaseio-4.0.2-py3-none-any.whl
.
File metadata
- Download URL: qaseio-4.0.2-py3-none-any.whl
- Upload date:
- Size: 279.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d51dd1eed9bc6a6a7e8c611d19c841e56bc28f3fd81b67f37bfacb9e9452f25 |
|
MD5 | b3100da2f3609c95073fa23251974021 |
|
BLAKE2b-256 | d653aa9a95696c5dfb79bd63d0b5d3e8a12053826a4e55e563d166dd03248fbe |