Skip to content

Create test wrapper for each status code when generating spreadsheet from OAS #43

Description

@kannangce

With 0.2 release, we have introduced a concept called test api wrapper, which helps to pass specific set of parameters to test apis and avoid duplicating tests api definitions.

This would typically be helpful when the same API definition is expecting a different response/response code based on the context.

When the same API returns a different set of status code, usage of test api wrapper would be apparent.

During generation of the spread sheet, create a test api wrapper instance for each status code that the api supports. For the equivalent entry in the test api definition,

  • Parameterize the response status.
  • Parameterize the expected response body.
  • Pass both from the respective test_api wrapper entry with the values from the OAS (Open API Spec)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions