0
0
Postmantesting~10 mins

Load testing basics (Postman) - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test simulates multiple users sending requests to an API endpoint using Postman to check how the system handles load. It verifies that the API responds successfully under the simulated load.

Test Code - Postman
Postman
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});

// In Postman Collection Runner or Postman Load Testing, set iterations to 50 to simulate load
Execution Trace - 6 Steps
StepActionSystem StateAssertionResult
1Test starts in Postman Collection Runner with 50 iterationsPostman is ready to send requests repeatedly to the API endpoint-PASS
2Postman sends the first API requestAPI server receives the request and processes it-PASS
3Postman receives the response for the first requestResponse status code is 200 OKCheck that response status code is 200PASS
4Postman sends remaining 49 requests sequentiallyAPI server processes each request under load-PASS
5Postman receives responses for all requestsAll responses have status code 200Verify all responses have status 200PASS
6Test completes and Postman shows summary reportReport shows 50 requests sent, all passedConfirm no failed requestsPASS
Failure Scenario
Failing Condition: API server returns status codes other than 200 during load
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test verify in this load test?
AThat the API response time is less than 1 second
BThat the API returns data in JSON format
CThat the API responds with status 200 under load
DThat the API endpoint URL is correct
Key Result
Always verify the API response status codes during load testing to ensure the system handles multiple requests without errors.