
- Overview
- Transcript
5.1 Installing Protractor Dependencies
Before we can implement end-to-end testing with Protractor, we need to install Protractor's dependencies, which we will do in this video.
1.Introduction3 lessons, 07:24
Free Lesson 1.1Introduction01:12
Free Lesson 1.2Test-Driven Development in Angular04:14
1.3Before You Start01:58
2.Scaffolding a Testable Angular App5 lessons, 46:23
2.1Introducing the Ironclad Address Book04:57
2.2App Setup11:37
2.3Serving Mocha Tests10:32
2.4Running Karma Tests11:33
2.5Implementing a Simple Back End With Express07:44
3.Testing Angular Applications5 lessons, 51:44
3.1Testing Services With Inject and Module12:45
3.2Verifying GET and POST Functionality With $httpBackend05:43
3.3Testing Angular Controllers12:27
3.4Testing Angular Filters10:19
3.5Testing Angular Directives10:30
4.Code Coverage With Istanbul3 lessons, 18:01
4.1What Is Istanbul?01:14
4.2Adding Istanbul to our Application09:40
4.3Generating and Serving a Code Coverage Report07:07
5.End-to-End Testing With Protractor4 lessons, 23:27
5.1Installing Protractor Dependencies03:55
5.2Configuring Selenium08:30
5.3Testing With Protractor05:06
5.4Automating Protractor05:56
6.Adding Finishing Touches4 lessons, 23:06
6.1Reviewing our App03:56
6.2Adding Contacts07:27
6.3Updating the Contact Display04:47
6.4Adding Styles06:56
7.Conclusion1 lesson, 04:05
7.1Conclusion04:05
5.1 Installing Protractor Dependencies
Hello, ladies and gentleman, and welcome to this next exciting series of tutorial lessons. In this series we're gonna learn about end-to-end testing with protractor. Here I am at the protractor GIT hub page, which is an excellent place to start when you're looking for information on Protractor. So the first question to ask is, what is Protractor and what is end to end testing? Well as I described earlier, it's rather simple to test say a reg x function that validates an e-mail. You just pass the bunch of e-mails and make sure it returns the expected thing. But if you have a whole series of steps, for example, you want to create a user on your backend, and then verify that it was created, you need something called end-to-end tests. Now when you're running end to end tests with angular you're in for a bit of a treat. Because angular has it's own end to end test runner called Protractor. Protractor allows you to run angular tests in an end to end fashion. And in this module we're going to be completely looking at that and taking it apart. Here I am for the webpage of Java. I mentioned at the beginning of this series that we need to install Java to get Protractor working. Protractor has a lot of dependencies like web driver and Selenium and some of these dependencies depend on Java. So Java must be installed on your computer. You can install Java by going to java.com/en/download and then download Java and install it to your computer. I'm not 100% sure if this is a requirement on Mac, but I do know that you will need to do this if you are on a PC. Either way, it's probably a good idea at this point to install Java on your computer before moving on, we'll wait. All right, so we have Java installed on all our computers. Now let's go to our terminal window, as we will be installing some npm packages. So we need to install a bunch of packages so let's just do it all in one go with mpn install -g. And we're gonna install protractor karma cli That's two things and lastly, webdriver-manager. When you press enter these will install some of them are pretty big, so this may take awhile. Just rejoin us once you've installed these packages on your computer and all our dependencies have been installed. For the last part of this video we're just gonna get our Selenium server kicked off, then in the next video we're going to link back to that in our app. So to make sure that works, type webdriver-manager start We get a message saying standalone is not present. Let's install Standalone with webdrive-manager, update, forward, forward Standalone. That's been completed, now let's see if our web driver manager start works. Very good, if you get this message, that means that your Selenium is now running. That means that we can now connect to it with Protractor. For the time being leave this terminal window open, as we're going to need it open for the next video.