Design Patterns for sustainable automatic E2E Tests with cypress - Christian Dangl
Vložit
- čas přidán 19. 01. 2022
- Welcome to the fifth event of the Cypress DE Community Group! 🎉
Design Patterns for sustainable automatic E2E Tests - Christian Dangl
If your automated E2E tests easily fail, or if it’s just hard to maintain them, then this talk is perfect for you! Christian will tell you everything you need to know about test stabilization and code quality improvements using OOP and design patterns in your E2E tests.
Learn advanced development techniques with real-world examples, build scenarios, handle different versions of your host platform (for plugin developers) and run your tests automatically in pipelines.
Christians Twitter: / boxblinkracer
Chrstians Linkedin: / cdangl
Join our meetup community: www.meetup.com/de-DE/cypress-...
Discord: / discord
Twitter: / decypressusers - Věda a technologie
It was a rich content and well-implemented pattern for scalability and stability of E2E tests. Thank you and hats off!
00:01 Introduction
2:42 Test Stability
4:05 Goals
5:36 Basics
10:39 POM - Page Objects Pattern
16:06 Cypress Commands
17:39 Keyword Driven (Actions) + Object Repository
26:00 Scenarios
29:26 Advanced "Godies" - Host Platforms Versions
33:11 Advanced "Godies" - Local/Remote Testing
34:18 Pipelines
42:25 Eding
This is a really good talk thank you
Hallo Freunde, sehr schön und vielen Dank. Wollt ihr mal was mit uns live auf YT machen?
This is insightful..nice video
I learned a lot, thank you
Looks great!, sadly I'm too low level to understand some things by the moment. Thanks.
Thanks, I have learned a lot. Do you recommend to use cucumber with cypress for real projects, or you prefer standard normal syntax?
First of all, Thanks you for explaining the various Design Patterns. This opens up endless possibilities as per the application under test.
One question I had is. If we are writing actions, how do we assert something in between the steps performed in the action.
For example. The action contains a list of steps to fill a form.
I want to assert whether my application has a green check box besides the postal code field, after it validates whether its in proper format. There are few other fields to be completed , before the action is complete.
Please, this would help me clear a lot of confusion and utilize the power of abstraction.
Probably you would need do add so called hooks, which would be empty methods called by your action class between steps.
But then you'd have to inherit the Action class and implement those methods.
Alternatively you could of course use any other technique with composition, but from my perspective it is already too much for testing :)
How do we do the assertion or verification in page object or action base pattern
I do not understand in detail why it is a better option to create pages with the actions than to create multiple commands files. I would think that creating actions would be a waste of the opportunity to use the commands, could you give me a more detailed explanation please, I would appreciate it very much
I have also the same question so did you get the answer for it, please let me know as well
Great stuff