Professional Documents
Culture Documents
Cypress 101 PDF
Cypress 101 PDF
io
Written By
Giridhar Rajkumar
Then this is the right handbook for you. This handbook contains all basic information
you need to start with Cypress.io Test Automation. It has tips that you might find very
helpful.
By reading this handbook, you will be able to nurture the basics of Cypress.io and the
dashboard service setup.
தி3வ45வ6
So, learn that you may full and faultless learning gain,
Then in obedience meet to lessons learnt remain
Thiruvalluvar
Cypress.io is NOT Selenium and hence there is a new architecture been built
from the ground up. It has all-in-one package leaving no extra efforts to be
spent for Test Automation framework design. Cypress.io is very fast and hence
it is majorly used by Developers than QA Engineers to perform unit testing.
Pre-requisites
1. NodeJS
$ mkdir LearningCypress
$ npm init
$ ./node_modules/.bin/Cypress open
7. Once executed, Cypress.io Server will be opened. Cypress.io will ask you
whether it can create a sample project for you. Select Ok and create the
sample project.
B
r
o
w
s
e
r
s
T
e
s
t
s
10. If you see the tests, they are written in Mocha and Chai fashion. It has
describe() and it() blocks.
11. Now let’s go back to Cypress.io Server and click on the assertion.spec.js
file from the tests list
13. So basically, when we do change in the Visual Studio Code for the
assertion.spec.js tests and save it, Cypress.io automatically triggers the
tests for you without you running it manually to kick start
Let’s now see how to configure learning Cypress.io project with Cypress.io
Dashboard.
2. Login with your GitHub credentials. Once logged in you will be able to
see the below screen in Cypress.io Server –
https://dashboard.Cypress.io./
6. You will observe that the tests have not run in this project.
7. Let’s execute some tests and upload the test results. To do that we need to
open our terminal and execute the below command –
8. Once executed, another Cypress.io Server install will be created and the
tests will start execute heedlessly
12. During the test execution, the tests results are synchronously updated to
the dashboard and the videos are also uploaded accordingly. There are
options to see the screenshots and videos as well
However, the above limitations are addressed by the Selenium at the moment
and hope Cypress.io will come up with the plans for these trade-offs in future.
References
1. Cypress Download - https://www.cypress.io/
2. Dashboard - https://dashboard.cypress.io
3. Trade-offs - https://docs.cypress.io/guides/references/trade-
offs.html#Permanent-trade-offs-1