Less Less pain ainful l E2E tes ests s wit ith Cy Cypres - - PowerPoint PPT Presentation

less less pain ainful l e2e tes ests s wit ith cy cypres
SMART_READER_LITE
LIVE PREVIEW

Less Less pain ainful l E2E tes ests s wit ith Cy Cypres - - PowerPoint PPT Presentation

Less Less pain ainful l E2E tes ests s wit ith Cy Cypres ess.io Pavel Kruhlei, FOSSDEM 2019 Quality Engineering Lead in fintech startup in Amsterdam 10+years in QA. 5 in automation. About me DevTestSecOpsWhatewer, big fan of


slide-1
SLIDE 1

Less Less pain ainful l E2E tes ests s wit ith Cy Cypres ess.io

Pavel Kruhlei, FOSSDEM 2019

slide-2
SLIDE 2

About me

Quality Engineering Lead in fintech startup in Amsterdam 10+years in QA. 5 in automation. DevTestSecOpsWhatewer, big fan of serverless Free time: bouldering, drinking Belgium beer

slide-3
SLIDE 3

What’s wrong with Selenium?

slide-4
SLIDE 4

What else?

slide-5
SLIDE 5

What is Cypress?

JS (TS) framework for test automation Runner/Debugger app SAAS for reporting and balancing

slide-6
SLIDE 6

Why Cypress?

slide-7
SLIDE 7

Cypress and it’s dev-obsession

  • Bundled tools
  • Reporters (junit,

teamcity etc)

slide-8
SLIDE 8

Cypress and it’s dev-obsession

  • Extendable by plugins
  • Easy setup
  • CI-ready
  • Debugging
  • Stubs, spies and clocks
  • Automatic waits
slide-9
SLIDE 9

Test layers

Unit Integrstion E2E

slide-10
SLIDE 10

Unit tests

slide-11
SLIDE 11

Integration test

slide-12
SLIDE 12

E2E Tests (how we build it)

Test suites per business areas Flows Sub-flows Page-Objects Locators and Methods

slide-13
SLIDE 13

Traid-

  • ffs

Chrome-only Its a test automation tool still, not a Swiss army knife (no spider, performance tests or 3rd party tests) Single-browser, single tab Same domain pages

slide-14
SLIDE 14

Cypress test strategy

Stub/not Stub Deterministic tests Independent tests No XPATH Control application state Do not test 3rd parties Multiple assertions are fine

slide-15
SLIDE 15
slide-16
SLIDE 16