Protractor is now the recommended tool to test AngularJS applications in end-to-end scenarios.
If you go to the documentation for an AngularJS directive and you scroll down to the examples section, you will see a file called protractor.js showing you how to test the directive with Protractor. Here’s an example for ngRepeat.
You might say, “I can write unit tests in Jasmine that test my controllers, services, directives. Why do I want to write Protractor tests?”
Say you’ve created a web application with the single page application template in Visual Studio 2013. This template creates an authorization service that issues access tokens to secure the API.
Suppose you want to separate out the authorization service from the application. You might want to do this if you’re going to create another web application and you want both web applications to use the same authorization service.