Describe the check, get the test
Writing assertions by hand is slow and easy to get subtly wrong — the wrong field name, a missed nesting level, an assertion that passes for the wrong reason. The Test Authoring Agent writes them from the response you actually received.
Send the request first
The agent needs a real response, so the flow starts with sending the request. It then reads the response body, your latest request, and any existing post-response script, and writes tests that match what the API genuinely returns.
Describe what to validate
Open the Scripts → Post-response tab and click Generate tests. Describe what should be validated:
- “Check if the user email is valid”
- “Test status and pagination fields”
- “Add schema tests”
The generated tests land in the post-response script as ordinary JavaScript. They are yours to read, edit and extend.
Refine without losing your own tests
If the request already has a post-response script, the button becomes Improve tests. The agent takes the existing script into account and changes only what needs changing, so hand-written assertions are not thrown away.






