What is the primary purpose of creating a monitor in Postman?
Think about automation and regular checks.
Postman monitors are designed to run collections automatically on a schedule and provide reports on their success or failure.
Given the following monitor schedule setting in Postman, what is the frequency of the monitor runs?
{"schedule": {"interval": 2, "unit": "hours"}}Look at the unit and interval values carefully.
The interval is 2 and the unit is 'hours', so the monitor runs every 2 hours repeatedly.
Which assertion correctly checks that the response status code is 200 in a Postman monitor test script?
pm.test("Status code is 200", function () {
// Assertion here
});Check the Postman test scripting syntax for status code assertions.
The correct syntax uses pm.response.to.have.status(200) to assert the status code.
A Postman monitor fails because it cannot find the environment variable api_key. Which is the most likely cause?
Think about variable availability in monitors.
Monitors require environment variables to be set and linked properly; missing variables cause failures.
Which notification option in Postman monitors will send alerts only when a test fails during a scheduled run?
Consider when you want to be alerted to problems.
Choosing 'Notify only on failure' sends alerts only if tests fail, avoiding unnecessary notifications.