Which of the following is a true limitation of Postman mock servers regarding response delays?
Think about whether Postman mock servers can mimic slow network responses by default.
Postman mock servers respond immediately and do not support simulating network latency or response delays. This is a limitation when testing timeout or slow response scenarios.
What is a key limitation of Postman mock servers related to data persistence?
Consider if mock servers keep track of previous requests or responses.
Postman mock servers are stateless and do not persist request or response data. Each request is handled independently without memory of previous calls.
Given these two mock responses configured in Postman for the same endpoint but different query parameters, what response will the mock server return when called with ?type=admin?
1. Response A: matches requests with query param type=admin, returns status 200 with body {"role": "admin"} 2. Response B: matches requests with query param type=user, returns status 200 with body {"role": "user"}
Think about how Postman mock servers match requests to responses based on query parameters.
Postman mock servers match the request query parameters exactly to the configured mock response. Since the request has type=admin, it matches Response A and returns its body.
You want to write a test in Postman to assert that the mock server response includes the header Content-Type: application/json. Which assertion code snippet is correct?
pm.test("Content-Type is application/json", () => {
// Your assertion here
});Check the Postman API for how to get header values from the response.
The correct way to get a header value in Postman tests is using pm.response.headers.get('Header-Name'). Option D uses this correctly.
Which statement best describes a limitation of Postman mock servers when testing authentication flows that require dynamic token generation and validation?
Consider whether mock servers can run code or logic on the server side.
Postman mock servers only return predefined static responses. They do not run server-side code or logic, so they cannot generate or validate tokens dynamically.