How to parameterise certain path elements for any discovered endpoint #1449
-
I have a simple API I am trying to test and would like to use fixed data for all the path parameters. I also want to rely on the auto generation of test cases from the Open API spec. For example, I have this "service"
How can I specify what values to use for param1 and param2 and still take advantage of the auto discovery of endpoints? I essentially want to have a single test case that processes the whole API based on a spec I load. Below is an example code of how I would like to run this with pytest.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I have worked around this by checking if there are any path elements in the case and replacing them with fixed values as and when. |
Beta Was this translation helpful? Give feedback.
I have worked around this by checking if there are any path elements in the case and replacing them with fixed values as and when.