Custom qase client
Project description
custom-qase-client
This is an unofficial client QASE
Official client: https://github.com/qase-tms/qase-python
API QASE: https://developers.qase.io/reference/
Guide: https://developers.qase.io/docs
Installation
You can install via pip
$ pip install cqase-client
or with poetry
$ poetry add -D cqase-client
How to work
First, get api token from page https://app.qase.io/user/api/token (See guide)
For body and params use dict type, like in requests library
from cqase.client import QaseClient
client = QaseClient(api_token='YOUR_API_TOKEN')
code = 'CODE' # project code
# create project
body = {'title': f'Title test project', 'code': code, 'access': 'all'}
client.projects.create(body=body)
# create suite
body = {"title": "test suit"}
client.suites.create(code=code, body=body)
# create case
body = {"title": "test case"}
client.cases.create(code=code, body=body)
# create test run
body = {"title": "test run"}
client.runs.create(code=code, body=body)
# upload attachment
client.attachments.upload(code, "./cat.jpeg")
# finish test run
client.runs.complete(code=code, uuid=1)
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
cqase-client-0.1.2.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for cqase_client-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 102c906798b4a8aebce65d435647c7699dd7d813a5e030815b76c0f9071ecfc3 |
|
MD5 | 5c83d182ed21c21fc61af6d2f65fdc64 |
|
BLAKE2b-256 | 3c661f2f95d8b8b713a7c6a166e257065953404532dac5f0d0decdb06543b285 |