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

Web application development challenges

As highlighted in the previous chapter, the digital transformation over the years has increased the complexities in building top-notch web applications. By top-notch, we mean apps that can function properly across all web browsers, mobile devices, and operating systems, across various environment conditions, and under massive load conditions. In addition, with the rise of digitalization, security and accessibility have become key requirements for any application prior to its release.

In an insightful report (https://insights.developer.mozilla.org/reports/mdn-browser-compatibility-report-2020.html) published by two of the leading browser vendors, (Mozilla and Google), it was clear how complicated it is to build a web application that is compatible with all technologies and platforms in the market.

One of the top items found in this study was ensuring compatibility with old browsers, even with the old and end-of-life Internet Explorer 11 browser...