Part 1 - Creating your First script.

Introduction

  • JavaScript End to End Testing Framework.
  • Fast, easy and reliable testing for anything that runs in a browser.
  • It provide a complete end-to-end testing experience.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/0b85464c-96a7-480f-8cac-b3baa4d57a24/Untitled.png

What is Cypress

  • Complete Testing Framework for UI and Front End.
  • It is build for E2E of your web Application.
  • You can write Integration Test, Unit and UI Test also.

Why to use Cypress?

  1. Super easy to install
  2. work with most of SPA or Non SPA websites
  3. Test are written in JS ( cons)
  4. Really super fast.
  5. Test are not much flaky.
  6. Lots of Built in Tools like screenshot, Video and report.
  7. CI/CI integration.
  8. Debug tools like go back and forward.

Get started with Cypress

  1. npm install —save-dev cypress
  2. cy.visit("https://bing.com");
  3. npm cypress open
  4. npm cypress run


Complete and Continue