Skip to main content

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

openapi_qase_suite_generator-1.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openapi_qase_suite_generator-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file openapi_qase_suite_generator-1.0.1.tar.gz.

File metadata

File hashes

Hashes for openapi_qase_suite_generator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 70593e8146258f1c81050434fe49908dc843a224d48ff29dfb981220aa2543be
MD5 d1ffaabc9e5ab3e3f35b9bc039f2f160
BLAKE2b-256 d76a1f8cbe94f89f37940de8894c86111d453dddc7347406174e45e8f857d52c

See more details on using hashes here.

File details

Details for the file openapi_qase_suite_generator-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openapi_qase_suite_generator-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc5c9a6ec390a3dc82e2a0f7a3c44ede7686353d5ce4ea8818f74cbce95adaa5
MD5 a6497b4ba703cd4a52ff8aa72057506c
BLAKE2b-256 4b39966f894f2076cbae00b1083218d5dfbcb9eb2fe0dfa2c017ecaca1622b5e

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