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.2.tar.gz (8.5 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for openapi_qase_suite_generator-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4c31cdff7326c66bb6ef6937d7a47cef09cddfbb024c4b884360d3e2761b2992
MD5 703e8670e60a82c8e247a43b66f1dcab
BLAKE2b-256 1a81462ed403b75d37fa148ac0f7a874d0b3977a6ab787c7ecc7652adf24dbf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for openapi_qase_suite_generator-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d76bde495c94ce3007bb580fbac7a5a48bf90cda3e11417413c50b3426520f3e
MD5 13b2a94629acc062713ef2853ae7de97
BLAKE2b-256 1f21df852b4277c94a9eb27136c7444d104d56e639a3bfd3d18475c34732e5f4

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