Test Overview
This test runs a Postman collection using a CSV data file to send multiple requests with different user data. It verifies that the API responds with status 200 for each user.
This test runs a Postman collection using a CSV data file to send multiple requests with different user data. It verifies that the API responds with status 200 for each user.
pm.test('Status code is 200', function () { pm.response.to.have.status(200); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test collection run starts with CSV data file containing multiple user records | Postman Runner opens and loads CSV file with user data rows | - | PASS |
| 2 | Postman sends first request using first row data from CSV (e.g., userId=1, name='Alice') | Request URL and body populated with first user data | - | PASS |
| 3 | Postman receives response for first request | Response status 200 and valid JSON body received | Check response status is 200 | PASS |
| 4 | Postman runs test script to assert status code 200 | Test script executed in Postman sandbox | pm.test('Status code is 200', function () { pm.response.to.have.status(200); }); | PASS |
| 5 | Postman sends second request using second row data from CSV (e.g., userId=2, name='Bob') | Request URL and body populated with second user data | - | PASS |
| 6 | Postman receives response for second request | Response status 200 and valid JSON body received | Check response status is 200 | PASS |
| 7 | Postman runs test script to assert status code 200 for second request | Test script executed in Postman sandbox | pm.test('Status code is 200', function () { pm.response.to.have.status(200); }); | PASS |
| 8 | Postman completes all requests from CSV data file | All rows processed, test results collected | All requests returned status 200 | PASS |