Skip to content

UI testing automation framework with Protractor and cucumber

Notifications You must be signed in to change notification settings

David-SanchezG/protractor-cucumber

Repository files navigation

Prerequisites

You just need to install Node.js from https://nodejs.org/

Get it ready

npm install
./node_modules/protractor/bin/webdriver-manager update
./node_modules/protractor/bin/webdriver-manager start

Run

./node_modules/protractor/bin/protractor protractorConf.js
or
./node_modules/protractor/bin/protractor protractorConf.js --tags "@this and not @that"

Running types

Sequential

Just keep shardTestFiles as false and the features you specify will be run sequentially.

Parallel

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.

Report

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 then
    node generateReport.js

Releases

No releases published

Packages

No packages published