- Protractor is a Node.js program. To run Protractor, you will need to have Node.js installed. Check the version of node you have by running node --version. It should be greater than v0.10.0.
- Node.js comes with the Protractor npm package, which you can use to install Protractor.
- npm install -g protractor
- protractor --version
- npm run wdm.start (this will start your webdriver server)
- npm run wdm.stop (this will stop your webdriver server)
- npm run wdm.update (this will update your webdriver server)
- npm run test (you can find this command in package.json)
- npm i jasmine-allure-reporter
- npm install -g allure-commandline --save-dev
you can generate and open allure reports using below command, once you trigger below command you will be taken to your default browser where you can view allure report.
- allure generate allure-results --clean && allure open