Api Testing with Postman
Tool: Postman
Writing test scripts
Tool: Postman
Writing test scripts
Test scripts can use dynamic variables, carry out test assertions on response data, and pass data between requests. In the Tests tab for a request, enter your JavaScript manually or use the Snippets you'll see to the right of the code editor.
Tests execute after the response is received. When you select Send, Postman runs your test script after the response data returns from the API.