0
0
Postmantesting~10 mins

Response time benchmarking in Postman - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test sends a request to an API endpoint and checks if the response time is within an acceptable limit (less than 500 milliseconds). It verifies the API performance meets the expected speed.

Test Code - Postman
Postman
pm.test("Response time is less than 500ms", function () {
    pm.expect(pm.response.responseTime).to.be.below(500);
});
Execution Trace - 3 Steps
StepActionSystem StateAssertionResult
1Send HTTP GET request to the API endpointPostman sends the request and waits for the response-PASS
2Receive response from the APIResponse received with status 200 and response time recorded-PASS
3Check if response time is less than 500 millisecondsResponse time is measured (e.g., 320ms)pm.expect(pm.response.responseTime).to.be.below(500);PASS
Failure Scenario
Failing Condition: Response time is 500 milliseconds or more
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test verify in this response time benchmarking?
AThe response status code is 404
BThe response body contains a specific value
CThe response time is less than 500 milliseconds
DThe request method is POST
Key Result
Always include response time assertions in API tests to ensure performance standards are met and users get fast responses.