Angular-cli e2e

Angular-cli e2e (Test FrontEnd)

Protractor is an end-to-end test framework for AngularJS applications.

To install:

npm install -g protractor

prerequisit angular CLI

to update:

./node_modules/protractor/bin/webdriver-manager update

Documuentation API:

http://www.protractortest.org/#/api

To launch test:

ng e2e

Initial structure

e2e/
├── app.e2e.ts Root test
├── common.po.ts Common functionality
├── login
│ └── login.po.ts Specific to the page
├── tsconfig.json
└── typings.d.ts

config
├── environment.dev.ts
├── environment.js
├── environment.prod.ts
├── karma.conf.js
├── karma-test-shim.js
└── protractor.conf.js Config file

Leave a Comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.