The seven principles of software testing


Time has evolved since the dawn of software testing and we have made giant leaps in the techniques used and the technologies used to prevent defects in the software that we use every day.

Over that period, the below principles have been shown to act as a general guideline for software testers to effectively use their time, and shape their mindset during the software testing process.

Testing shows the presence of defects, not their absence

Testing at its core is designing and executing a set of test cases to show that defects are present in the system in development. Not their absence. 

Testing significantly reduces the probability of undiscovered defects present in a system. But even if there are multiple rounds of testing, the claim of ‘this software is bug-free’ would be false.

Exhaustive testing is impossible

Testing every feature of a piece of software is impossible (unless, the application is basic).

Take a relatively simple application, such as a calculator, for example. Testing every single combination of inputs would take millions of test cases and thousands of hours of a testers time to execute.

Instead, this is where testing techniques such as risk-based testing and priority testing aid in their ability to focus efforts on the more important and riskier parts of the application.

Early testing saves time and money

We develop a piece of software to a set of requirements that have originated from the client. But if those requirements contain an error and it remains unnoticed. The defect will make it into the developed piece of software and once caught will be far more expensive to correct than it would be at the start of the process.

Testing efforts should begin as early as possible to catch errors when they are cheapest to correct.

Defects cluster together

This principle states that most of the defects in the system being tested can be located in a few modules (otherwise known as the 80/20 rule, or Pareto analysis).

Test teams, therefore, need to ensure that their test cases evolve as parts of the system become increasingly stable overtime to ensure that they are constantly on the lookout for new bugs.

Beware of the pesticide paradox

Imagine for a moment that you are a gardener. You’re the talk of the local neighbourhood for having such a well-kept garden, beautiful flowers in full bloom and not one nasty weed in sight. You attribute this wonder of horticulture to using one type of pesticide that you have been using for years and wouldn’t dream of using another brand.

Then one day you wake up and there are weeds EVERYWHERE. What happened to your beautiful garden? Well, you become a victim of the security that you thought your favourite weed prevention solution gave you.

The same false fallacy can affect your test cases if we constantly repeat them overtime. They may discover some critical bugs initially, but eventually, they will stop finding defects and their effectiveness won’t be as high as they once were.

Therefore, it is important to review your test cases regularly and update/change them to increase the effectiveness of your defect prevention process.

Testing is context-dependent

The software testing activities depend on the application being developed.

For example, a banking application is far more complex than a mobile game and would require additional test cases and additional risk factors to consider.

Absence-of-errors is a fallacy

So you have run your test cases, discovered some highly critical bugs and retesting to confirm the issues are corrected, the application is defect-free and ready to be released, yes?

Well. No.

Going back to the first two software testing principles above. Testing only shows that defects are present in a piece of software. Not that it is defect-free. We can’t test everything. So it’s possible that defects are undiscovered.

So as testers, we can not say that the software is free of errors and ready for release.

What we can do however is provided confidence to stakeholders that the end product meets the needs of the business and user requirements and we are delivering a high-quality product free of known defects.

Posted by Kevin Tuck

Kevin Tuck is an ISTQB qualified software tester with nearly a decade of professional experience. Well versed in creating versatile and effective testing strategies. He offers a variety of collaborative software testing services. From managing your testing strategy, creating valuable automation assets, or serving as an additional resource.

Leave a Reply