Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kannangce opened this issue May 12, 2022 · 0 comments

Comments

@kannangce
Copy link
Contributor

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant