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.
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.
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
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts in Postman Collection Runner with 50 iterations | Postman is ready to send requests repeatedly to the API endpoint | - | PASS |
| 2 | Postman sends the first API request | API server receives the request and processes it | - | PASS |
| 3 | Postman receives the response for the first request | Response status code is 200 OK | Check that response status code is 200 | PASS |
| 4 | Postman sends remaining 49 requests sequentially | API server processes each request under load | - | PASS |
| 5 | Postman receives responses for all requests | All responses have status code 200 | Verify all responses have status 200 | PASS |
| 6 | Test completes and Postman shows summary report | Report shows 50 requests sent, all passed | Confirm no failed requests | PASS |