Sunday, August 1, 2021

What is Cypress and its Architecture?

What is Cypress?

Cypress is an open source and front end testing tool for modern web applications. Its execution is very fast compared to other tool. Basically cypress is used to overcome the hurdles of React and AngularJS based applications testing. Both developers and QA automation engineers can use cypress. Developers use it for Unit and integration level testing as well as QA guys use it for functional end to end testing. Cypress is a faster, effortless and dependable tool for testing any applications that run on browsers.

Cypress Architecture or How it works?

In this architecture, Cypress runs inside the browser. Node.js server that is running on operating system. Cypress makes a connection with browser through the proxy. Cypress test is running on browser and application is also there in. Cypress starts with the proxy and makes connection via web socket. Through the proxy cypress gets the HTTP request from application inside the browser, ensures which tests need to execute and finally cypress sends the HTTP response via proxy to the browser.







Figure-1: Cypress Simple Architecture

No comments:

Post a Comment