Schema Validation - Please Help #175
-
Hi, I have tried out tcases project and really like it. It is very professional, and has great functionalities. My Problem Statement:
My Progress:
What I want:
Future Scope:
Can anyone please help me out with this?? @tkruse @kerrykimbrough @callmekungfu |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You're right: Tcases doesn't generate assertions about expected responses to the requests in generated test cases. Tcases doesn't really know anything about what the API does. So there is no way for Tcases to predict what the response to any request should be, much less for requests with randomly-generated inputs. |
Beta Was this translation helpful? Give feedback.
-
Yes, you can do this using Maven to run the Tcases Maven Plugin. Specifically, see the tcases:api-test goal. This goal will generate tests for all OpenAPI docs in a directory tree. Various options control the input directory and which API doc files to process. |
Beta Was this translation helpful? Give feedback.
You're right: Tcases doesn't generate assertions about expected responses to the requests in generated test cases. Tcases doesn't really know anything about what the API does. So there is no way for Tcases to predict what the response to any request should be, much less for requests with randomly-generated inputs.