Large scale Angular testing with Protractor
summary
Protractor is an Angular end-to-end tester built on WebDriverJS, installed via npm and run against a Selenium/driver server, and it waits for Angular to be ready so many explicit waits disappear. It supports Angular 1 and 2, locator strategies like by.model and by.binding, and lazy locators with element.finder and element.all. Google runs tests several times a day, finds suites of 50 tests taking ~9 minutes and 131 tests ~38 minutes, and recommends small independent suites, parallel runs, page objects, and rigorous cleanup.
AI-written summary · about
chapters (30)
- 0:00Intro
- 2:34What is Protractor
- 3:08Why use Protractor
- 5:57How does it work
- 7:21Endtoend testing
- 12:23How to write a test
- 16:17Element Array Finder
- 17:40Promises
- 19:24Strategy
- 19:58Not free
- 20:22What to test
- 22:00Writing a test
- 22:40Creating a container
- 23:18Google Cloud Storage
- 23:49How to test
- 25:03Testing a list page
- 26:24Where to test
- 26:53Rules of Protractor
- 27:07Continuous Integration
- 27:35Test Early
- 27:54Test Often
- 28:16Cleanup
- 28:55Endtime tests
- 29:20Independent tests
- 29:38Run tests in parallel
- 32:27Use page objects
- 33:49Plan
- 34:00Unit tests
- 34:13Why Protractor
- 34:54Questions
