Challenge - 5 Problems
Postman Monitor Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the result status of this Postman monitor run?
Given this Postman test script snippet inside a monitor run, what will be the test result status shown in the monitor report?
Postman
pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Response time is less than 500ms", function () { pm.expect(pm.response.responseTime).to.be.below(500); });
Attempts:
2 left
💡 Hint
Each pm.test defines a separate assertion that must pass for the monitor to pass.
✗ Incorrect
In Postman monitors, all pm.test assertions must pass for the test to be considered successful. Both status code and response time checks are separate tests and both must pass.
❓ assertion
intermediate2:00remaining
Which assertion correctly checks JSON response contains a key 'userId' with value 5?
You want to verify in a Postman monitor that the JSON response body has a key 'userId' equal to 5. Which assertion code is correct?
Attempts:
2 left
💡 Hint
Use pm.response.json() to parse JSON body before checking keys.
✗ Incorrect
pm.response.json() parses the response body as JSON. Then you can access keys like userId. The assertion to.eql(5) checks exact equality.
🔧 Debug
advanced2:00remaining
Why does this Postman monitor test always fail?
This Postman test script is inside a monitor but always fails. What is the cause?
Postman
pm.test("Check user name", function () { pm.expect(pm.response.json().name).to.equal("John"); }); pm.test("Check user age", function () { pm.expect(pm.response.json().age).to.be.above(18); }); pm.test("Check user active", function () { pm.expect(pm.response.json().active).to.be.true; });
Attempts:
2 left
💡 Hint
Check if all keys exist in the response JSON before asserting.
✗ Incorrect
If the 'active' key is missing, pm.response.json().active is undefined. Using to.be.true on undefined causes the test to fail with an error.
🧠 Conceptual
advanced2:00remaining
What does a 'failed' status in Postman monitor results indicate?
In Postman monitor results, what does a 'failed' status mean?
Attempts:
2 left
💡 Hint
Monitor status depends on test assertions, not scheduling or response content alone.
✗ Incorrect
A 'failed' status means one or more pm.test assertions did not pass during the monitor execution.
❓ framework
expert2:00remaining
How to programmatically analyze Postman monitor results via API?
You want to automate analysis of Postman monitor results. Which approach correctly uses Postman API to fetch monitor run results?
Attempts:
2 left
💡 Hint
Use GET method and correct endpoint to retrieve monitor runs.
✗ Incorrect
The Postman API endpoint to get monitor runs is a GET request to /monitors/{{monitor_uid}}/runs with the API key in headers.