Use the Visual Test Composer to generate tests via a handy GUI. Just provide a valid JSON
response from the API you wish to test, and the tool will render a form to help you generate tests/chai assertions. As
you edit the fields within the form, the tests/chai assertions will be dynamically updated. Once you've settled upon your
testing logic, copy and paste the generated tests/chai assertions into Postman!
What is Chai?
Chai
or more correctly, the Chai Assertion Library is a javascript package focusing on enabling users to author
robust tests using Behavior-Driven-Development and/or Test-Driven-Development practices. If you are not familiar
with Chai, it is quite ubiquitous within the world-wide API ecosystem and is natively included in the Postman testing
sandbox (no need to overcome difficulties with importing external libraries)
How to use this tool?
1. Provide a response from the API you wish to test in the left-most pane.
2. Watch as a graphical form and tests are generated before your eyes.
3. Tweak the form to modify the generated tests.
4. When finished, copy the chai assertions to Postman
Bugs/Issues/Feedback
The source code for this project is available on
Github. Please raise an issue there or feel free to submit a
PR. Support for this tool is provided on a best-effort basis. *Importantly* this tool is not officially supported by Postman Inc.
and was written by members of our Solutions team to enable and support our customers as much as we are able, but does not have the
weight of the entire Postman organization behind it
Privacy
All computation/generation for the Visual Test Composer is performed in client-side javascript and no JSON,
form information, or chai assertions leave the web browser unless said action is explicitly performed by you.