[BUG] Examples for path parameters don't generate test cases #1729
Labels
Core: Data Generation
Generating test data
Difficulty: Intermediate
Requires some experience
Priority: Medium
Planned for regular releases
Specification: OpenAPI
Specific to OpenAPI
Type: Feature
New functionalities or enhancements
Milestone
Checklist
Describe the bug
There are no test cases generated from "examples" for path parameters in Phase explicit (run with pytest). The values from enum are used only for test cases generated for the requestBody "example"/"examples" (if present). The "example" works fine, but you can have only one test case from that.
To Reproduce
OpenAPI yaml example:
For the example above, there is only 1 test case generated for the Phase explicit:
Case(path_parameters={'filename': 'test.mp4', 'dir': 'new'})
and it is the one from "example" keyword. All "examples" are ignored.Expected behavior
I expect the test cases to be generated from "examples" too.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: