Skip to content

Test Cases Created From OpenAPI spec not adhering to specifications #200

Discussion options

You must be logged in to vote

This problem happens when TFOA generates inconsistent test cases for null vs. empty values -- see issue #201.

In the case shown above, you can work around the problem by adding "minItems": 1 to the schema for StudentIDs. This tells TFOA that an empty array (which in this case looks that same as a null array) is not a valid value. This is not a perfect solution, because it will also result in redundant failure test cases -- one for an invalid null value and another for an invalid empty value.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@kerrykimbrough
Comment options

@kerrykimbrough
Comment options

@AnirudhChaudhary
Comment options

@kerrykimbrough
Comment options

@AnirudhChaudhary
Comment options

Comment options

You must be logged in to vote
2 replies
@kerrykimbrough
Comment options

@kerrykimbrough
Comment options

Answer selected by kerrykimbrough
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants