1 00:00:00,030 --> 00:00:02,429 Hi and welcome to the next section of 2 00:00:02,429 --> 00:00:03,600 our course. We're going to talk about 3 00:00:03,600 --> 00:00:05,879 hands-on API testing and how to get 4 00:00:05,879 --> 00:00:06,779 started with it. 5 00:00:06,779 --> 00:00:08,940 As we go through this course, we're going 6 00:00:08,940 --> 00:00:10,800 to be learning a lot of stuff but I 7 00:00:10,800 --> 00:00:12,599 don't want you to just listen to what 8 00:00:12,599 --> 00:00:14,370 I'm saying, I want you to actually try 9 00:00:14,370 --> 00:00:16,529 this stuff out. Don't just follow along, 10 00:00:16,529 --> 00:00:19,260 but actually sit down and try it and do 11 00:00:19,260 --> 00:00:21,180 it. So to help with this I've created a 12 00:00:21,180 --> 00:00:23,010 few testing challenges that can be used 13 00:00:23,010 --> 00:00:24,390 to practice some of the things that 14 00:00:24,390 --> 00:00:26,310 we're talking about. To get started with 15 00:00:26,310 --> 00:00:27,539 these challenges you'll need to download 16 00:00:27,539 --> 00:00:30,119 our small repository from GitHub. If you 17 00:00:30,119 --> 00:00:32,549 already have it on your computer and are 18 00:00:32,549 --> 00:00:34,320 familiar with it, go ahead and do that 19 00:00:34,320 --> 00:00:36,090 the way that you normally would if you 20 00:00:36,090 --> 00:00:38,190 don't have git, I would suggest that you 21 00:00:38,190 --> 00:00:41,430 download and use the GitHub desktop. So 22 00:00:41,430 --> 00:00:43,469 the GitHub desktop makes it fairly easy 23 00:00:43,469 --> 00:00:45,750 to download and use different 24 00:00:45,750 --> 00:00:48,840 repositories. So we can see that I have 25 00:00:48,840 --> 00:00:51,690 here the API testing challenges set up 26 00:00:51,690 --> 00:00:54,180 on this, but if you don't have it you can 27 00:00:54,180 --> 00:00:56,399 go ahead and get it from desktop 28 00:00:56,399 --> 00:00:58,920 GitHub.com. If you go to that site you 29 00:00:58,920 --> 00:01:00,420 can download it and follow along with 30 00:01:00,420 --> 00:01:01,980 the install, I won't walk you through 31 00:01:01,980 --> 00:01:03,629 that as that's pretty basic stuff, but 32 00:01:03,629 --> 00:01:05,700 install it, set it up, it's very 33 00:01:05,700 --> 00:01:08,250 straightforward to do. Once you've got it 34 00:01:08,250 --> 00:01:11,130 installed and set up locally, you'll need 35 00:01:11,130 --> 00:01:14,939 to actually get the repo downloaded. So 36 00:01:14,939 --> 00:01:18,060 the way to do that in GitHub desktop is 37 00:01:18,060 --> 00:01:20,880 to go to file, cloned repository, and 38 00:01:20,880 --> 00:01:24,360 we'll go to URL here and we'll put in 39 00:01:24,360 --> 00:01:26,610 the URL that we want to download, so in 40 00:01:26,610 --> 00:01:29,759 this case we'll start with HTTPS colon 41 00:01:29,759 --> 00:01:35,000 slash slash GitHub.com, and it's on my 42 00:01:35,000 --> 00:01:39,390 personal GitHub so DJ Wester, and it's 43 00:01:39,390 --> 00:01:44,850 called API testing challenges dot git. 44 00:01:44,850 --> 00:01:47,159 Now I've already got this set up on mine 45 00:01:47,159 --> 00:01:49,350 so I'm not going to clone it, but once 46 00:01:49,350 --> 00:01:50,610 you've done this you just hit the clone 47 00:01:50,610 --> 00:01:52,229 button and it will go ahead and download 48 00:01:52,229 --> 00:01:53,909 everything that you need and clone it 49 00:01:53,909 --> 00:01:57,509 into whatever folder you've chosen here, 50 00:01:57,509 --> 00:02:00,180 so we could choose API testing or some 51 00:02:00,180 --> 00:02:01,680 other folder that you have on your 52 00:02:01,680 --> 00:02:04,770 computer. Once it's downloaded and cloned 53 00:02:04,770 --> 00:02:06,509 onto your computer, we're still going to 54 00:02:06,509 --> 00:02:09,479 need to install it. So to do that we're 55 00:02:09,479 --> 00:02:11,729 going to use something called NPM. If you 56 00:02:11,729 --> 00:02:13,680 don't have MPM you can see the 57 00:02:13,680 --> 00:02:17,700 NPMJ s comm / get - NPM, go to that 58 00:02:17,700 --> 00:02:19,980 site and you can very easily download 59 00:02:19,980 --> 00:02:23,069 and install NPM from there. Once you've 60 00:02:23,069 --> 00:02:24,629 done that you'll just need to open a 61 00:02:24,629 --> 00:02:27,629 command prompt, and let's navigate into 62 00:02:27,629 --> 00:02:30,780 the folder where I have it, so API 63 00:02:30,780 --> 00:02:37,109 testing and then API testing challenges. 64 00:02:37,109 --> 00:02:42,000 And now that we're in here we'll need to 65 00:02:42,000 --> 00:02:44,609 install things. So we can do that with 66 00:02:44,609 --> 00:02:47,010 NPM that you should have installed, and 67 00:02:47,010 --> 00:02:49,590 we just NPM install, and what that will 68 00:02:49,590 --> 00:02:51,540 do is install all the dependencies and 69 00:02:51,540 --> 00:02:53,129 everything that you need to be able to 70 00:02:53,129 --> 00:02:55,470 run the testing challenges. I'm not going 71 00:02:55,470 --> 00:02:56,700 to do that at this point because I've 72 00:02:56,700 --> 00:02:58,799 already installed it, but all you have to 73 00:02:58,799 --> 00:03:00,659 do is type NPM install and then hit 74 00:03:00,659 --> 00:03:02,549 enter and it will install all the 75 00:03:02,549 --> 00:03:04,230 dependencies and packages that you need 76 00:03:04,230 --> 00:03:06,359 to be able to run the challenges. And now 77 00:03:06,359 --> 00:03:08,909 you should be ready to go with the API 78 00:03:08,909 --> 00:03:11,669 testing challenges. So thank you for 79 00:03:11,669 --> 00:03:13,319 following along, and see you in the next 80 00:03:13,319 --> 00:03:15,120 video where we'll talk about testing GET 81 00:03:15,120 --> 00:03:20,120 requests.