Automated Software Testing with Cypress  book cover
1st Edition

Automated Software Testing with Cypress

  • Available for pre-order. Item will ship after April 20, 2021
ISBN 9780367699543
April 20, 2021 Forthcoming by Auerbach Publications
112 Pages 19 B/W Illustrations

SAVE ~ $14.99
was $49.95
USD $34.97

Prices & shipping based on shipping country


Book Description

Unit Integration Testing (UIT) had been a challenge because there had been no one tool that helped in XHR programming and unit integration validations in an efficient way until Cypress arrived. Cypress was first released in 2015 and started becoming popular in 2018 with version 2.0.0.

This book explores Cypress scripts that help implement ‘shift left testing,’ which is a dream come true for many software testers. Shift left occurs in a majority of testing projects, but it could not be implemented fully because tools were unavailable and knowledge was lacking about the possibilities of testing early in the life cycle. Shift left is a key testing strategy to help testing teams focus less on identifying defects and more on developing practices to prevent defects.

Cypress scripts can help front-end developers and quality engineers work together to find defects soon after web components are built. These web components can be tested immediately after build with Cypress Test-Driven Development (TDD) scripts. Thus, defects can be fixed straight away during the development stage. Testing teams do not have to worry about finding these defects again in a later development stage because Cypress tests keep verifying components in later stages. Subsequently, defect fixes become much cheaper than when other tools are used. The book also covers Behavior-Driven Development (BDD)-based gherkin scripts and the Cypress-cucumber pre-processor, which can improve test scenario coverage.

Automated Software Testing with Cypress was written to help testing teams with their BDD and TDD needs. Two distinct open source repositories are provided in github to help start running Cypress tests in no taime!

Table of Contents

1 Functional Testing Using Cypress. 2. General Test Automation Architecture (gTAA). 3 BDD Feature Files Writing Techniques. 4 Visual Testing Using Cypress. 5 Device Compatibility Testing Using Cypress. 6 Mouse Events Testing Using Cypress. 7 Defect Identification Using Cypress. 8 Click Command in Cypress. 9 Double Click Command in Cypress. 10 Right Click Command in Cypress. 11 Check Command in Cypress. 12 Uncheck Command in Cypress. 13 Trigger Commands in Cypress. 14 Viewport Commands in Cypress. 15 Record scripts Using Cypress Recorder. 16 Accessibility Regression Testing Using Cypress. 17 Finding Visual Testing Defects Using Cypress. 18 Browser Compatibility Testing. 19 Upload File Using Cypress. 20 Accessibility Audit and Accessibility Testing Using Cypress and Axe. 21 Docker Containerisation Using Cypress Tests. 22 Cypress vs Selenium. 23 Cypress vs Protractor. 24 Cypress vs Nightwatch. 25 Cypress vs UFT.

View More



Narayan Palani is quality engineering lead for a major financial institution based in London. He has authored four books on software testing and holds multiple professional certifications as well as a master’s degrees in software engineering and business administration.