Harmonising Selenium with Playwright and Cypress: A Journey Through Network Event Handling

Introduction

Harnessing Network Events in Testing

Playwright and Cypress are well-known for their ‘autowait’ feature. This neat trick aligns elements seamlessly and avoids many ‘test flake’ issues, like Selenium’s StaleElementException and NoSuchElementException. However, I’m skeptical about this so-called ‘magic’ in testing. A reliable test should avoid unexpected variables that are meant to simplify the process. I don’t like accepting hidden 3rd party logic influencing my tests without scrutiny; I believe in thoroughly dissecting and analyzing everything to ensure test reliability. A deep understanding is also very valuable for troubleshooting and grasping what tests are actually doing with whatever’s under test.

Lessons Learned from Testing Restful-Booker: A 2-hour Deep Dive into a Web Service

How do I put this? Sometimes you’ve got to test. Not talk about testing, not agonise over planning, but get stuck into adding value as quickly as possible. In this blog post I investigate the popular restful-booker web service. From first impressions to reviewing the shippable quality of the software. Let’s imagine I’ve dropped into the project late, I know nothing about what’s under test, and I’ve only got two hours. We’ll see how it goes!

Pagination


© Joseph Ward 2018-2024. All Rights Reserved.

Powered by Hydejack v8.4.0