Postman_API_Testing_Interview_Questions
Postman_API_Testing_Interview_Questions
1. Postman Basics
A: Postman is a popular API testing tool that allows users to design, test, and document APIs
Q: What are the different HTTP methods (GET, POST, PUT, DELETE, etc.), and when are they used?
Q: Explain the difference between Params, Headers, and Body in a Postman request.
Body: Holds the data to be sent to the API (e.g., JSON payload).
Bearer Tokens. You can set these under the 'Authorization' tab in the request settings.
A: A Postman Collection is a group of API requests organized into folders. It is used to manage
2. Practical Usage
A: Add key-value pairs in the 'Params' tab. Postman appends them to the API URL automatically.
Q: What steps would you take to test an API that requires a token?
Q: How can you validate the response code, headers, and body in Postman?
A: Postman provides response validation options in the 'Tests' tab. You can write JavaScript
A: Environment variables are specific to an environment (e.g., dev, staging). Global variables are
A: A pre-request script is JavaScript code executed before the request. It is used to set dynamic
A: Postman Collections allow you to chain requests by using variables and test scripts. You can