Giridhar Rajkumar

@vgrk2017

Test Automation Consultant | Cypress Ambassador

https://thetestershub.info | https://learndevtestops.com

Crash Course

Agenda

What is Cypress?

Benefits

Demo

Features of Cypress

Q & A

What is Cypress?

Web Automation Testing Tool for Modern Web Apps built on ReactJS, AngularJS

 

Easy tool to be adapted by Developers & Testers

Runs the tests inside the browser

Great alternative for Selenium, but built differently

Fast, reliable, E2E Testing tool for modern web apps

Features of Cypress

Features of Cypress

Comparison - Selenium Side

 
 
 
 
 
Selenium Cypress
TestNG, JUnit, nUnit, xUnit, Cucumber, Mocha etc.  Mocha
Remote execution No Remote Execution Supported
Support for multiple tabs and cross domain testing No direct multiple tabs support and only supports running tests in 1 domain
Excellent support for Cross-browser testing tools like BrowserStack, SauceLabs etc., No 3rd party cross-browser testing tools support 
Excellent support for mobile testing like Appium Mobile testing not possible
Excellent community support Evolving community support

Comparison - Cypress Side

0
 Advanced issue found
 
 
 
 
 
 
 
 
 
Cypress Selenium
Faster execution Slower
No Driver Dependencies Different WebDriver versions for different browser versions
Built-in Mock Server, Spies & Clocks No Mocking support
XHR Validation Support No XHR support, but can be achieved using 3rd party tools
Cypress Test Runner with features like Selector Playground, integration with Developer Tools Selenium IDE (record and playback) is great, but not as good as Cypress

Comparison - Cypress Side

Cypress Selenium
API Testing Support - End to End Testing Tool No API Testing Support as Selenium is just a browser automation tool
Automatic retries Implicit & explicit waits
Automatic screenshots & Videos No automatic screenshots or videos
Easy install with one command Installation of multiple components
Clear error messages Error messages sometimes confusing (long stack trace errors)
Excellent documentation Average documentation

Benefits

Let's see it in action...

Limitations

Questions?

Retarget Common - Cypress.io - Crash Course

By Giridhar Rajkumar

Retarget Common - Cypress.io - Crash Course

This deck is used for the East Anglia Quality Assurance Meetup Group's Cypress Introduction Session

  • 194