How can we define the range for one of the input parameters while generating API tests #198
Answered
by
kerrykimbrough
soumyadipmitralpl
asked this question in
Q&A
-
Hi Kerry, While generating API tests from an openAPI spec, can you kindly show us an example of how the input xml file will look like, where we will define the range of values that one of the input parameters can have? |
Beta Was this translation helpful? Give feedback.
Answered by
kerrykimbrough
Jul 16, 2021
Replies: 1 comment 5 replies
-
All of the information about input parameters must come from the OpenAPI definition. For example, if you have an input parameter that must be an integer between 0 and 100, you can define its value range like this: ...
"parameters": [
{
"name": "myParam",
"schema": {
"type": "integer",
"minimum": 0,
"maximum": 100
}
}
]
... |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
kerrykimbrough
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All of the information about input parameters must come from the OpenAPI definition. For example, if you have an input parameter that must be an integer between 0 and 100, you can define its value range like this: