You just need to install Node.js from https://nodejs.org/
npm install
./node_modules/protractor/bin/webdriver-manager update
./node_modules/protractor/bin/webdriver-manager start
./node_modules/protractor/bin/protractor protractorConf.js
or
./node_modules/protractor/bin/protractor protractorConf.js --tags "@this and not @that"
Just keep shardTestFiles as false and the features you specify will be run sequentially.
In order to run in parallel open protractorConf.js and set shardTestFiles to true, please make sure to set maxInstances to a certain number so that it does not kill your resources.
- If you use parallel option then a browser will be open for every feature that you have under features folder.
In order to generate the report correctly,
- if you run sequentially just write in command line
node generateReport.js
- if you run in parallel then you will have to first do
node reportsMerger.js
and thennode generateReport.js