Generic Checklist in case you want to consider Cypress

Tets automation tool space is hot right now. Selenium, which is considered as a de fact tool is now being challenges by Cypress as well as Playwright.


We will talk about Playwright later but the first few things about Cypress


THE GOOD PART

  • easy peasy and impressive setup ( just a few commands and you get a meaningful as well as standardized framework structure )
  • It has a nice dashboard to view reports, recordings, and analytics
  • Talking in 2022, it's more mature now, and very good community support
  • Now supports multi-domain ( version 9 onwards)
  • Nice sleek UI runner which has capability to find locators as well time travel ( very helpful in debugging)
  • Nice way to handle API re, response and mocking
  • Full support to component testing
  • Since its syntax is close to jQuery, front end dev finds it easy to use
  • Good documentation
  • Automatic waiting

THE NOT SO GOOD PART
  • Re-evaluate if your AUT supports Safari and your end-user uses Safari a lot
  • No direct support to tabs ( workaround exists)
  • Limited support in handling iFrames
  • Handling of authentication pop up ( not sure if any solutions exist)
  • Does not support "hover"
  • Chaining is complicated in the case of complex tests
  • No Async awaits just promise
  • The dashboard is paid, hence parallel execution is a paid feature, though a workaround exists ( search for sorry-cypress)
  • Only supports JS ( well, test automation engineers in majority are more comfortable with Java these days)

if you already have a java selenium automation framework in place and thinking to do the migration, then ask, what problem is not solved by the current Automation framework

what Cypress is providing which the current automation framework is not.

Comments

Popular posts from this blog

How to mock a response in Selenium

Some useful links for testing