Learn Protractor Testing for AngularJS

Protractor is an end-to-end testing framework for AngularJS applications. It allows you do drive the browser and test the expected state of your application's pages. This sort of functional testing is an essential component of any overall testing strategy.

Getting Started With Protractor

Protractor is an end-to-end testing library for AngularJS. This video lesson will walk through getting Protractor installed and writing your first test.

Test Simple Binding With Protractor

2:24 angularjsPRO

Protractor is built to interact with AngularJS applications. In this lesson, we will take a look at how Protractor interacts with the application using its element and finder functions.

Testing With Protractor Page Objects

3:28 angularjsPRO

Protractor Page Objects are a recommended for testing your AngularJS applications. Page Objects abstract the interaction between the browser and your functional tests, resulting in much cleaner tests.

Protractor Interactive

1:44 angularjsPRO

Did you know that Protractor has a handy interactive mode to help with writing/debugging your end-to-end (e2e) tests?

Protractor: Running tests on multiple browsers

8:12 angularjsPRO

Testing your AngularJS application on multiple browsers is important, and Protractor offers this ability through the multiCapabilities configuration option. Learn how to use this option, as well as configure your e2e tests to run on only a single browser for rapid development.

Using Protractor to Test Mobile Safari with Appium

When running end-to-end tests with Protractor for your AngularJS applications, you'll want to test mobile as well. Appium helps make that happen.

e2e Testing AngularJS Apps with Protractor and SauceLabs

6:48 angularjsPRO

When you are running end-to-end (e2e) tests against your AngularJS apps, they will need to be run against a rainbow of varied browsers. This can be a logistics nightmare, but luckily there are services like SauceLabs that can make this much more manageable. In this lesson, we will take a look at configuring and running e2e tests with SauceLabs.

Locators and Suites in Protractor

7:12 angularjsPRO

Let's take a deeper look at selecting specific elements on the page with Protractor locators. We can also divide our tests up into specific suites of related tests with a bit of configuration.

Automated screenshots of your e2e Protractor tests

7:52 angularjsPRO

It can be useful to capture screenshots of your end-to-end functional tests with protractor. Because protractor tests are "just node", it is very straight forward.

Use protractor to catch errors in the console

2:23 angularjsPRO

Protractor gives you access to the console log while it is testing. This functionality could be used to verify that no errors are occurring, or other similar things you might want to test.