0
0
Postmantesting~20 mins

Monitor results analysis in Postman - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Postman Monitor Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2: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);
});
APass if response status is 200 and response time is below 500ms; otherwise fail
BPass if either response status is 200 or response time is below 500ms
CFail if response status is 200 but response time is above 500ms
DAlways pass regardless of response status or time
Attempts:
2 left
💡 Hint
Each pm.test defines a separate assertion that must pass for the monitor to pass.
assertion
intermediate
2: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?
Apm.expect(pm.response.json().userId).to.eql(5);
Bpm.response.to.have.jsonBody('userId', 5);
Cpm.expect(pm.response.body.userId).to.equal(5);
Dpm.expect(pm.response.json().userId).to.be.above(5);
Attempts:
2 left
💡 Hint
Use pm.response.json() to parse JSON body before checking keys.
🔧 Debug
advanced
2: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;
});
AThe tests run asynchronously and cause race conditions.
BThe assertion pm.expect(...).to.be.true is invalid syntax in Postman.
CThe pm.response.json() method cannot be called multiple times.
DThe response JSON does not contain the key 'active', causing an assertion error.
Attempts:
2 left
💡 Hint
Check if all keys exist in the response JSON before asserting.
🧠 Conceptual
advanced
2:00remaining
What does a 'failed' status in Postman monitor results indicate?
In Postman monitor results, what does a 'failed' status mean?
AThe response status code was 200 but response time was slow.
BAt least one pm.test assertion failed during the monitor run.
CThe monitor did not run due to scheduling errors.
DAll pm.test assertions passed but the response body was empty.
Attempts:
2 left
💡 Hint
Monitor status depends on test assertions, not scheduling or response content alone.
framework
expert
2: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?
ASend a GET request to https://api.getpostman.com/collections/{{monitor_uid}}/runs with API key in headers.
BSend a POST request to https://api.getpostman.com/monitors/{{monitor_uid}}/results with API key in body.
CSend a GET request to https://api.getpostman.com/monitors/{{monitor_uid}}/runs with API key in headers.
DSend a DELETE request to https://api.getpostman.com/monitors/{{monitor_uid}}/runs to get results.
Attempts:
2 left
💡 Hint
Use GET method and correct endpoint to retrieve monitor runs.