0
0
Postmantesting~10 mins

Monitor regions in Postman - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test checks if a Postman monitor runs successfully in a specified region and verifies the response status code is 200.

Test Code - Postman Test Script
Postman
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});
Execution Trace - 4 Steps
StepActionSystem StateAssertionResult
1Monitor triggers the API request in the specified regionPostman Monitor dashboard shows the monitor running in the chosen region-PASS
2Postman receives the API responseResponse with status code 200 and response body received-PASS
3Test script runs to check if status code is 200Test script executes in Postman test sandboxpm.response.to.have.status(200)PASS
4Monitor reports test resultMonitor dashboard shows test passed for the regionTest passed: Status code is 200PASS
Failure Scenario
Failing Condition: API response status code is not 200 or no response received in the region
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test script in the Postman monitor verify?
AThat the API response status code is 200
BThat the API response body contains specific data
CThat the monitor runs only once
DThat the monitor uses the latest Postman version
Key Result
Always verify that your Postman monitor runs in the correct region to ensure API availability and performance from that location.