Skip to content

bennymeade/dunnhumby-sdet-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DunnhumbySDETTest

Prerequisite

$ git clone https://github.com/bennymeade/DunnhumbySDETTest.git

$ npm install

Launch dashboard using CLI scripts

$ npm run test.open

This will launch the Cypress Test Runner and individual specs can be run from here, example results can be seen in ./results folder.

Cypress CI Run via headless browser

$ npm run test.ci

This will run all of the API and UI tests in Chrome headless mode, example results can be seen in ./results folder.

Notes on framework design

I've used a JS chaining design to allow an easier way to read the test journey. This framework is also using the page object model (POM). As Cypress uses Mocha and Chai natively, these tools are also utilised in this framework.

base.page.js is used for common methods and all other page class extend from base. This allows you to use a base method on any item in the test, example: .validateH1Title()

For both the api and ui tasks I've given various examples of different approaches that can be taken when desiging the tests. Cypress.io is a very versatile test tool making the many different approaches possible.

This framework is designed to ensure future test extensions and maintainance is done with ease.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published