Skip to content Skip to sidebar Skip to footer

Automation tests: Anti-pattern with multi-browser verification

Using the same automated check for all browsers means you’re likely to miss some browser-specific aspects. So why not take this into account and look for the right information. Avoid anti-pattern”, stressed Stefan Papusoi, test specialist at q-leap.

Recently, I was reading a discussion on the Test Community Automation Slack channel, in which one of the members was asking others for options for extending their smoke checks to run on multiple browsers. The others gave excellent advice on using tools such as Sauce Labs or virtual machines, which is perfectly valid, but without realizing it, they fell into a trap. They demonstrated what I believe to be an important anti-pattern when it comes to audits, which I’d like to discuss today.

What is this anti-pattern and why is it an anti-pattern?

Consider that we’re writing a check that does the following using WebDriver that we want to run on different browsers:

  1. Complete and submit a simple HTML form.
  2. Check that the backend redirects us to a new page.

Running this check on multiple browsers is the anti-pattern. Why? Well, it boils down to what we think we’re checking. So let’s look at different assumptions we could make about what we’re verifying:

  • Check that each browser renders the form correctly so that it can be filled in by a human […].
  • Check that each browser takes us to the same page after submission […].
  • Check that each browser uses JavaScript correctly to create the form […].

Read the full article here.

ABOUT THE Q-LEAP EXPERT RECOMMENDING THIS ARTICLE


Stefan Papusoi is a test specialist at q-leap. As a context-oriented and exploratory tester, he is constantly expanding his experience in testing, script automation, and test process management and improvement.

Written by : Mark Winteringham
Recommended reading by Stefan Papusoi, Test Specialist at q-leap

Discover more from Q-Leap

Subscribe now to keep reading and get access to the full archive.

Continue reading