Test Overview
This test checks if a Postman monitor runs successfully in a specified region and verifies the response status code is 200.
This test checks if a Postman monitor runs successfully in a specified region and verifies the response status code is 200.
pm.test("Status code is 200", function () { pm.response.to.have.status(200); });
| Step | Action | System State | Assertion | Result |
|---|---|---|---|---|
| 1 | Monitor triggers the API request in the specified region | Postman Monitor dashboard shows the monitor running in the chosen region | - | PASS |
| 2 | Postman receives the API response | Response with status code 200 and response body received | - | PASS |
| 3 | Test script runs to check if status code is 200 | Test script executes in Postman test sandbox | pm.response.to.have.status(200) | PASS |
| 4 | Monitor reports test result | Monitor dashboard shows test passed for the region | Test passed: Status code is 200 | PASS |