End to end testing with Protractor (End to end testing with Protractor)
$5.00
Minimum price
$9.99
Suggested price
This book is 100% complete
Completed on 2016-11-27
About the Book
The idea of writing this book came as a way to gathering a collection of learnings during my career using the Protractor framework, to serve as a source of research for professionals that already use the tool or professionals and students that are interested in learning.
Table of Contents
-
Preface
- By Carmen Popoviciu
- By Stefan Teixeira
-
Introduction
- What is Protractor?
- Pre-requirements to start
- Basic configurations
- Writing the first test
- Running the first test
- The importance of test results
- The AAA standard (Arrange, Act, Assert)
-
Good practices
- General rules
- Project structure
- Locators strategies
- Page Objects
- Test suites
-
Page Objects
- Refactoring tests to use Page Objects
- Another example of Page Objects
- Creating and using wrapper Page Objects
- Helpers
-
Useful node modules
- jasmine-spec-reporter
- protractor-jasmine2-html-reporter
- shortid
- node-uuid
- fs
- browserstack-local
- faker.js
-
Actions and verifications
- Actions
- Verifications
-
Visual review testing
- Integrating VisualReview with Protractor
- What to test and what not to test with Visual Review
-
Cloud testing
- BrowserStack
- SauceLabs
-
Continuous integration
- E2e testing in the continuous integration process
-
Mobile testing
- Redefining the browser’s size
- Simulating a mobile device into the browser
- Using mobile devices simulators in the cloud
-
ECMAScript 2015
- Configuration file in ES2015
- Test files (spec files) in ES2015
- Page Objects and Helpers in ES2015
-
Advanced configurations
- directConnect - Using the browser’s own webdriver
- framework - Defining a base framework to write tests
- shardTestFiles - Running tests in parallel
- suites - Test suites
- beforeLaunch - Before any environment configuration
- onPrepare - Before running tests
- onComplete - As soon as tests are finished
- afterLaunch - After running tests
-
The software test creative process
- Defining test cases
- Evolving the test suite
- Organizing the test project for a evolving maintenance
- Evolving even more
-
Useful tips
- Test structure generator
- Jasmine facilities
- Debugging tests
- Testing non-AngularJS applications
- Tips for demos
- Overwriting configurations via command line
- Going further
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...