postman api testing code example

Example 1: is postman manual testing tool

You can do full automation of your api test directly within the postman.
Create collection and folders to organize your requests.
Add environment variables to run the collection against different env
Add assertions in the test tab (lots of sinippets are available)
Run your collections using Collection Runner of Postman
select repetition count
add external files

Example 2: how to test response in postman

Basicall we are checking response body
to verify if request matches with response.
In the response we are verifying
(body, status code, header, response time,
 test structure of json against the given jsonSchema)

Tags:

Misc Example