TEST EVERYTHING!
„Vladyslav Romanchenko,
„Senior QA Automation/UI
Developer @Luxoft
„4 years experience in
Testing and Automation
WHO AM I?
HOW HAVE I SWITCHED?
WHAT DID I HAVE!
„Worked as a Business Director
„Spoke English really well
„Had experience in IT support
STEPS I’VE TAKEN TO GET FIRST JOB OFFER
„Studied for 2 months on course for Manual
QA
„Spent 18 weeks sending 10-20 CV’s each
week
„Failed 12 interviews and passed 6 interviews
STEPS I’VE TAKEN TO GET FIRST JOB OFFER
„Wrote down every question from the
interview
„Found answers, learned the subject and
practiced it
WHAT DID I DO NEXT
„Instead of 30 things to do before 30 made
list of 30 technologies to learn to be able to
do anything after 30
„Learned Core Java
„Learned Test Automation
WHAT DID I DO NEXT
„Have taken SDET course
„Learned JavaScript
„Studied patterns and algorithms
„Currently I’m getting MS in CS
HOW TO BECOME A WEB DEVELOPER
CYPRESS VS SELENIUM
CYPRESS VS SELENIUM
„Quick Preview
WHY CYPRESS IO
„It’s a new and shiny thing
„You can write tests on JavaScript
„It’s faster than Selenium
„You have Time Travel, videos and
screenshots
WHY CYPRESS IO
„Built-in “waits”
„All the needed Requests, Mocks and
Asserts are available out of a box
„You can write asynchronous code
synchronously
SELENIUM VS CYPRESS
„Selenium Pros:
Can be used with any programming
language
Supports different browsers
Can switch tabs
Can be ran in parallel
SPEED
SELENIUM VS CYPRESS
„Should be Super Fast
It doesn’t use HTTP requests like Selenium
SELENIUM VS CYPRESS
„How much time would it take
Selenium to enter email, password
and press Submit?
SELENIUM VS CYPRESS
„How much time would it take Selenium to
enter email, password and press Submit?
SELENIUM VS CYPRESS
„What about Cypress?
SELENIUM VS CYPRESS
„What about Cypress?
SELENIUM VS CYPRESS
„Cypress 786ms VS Selenium 386ms
„Cypress turned out to be 2 times
slower in action
SELENIUM VS CYPRESS
„This is the price you pay for Time Travel,
snapshots, screenshots, video, etc.
„In production it can be faster, because
you have all the requests, direct access to
Local Storage and JS
WAITS
SELENIUM VS CYPRESS
„Has all the waits (Actionability) ready from
the box
SELENIUM VS CYPRESS
„How many waits do we need to
write, before we can click an
element in Selenium?
SELENIUM VS CYPRESS
„How many waits do we need to write, before we
can click the element in Selenium?
Wait for element to be present in DOM
Wait for element to be in view
Wait for element to have size bigger then 0
Wait for element not be covered by other
element
…..
SELENIUM VS CYPRESS
„What waits do we have in Cypress?
SELENIUM VS CYPRESS
„What waits do we have in Cypress?
SELENIUM VS CYPRESS
„Everything that we used to have to write
manually in Selenium we now have in
Cypress?
SETUP
https://www.cypress.io/how-it-works/
CYPRESS HOW TO
„Easy to install and setup:
>npm install cypress --save-dev
>cypress open/run
CYPRESS HOW TO
„Easy to install and setup
https://docs.cypress.io/guides/getting-started/writing-your-first-test.html
CYPRESS HOW TO
„Write asynchronous code
synchronously
CYPRESS HOW TO
„Write asynchronous
code synchronously
CYPRESS DRAWBACKS
CYPRESS DRAWBACKS
„Modules are overridden
CYPRESS DRAWBACKS
„Modules are overridden
CYPRESS DRAWBACKS
„Modules are overridden
How to deal with it?
CYPRESS DRAWBACKS
„It doesn’t support cross-browser testing
CYPRESS DRAWBACKS
„It doesn’t support cross-browser testing
It is going to be released soon. It’s one of
the main priorities for the Cypress team
CYPRESS DRAWBACKS
„It can’t switch windows.
CYPRESS DRAWBACKS
„It can’t switch windows.
So if you need to test something in few
windows it’s better to choose other tool
Q & A

Cypress testing