Postman API – Tips and Tricks
I have seen many people using POSTMAN tools but very few of them know how to exactly use all the features of POSTMAN application. So, in this article, I am going to share a few tips/tricks which can be really helpful in our API testing. Set Environment Variables Let’s assume we have an endpoint to get some data after authenticating yourself bypassing username/password. Now, you have to test this endpoint which is deployed on multiple environments like a local machine, test environment and on SIT environment as well. Also, the credential is different for each environment. So, how are we going to test it? Most of the time, I have seen that people create one-one requests for each environment or create one request and then modify the existing username/password and hostname to point to a different environment. The Simple Solution is to set changing parameters as an Environment variable and switch environment to test for different regions. E.g. http://<HOSTNAME:POST>/t...