Automation testing in Postman

 Common API status code:

1. 200 - request was successful

2. 201 - record has been created successfully

3. 204 - no content 

4. 400 - bad request

5. 401 - unauthorised

6. 403 - forbidden

7. 404 - not found

8. 429 - too many request

9. 500 - server error

10. 501 - internal server error

11. 503 - time out

-------------

In postman, we can use the snippet packages written in javascript such as below:



Below is a sample of how to run an automation test in Postman for API testing

This will be checking the specific value of a variable


Creating, storing and using a variable in Postman



storing in an environment


invoking the variable in a different API (must select the correct environment)


Checking the first returned id data:



If need to run the full collection:



Test result:



Comments

Popular posts from this blog

Specflow, Gherkin

DevOps, Github

Test Automation tool, VS, selenium, Github, Gitbash