E2E Test Automation Anti-Pattern: Using Developers-Coded Utility For Preparing Test Data

A typical software engineer’s thinking, violates the principle of “Black-box/White-box testing”, causes many issues and introduces limitations.

Zhimin Zhan
6 min readSep 19, 2023

--

This is an article in the E2E Test Automation Anti-Pattern series.

On one E2E Test Automation rescue mission, I asked the test engineer to show me how he typically runs an automated E2E test. It took him a minute or so to fiddle with a couple of configuration files before triggering a run. Then, I said, “This was on the dev server, right? Can you make it run against the Test server?”. He said, “OK”, and then went to change some entries in the configuration files. This is Wrong! for E2E Test Automation.

Firstly, we need to understand what “End-to-End Testing” really means. According to the World Quality Report 2018–19, “The first time ever that `end-user satisfaction” is the top objective of quality assurance and software testing strategy”.

The audience of E2E Automation is End-User. While an end-user might not run E2E automation scripts, the scripts must be written from an end-user’s perspective. This is quite obvious.

--

--

Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.