1 00:00:00,060 --> 00:00:02,580 In this video we're going to learn about 2 00:00:02,580 --> 00:00:05,339 monitoring in Postman. What we mean by 3 00:00:05,339 --> 00:00:07,259 this is actually kind of talking about 4 00:00:07,259 --> 00:00:09,809 setting up scheduled runs. So let's take 5 00:00:09,809 --> 00:00:12,059 a look at how you do that in Postman. So 6 00:00:12,059 --> 00:00:14,940 we can go here to new and to add a 7 00:00:14,940 --> 00:00:17,609 monitor, and that brings us to this page 8 00:00:17,609 --> 00:00:19,170 we could create a new one or we can use 9 00:00:19,170 --> 00:00:20,490 an existing one, so we'll use a 10 00:00:20,490 --> 00:00:22,890 collection from this workspace, and we'll 11 00:00:22,890 --> 00:00:25,650 use the world time collection here to 12 00:00:25,650 --> 00:00:26,820 run. And then we're brought with this 13 00:00:26,820 --> 00:00:29,010 page where we can set up the run 14 00:00:29,010 --> 00:00:31,470 schedule and a few other options as well, 15 00:00:31,470 --> 00:00:32,700 so we can pick an environment, we'll 16 00:00:32,700 --> 00:00:34,140 leave it at no environment for this one. 17 00:00:34,140 --> 00:00:36,989 We can also set up the frequency, so we 18 00:00:36,989 --> 00:00:38,879 have the weekly timer here and in that 19 00:00:38,879 --> 00:00:40,800 case we have a few options, we could set 20 00:00:40,800 --> 00:00:43,320 it every day, or every weekday, or just 21 00:00:43,320 --> 00:00:45,180 pick a specific day of the week for it 22 00:00:45,180 --> 00:00:46,950 to run on, and then we can pick a 23 00:00:46,950 --> 00:00:48,539 particular time of the day. So basically 24 00:00:48,539 --> 00:00:51,780 it'll kick off a run of all the tests in 25 00:00:51,780 --> 00:00:53,250 the collection that we've selected on 26 00:00:53,250 --> 00:00:55,800 the schedule that we select. So if we 27 00:00:55,800 --> 00:00:57,539 choose every day it'll do that. Now 28 00:00:57,539 --> 00:00:59,219 there's also other options as well, so if 29 00:00:59,219 --> 00:01:00,840 we wanted to run it more frequently we 30 00:01:00,840 --> 00:01:02,879 could do the hour timer, we could run it 31 00:01:02,879 --> 00:01:04,709 every hour, or every couple of hours, as 32 00:01:04,709 --> 00:01:07,290 well as the minute timer where we could 33 00:01:07,290 --> 00:01:08,820 run it as frequently as every five 34 00:01:08,820 --> 00:01:11,820 minutes if we wanted to. So the more 35 00:01:11,820 --> 00:01:13,619 frequently we run, obviously the more 36 00:01:13,619 --> 00:01:15,930 calls we're going to make, but the more 37 00:01:15,930 --> 00:01:17,850 data we'll get out of it. So let's set 38 00:01:17,850 --> 00:01:19,950 this back to every day for now and leave 39 00:01:19,950 --> 00:01:20,430 it at that. 40 00:01:20,430 --> 00:01:23,009 Now there's also regions, so you can pick 41 00:01:23,009 --> 00:01:25,439 what region you want it to run in. If you 42 00:01:25,439 --> 00:01:27,509 have data centers across the world you 43 00:01:27,509 --> 00:01:28,979 might want to pick a region that's close 44 00:01:28,979 --> 00:01:32,130 to them, or you might want to pick one a 45 00:01:32,130 --> 00:01:34,170 number of different regions as well, if 46 00:01:34,170 --> 00:01:36,299 you want to see how things perform and 47 00:01:36,299 --> 00:01:38,340 how things work from different areas in 48 00:01:38,340 --> 00:01:41,850 the world. So we'll use the options that 49 00:01:41,850 --> 00:01:43,590 we have here, so we'll do every day and 50 00:01:43,590 --> 00:01:45,570 I've set the region to Canada for this, 51 00:01:45,570 --> 00:01:48,810 and now let's click on create. So we can 52 00:01:48,810 --> 00:01:50,790 see here that it has created a monitor, 53 00:01:50,790 --> 00:01:52,500 it's created the world time one monitor, 54 00:01:52,500 --> 00:01:54,899 and it will run on the schedule that we 55 00:01:54,899 --> 00:01:57,329 want, and we can go see more details of 56 00:01:57,329 --> 00:01:59,009 it on the web dashboard, so let's go take 57 00:01:59,009 --> 00:02:01,170 a look at it there. Now here on the web 58 00:02:01,170 --> 00:02:02,880 dashboard you can see the monitor hasn't 59 00:02:02,880 --> 00:02:04,799 run yet, so there's no data here really. 60 00:02:04,799 --> 00:02:07,469 So we can trigger a manual run of it, so 61 00:02:07,469 --> 00:02:09,389 let's go ahead and do that. And when we 62 00:02:09,389 --> 00:02:11,128 do that we get this chart, and again 63 00:02:11,128 --> 00:02:13,020 we've only done one run so there's not 64 00:02:13,020 --> 00:02:13,830 much data 65 00:02:13,830 --> 00:02:16,380 on this chart, but as it would run over 66 00:02:16,380 --> 00:02:18,030 time you would start to see this chart 67 00:02:18,030 --> 00:02:20,400 filling in with data and you'd be able 68 00:02:20,400 --> 00:02:23,730 to see different options from here where 69 00:02:23,730 --> 00:02:26,400 you could see what's happening with this 70 00:02:26,400 --> 00:02:31,230 over time. We can also edit this from 71 00:02:31,230 --> 00:02:33,600 here, so we can edit like this, we can 72 00:02:33,600 --> 00:02:34,800 edit the monitor, we can edit the 73 00:02:34,800 --> 00:02:36,240 schedule, we have basically all the 74 00:02:36,240 --> 00:02:38,010 options that we had in the desktop 75 00:02:38,010 --> 00:02:40,950 application to make changes to it from 76 00:02:40,950 --> 00:02:43,890 here if we want to. So we have a lot of 77 00:02:43,890 --> 00:02:45,660 control over what we can do just from 78 00:02:45,660 --> 00:02:48,090 this dashboard. And you can see that how 79 00:02:48,090 --> 00:02:49,500 this would be a really helpful thing for 80 00:02:49,500 --> 00:02:52,980 your testing, it would allow you to check 81 00:02:52,980 --> 00:02:54,990 things in production if you wanted to, 82 00:02:54,990 --> 00:02:57,120 you could check things and monitor how 83 00:02:57,120 --> 00:02:59,010 things are going in real time, or you 84 00:02:59,010 --> 00:03:01,500 could use it to schedule runs against 85 00:03:01,500 --> 00:03:03,780 your QA sites at certain times as well. 86 00:03:03,780 --> 00:03:06,240 So this is indeed a powerful tool in 87 00:03:06,240 --> 00:03:09,030 Postman. In the next video we'll be 88 00:03:09,030 --> 00:03:11,520 looking at using the Postman API, so I'll 89 00:03:11,520 --> 00:03:16,520 see you there.