Skip to content

mariavillarescastillo/nightwatch-cucumber-template

Repository files navigation

Nightwatch Cucumber Template

Introduction

This is an automation testing project template with some simple examples developed using Nightwatch.js and Cucumber applying Page Object Model design pattern.

Requirements

This project has been developed using Node.js v10.19.0 and npm v6.14.4.

Install Node.js:

sudo apt install nodejs

Install npm:

sudo apt install npm

Google Chrome v87.x.x must be installed.

Quickstart

Install project dependencies (Nightwatch.js and browser drivers):

npm i

Run tests

Run all tests on default browser (Google Chrome):

npm run test

Notes

Test execution results are shown in two different reports:

  • Console (visualization improved with cucumber-pretty):

console-report

  • HTML (generated by multiple-cucumber-html-reporter, reports are shown at the end of test execution by configuration):

html-report

This project is ready to add different testing browsers using cross-env. At this moment, only Google Chrome has been implemented:

npm run test:chrome

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published