In this video we're going to learn about
monitoring in Postman. What we mean by
this is actually kind of talking about
setting up scheduled runs. So let's take
a look at how you do that in Postman. So
we can go here to new and to add a
monitor, and that brings us to this page
we could create a new one or we can use
an existing one, so we'll use a
collection from this workspace, and we'll
use the world time collection here to
run. And then we're brought with this
page where we can set up the run
schedule and a few other options as well,
so we can pick an environment, we'll
leave it at no environment for this one.
We can also set up the frequency, so we
have the weekly timer here and in that
case we have a few options, we could set
it every day, or every weekday, or just
pick a specific day of the week for it
to run on, and then we can pick a
particular time of the day. So basically
it'll kick off a run of all the tests in
the collection that we've selected on
the schedule that we select. So if we
choose every day it'll do that. Now
there's also other options as well, so if
we wanted to run it more frequently we
could do the hour timer, we could run it
every hour, or every couple of hours, as
well as the minute timer where we could
run it as frequently as every five
minutes if we wanted to. So the more
frequently we run, obviously the more
calls we're going to make, but the more
data we'll get out of it. So let's set
this back to every day for now and leave
it at that.
Now there's also regions, so you can pick
what region you want it to run in. If you
have data centers across the world you
might want to pick a region that's close
to them, or you might want to pick one a
number of different regions as well, if
you want to see how things perform and
how things work from different areas in
the world. So we'll use the options that
we have here, so we'll do every day and
I've set the region to Canada for this,
and now let's click on create. So we can
see here that it has created a monitor,
it's created the world time one monitor,
and it will run on the schedule that we
want, and we can go see more details of
it on the web dashboard, so let's go take
a look at it there. Now here on the web
dashboard you can see the monitor hasn't
run yet, so there's no data here really.
So we can trigger a manual run of it, so
let's go ahead and do that. And when we
do that we get this chart, and again
we've only done one run so there's not
much data
on this chart, but as it would run over
time you would start to see this chart
filling in with data and you'd be able
to see different options from here where
you could see what's happening with this
over time. We can also edit this from
here, so we can edit like this, we can
edit the monitor, we can edit the
schedule, we have basically all the
options that we had in the desktop
application to make changes to it from
here if we want to. So we have a lot of
control over what we can do just from
this dashboard. And you can see that how
this would be a really helpful thing for
your testing, it would allow you to check
things in production if you wanted to,
you could check things and monitor how
things are going in real time, or you
could use it to schedule runs against
your QA sites at certain times as well.
So this is indeed a powerful tool in
Postman. In the next video we'll be
looking at using the Postman API, so I'll
see you there.