0
0
Cypresstesting~5 mins

Cypress architecture (runs in browser) - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main environment where Cypress tests run?
Cypress tests run directly inside the browser, the same place where your application runs. This allows Cypress to control and observe the app closely.
Click to reveal answer
intermediate
How does Cypress communicate with the browser during test execution?
Cypress uses a special server and a driver inside the browser to send commands and receive information, enabling real-time control and feedback.
Click to reveal answer
beginner
Why is running tests inside the browser beneficial in Cypress?
Running tests inside the browser lets Cypress see everything the user sees, making it easier to catch UI bugs and interact with the app naturally.
Click to reveal answer
beginner
What role does the Cypress Test Runner play in the architecture?
The Test Runner is the user interface that shows tests running in real time inside the browser, letting you watch commands and app behavior step-by-step.
Click to reveal answer
intermediate
Explain how Cypress handles asynchronous commands in its architecture.
Cypress queues commands and runs them one by one inside the browser, automatically waiting for each to finish before moving on, so you don't need manual waits.
Click to reveal answer
Where do Cypress tests execute?
AInside the browser alongside the application
BOn a separate server outside the browser
COnly in the command line interface
DIn a virtual machine
What does the Cypress Test Runner display?
AOnly test results summary
BDatabase queries
CServer logs
DReal-time test execution inside the browser
How does Cypress handle waiting for commands to finish?
ARuns all commands simultaneously
BRequires manual wait commands
CAutomatically queues and waits for each command
DIgnores command completion
Which component helps Cypress communicate with the browser?
ACommand line tool
BBrowser driver inside the browser
CDatabase connector
DExternal API server
Why is running tests inside the browser useful?
AIt allows direct observation and control of the app
BIt speeds up server response
CIt reduces browser memory usage
DIt hides the app from the user
Describe the main components of Cypress architecture and how they work together inside the browser.
Think about how Cypress controls the app and shows test progress.
You got /4 concepts.
    Explain why Cypress running tests inside the browser is different from other testing tools.
    Compare Cypress to tools that run tests outside the browser.
    You got /4 concepts.