Have you defined the end-to-end test selection process in your project?

Sajitha Pathirana
3 min readApr 19, 2023

Almost every story of testing starts with Cohn’s Agile Testing Pyramid or most familiarly the Testing Pyramid. If we re-call the pyramid, at the base you have unit tests which occupy most of the tests and then integration tests, occupy the next highest while end to end tests at the top occupies the least.

Photo by Eugene Tkachenko on Unsplash

If the game was played the other way round, you will end up in an anti-pyramidal pattern which would be quite unstable. Instability will lead to lots of maintenance overhead and would be costly.

Hence this leads us to the fact that our goal should be to have lesser E2E tests. Most importantly we need to have a solid and defined criteria to select the right candidates for E2E tests.

Let’s start with an example, we have application to register users with a form containing fields; First Name, Last Name, Email and Password.

Business Validation

· First Name, Email and Passwords are mandatory fields.

· First Name doesn’t accept numerals.

· Email should be valid.

· Password should have at least 8 characters with uppercase, lowercase, numbers, and special characters.

--

--

Sajitha Pathirana

A Test automation enthusiast, passionate to help the teams to enhance their testing journey with his decade of experience in the field.