Skip to content

havan22/test-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-exercise

Pre-requisites

Platform: NodeJS 12.x

Using NightwatchJS

Install NightwatchJS

# install globally for nightwatch cli
npm install nightwatch -g

Running Tests

  1. Clone this repo
  2. Edit the nightwatchjs/fixtures/user.json
  3. Set the correct values for user.valid.username and user.valid.password
cd nightwatchjs
npm install
npm test

The test will run against the url and generate a report.

Known Issues with Chromedriver

If you have trouble installing chromedriver (via npm), follow these steps for a workaround. There is a bug where npm does install the chromedriver correctly to node_modules/ directory.

  1. Find out Chrome's version
  2. Goto https://chromedriver.chromium.org/downloads and download the corresponding version to your Downloads directory and unzip it
cd nightwatchjs
mkdir -p chromedriver/bin
cp Downloads/chromedriver chromedriver/bin

You do not need to run npm install again. Just run npm test.

Using Cypress

Install Cypress

  1. Edit the apricity-cypress/cypress/fixtures/data.json
  2. Set the correct values for login.username and login.userpassword
cp apricity-cypress
npm install
npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published