Test Overview
This test checks how a visual workflow in Postman helps simplify a complex API testing process by organizing requests and validations in a clear sequence.
This test checks how a visual workflow in Postman helps simplify a complex API testing process by organizing requests and validations in a clear sequence.
pm.test('Status code is 200', function () { pm.response.to.have.status(200); }); pm.test('Response has userId', function () { const jsonData = pm.response.json(); pm.expect(jsonData).to.have.property('userId'); }); pm.test('User name is correct', function () { const jsonData = pm.response.json(); pm.expect(jsonData.name).to.eql('John Doe'); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Test starts in Postman collection runner | Postman app is open with the visual workflow showing multiple API requests connected | - | PASS |
| 2 | First API request is sent to the server | Request sent, waiting for response | - | PASS |
| 3 | Response received with status code 200 | Response body contains JSON data with userId and name | Check if status code is 200 | PASS |
| 4 | Validate response JSON has 'userId' property | Response JSON parsed | Verify 'userId' exists in response | PASS |
| 5 | Validate 'name' property equals 'John Doe' | Response JSON parsed | Verify 'name' is 'John Doe' | PASS |
| 6 | Test completes successfully with all assertions passing | Visual workflow shows green check marks on all steps | - | PASS |