Generate Qase test suites from OpenAPI specs
Project description
openapi-qase-suite-generator
This script generates a Qase suite from an OpenAPI spec YAML file. This is useful for keeping the consistency between the API and the test cases. In my company we use Qase for API testing. For every Operation (Endpoint + Method) we create a new Qase suite. Every suite contains testcases for the given operation, whether it is Unit Test or API Test, manual or automated. Consistency naming for the test cases and the Operations is a good practice for maintenance.
For example, the following OpenAPI spec contains 3 operations:
paths:
/api/v1/users:
get:
operationId: ApiV1UsersGet
description: Get all available users
post:
operationId: ApiV1UsersPost
description: Create a new user
/api/v1/users/{id}:
get:
operationId: ApiV1UsersIdGet
description: Get a user by ID
This script will generate 3 suites:
- Suite: ApiV1UsersGet under directory "api", "v1", "users"
- Suite: ApiV1UsersPost under directory "api", "v1", "users"
- Suite: ApiV1UsersIdGet under directory "api", "v1", "users", "{id}"
The tester can add test cases to the generated suites. The script will generate a new Qase suite only if it does not exist yet.
Usage:
openapi_qase_suite_generator \
--api-definition <path-to-openapi-spec> \
--qase-api-token <qase-api-token> \
--qase-project-id <qase-project-id> \
--qase-root-suite-id <qase-root-suite-id>
Where:
- is the path to the OpenAPI spec YAML file
- is the Qase API token
- is the Qase project ID
- is the Qase root suite ID
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openapi_qase_suite_generator-1.0.4.tar.gz.
File metadata
- Download URL: openapi_qase_suite_generator-1.0.4.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed1122520c8b5f427fd9362befffbc7b0274170dff101a3d7bcaf6ed1229a8e
|
|
| MD5 |
5c6a87a428ede9c7b1ce3d066c63d71f
|
|
| BLAKE2b-256 |
1409f3d6ad5113d7da0693654d6acb61ed8a48f2196410504185c474a504fd88
|
File details
Details for the file openapi_qase_suite_generator-1.0.4-py3-none-any.whl.
File metadata
- Download URL: openapi_qase_suite_generator-1.0.4-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d6f2600234815ff513bf192bd55a58e04fd9be59c6e1b1c1c6ff9678e970a4
|
|
| MD5 |
c9b8f3c8da544ad6a604e14c1084ff6f
|
|
| BLAKE2b-256 |
9e8614a8251f115eb0b69039a0e4bd357625007c68f462e8b9deaf7788123024
|