How to generate inputs using existing data? #176
kerrykimbrough
started this conversation in
General
Replies: 2 comments
-
You may be looking for a way to automatically generate test assertions about the expected responses. But that's not possible -- see discussion #175 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@siddhant0704: If you want API tests that use specific values for request inputs, you can generate tests from the examples defined in the OpenAPI definition. For more details, see these tips. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Originally created by @siddhant0704
Hello @kerrykimbrough, I am working on generating and executing test cases for API. I wanted to know that instead of generating random data for testing the API, can we take into consideration the data which is similar to that already existing in the database? Because randomly generated data will only check the data types and the status code and generate the test cases. So is there a provision for generating data similar to that present in the database and use it for testing purposes?
Beta Was this translation helpful? Give feedback.
All reactions