Book Image

A Frontend Web Developer’s Guide to Testing

By : Eran Kinsbruner
3 (1)
Book Image

A Frontend Web Developer’s Guide to Testing

3 (1)
By: Eran Kinsbruner

Overview of this book

Testing web applications during a sprint poses a challenge for frontend web app developers, which can be overcome by harnessing the power of new, open source cross-browser test automation frameworks. This book will introduce you to a range of leading, powerful frameworks, such as Selenium, Cypress, Puppeteer, and Playwright, and serve as a guide to leveraging their test coverage capability. You’ll learn essential concepts of web testing and get an overview of the different web automation frameworks in order to integrate them into your frontend development workflow. Throughout the book, you'll explore the unique features of top open source test automation frameworks, as well as their trade-offs, and learn how to set up each of them to create tests that don't break with changes in the app. By the end of this book, you'll not only be able to choose the framework that best suits your project needs but also create your initial JavaScript-based test automation suite. This will enable fast feedback upon code changes and increase test automation reliability. As the open source market for these frameworks evolves, this guide will help you to continuously validate your project needs and adapt to the changes.
Table of Contents (19 chapters)
1
Part 1 – Frontend Web Testing Overview
7
Part 2 – Continuous Testing Strategy for Web Application Developers
11
Part 3 – Frontend JavaScript Web Test Automation Framework Guides

An overview of the web testing market

The web testing market constantly changes, and newer versions of existing frameworks are being developed with brand new solutions. A great resource to learn about what's trending, what's declining, and how big the community is behind leading open source technologies is the npm trends website (https://www.npmtrends.com/site). When focusing on the top four frameworks available for frontend developers that support JavaScript, at the time of writing this book, Cypress emerges as the leading framework. As highlighted in an npm trends report (https://www.npmtrends.com/cypress-vs-playwright-vs-selenium-webdriver-vs-puppeteer), Cypress has over 3 million weekly downloads compared to Selenium WebDriver, which has just over 2 million downloads. Keep in mind that we are only showing in this resource the JavaScript flavor of these frameworks. For frameworks such as Selenium and Playwright that support more language bindings, the market share and...