Test Overview
This test runs a Postman collection using the Collection Runner. It verifies that all requests complete successfully and that the expected assertions in each request pass.
This test runs a Postman collection using the Collection Runner. It verifies that all requests complete successfully and that the expected assertions in each request pass.
pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Response has expected property", function () { var jsonData = pm.response.json(); pm.expect(jsonData).to.have.property('success', true); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Collection Runner starts and loads the collection with multiple requests | Postman UI shows the collection loaded with all requests listed | - | PASS |
| 2 | Runner sends the first request to the API endpoint | Network tab shows request sent and response received with status 200 | Check if response status code is 200 | PASS |
| 3 | Runner executes test script for first request | Test script runs in Postman sandbox environment | Verify response JSON has property 'success' with value true | PASS |
| 4 | Runner sends the second request to the API endpoint | Network tab shows second request sent and response received with status 200 | Check if response status code is 200 | PASS |
| 5 | Runner executes test script for second request | Test script runs in Postman sandbox environment | Verify response JSON has property 'success' with value true | PASS |
| 6 | Collection Runner completes all requests and shows summary | Postman UI shows all requests passed with green checkmarks | Verify all tests passed in the collection run | PASS |