How do you test your AngularJS applications? With Protractor. Protractor is an end-to-end testing framework for AngularJS applications. This getting started guide is for new software developers in test who are interested in learning about Protractor testing. By following this getting started guide, you’ll understand how to build a firm foundation and learn fundamental Protractor testing for AngularJS applications.
Build a solid foundation
- Online Courses: codeschool.com (monthly fee), codeacademy.com (free) and jstherightway.org have excellent interactive courses with reading material, video tutorials, screencasts and programming challenges.
- Online Course: codeschool.com/courses/real-time-web-with-node-js (monthly fee)
- Online Courses: codecademy.com/learn/learn-angularjs (free) and codeschool.com/courses/shaping-up-with-angular-js (monthly fee)
- Book: ng-book.com
Protractor supports AngularJS directive strategies, which allows you to test AngularJS applications without much effort. Protractor is a Node program, which is a wrapper around WebDriverJS. I recommend skimming through the WebDriverJS Users Guide, Protractor API and Protractor Style Guide before writing any tests. Protractor uses Jasmine or Mocha for its test syntax.
- Tutorial: angular.github.io/protractor/#/tutorial (free) and egghead.io/series/learn-protractor-testing-for-angularjs (monthly fee)
Getting started with some fundamentals of Protractor under your belt
How Protractor works and interacts with AngularJS (workflow) elementor will test it against a live protractor instance. Elementor is considered an improved element finder for Protractor.
Greg Sypolt (@gregsypolt) is a senior engineer at Gannett and co-founder of Quality Element. He is a passionate automation engineer seeking to optimize software development quality, while coaching team members on how to write great automation scripts and helping the testing community become better testers. Greg has spent most of his career working on software quality — concentrating on web browsers, APIs, and mobile. For the past five years, he has focused on the creation and deployment of automated test strategies, frameworks, tools and platforms.