QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Testing basics

Name the 7 testing principles.

The seven principles: testing shows the presence of defects, not their absence; exhaustive testing is impossible; early testing saves time and money. Also, defects cluster together, tests wear out and need updating, testing depends on context, and the absence of defects does not make a product successful. So instead of "no bugs" one says what was checked and what was not.

QA Fundamentals · Testing basics

All tests are green. Can you tell the manager there are no bugs in the release?

Before a release a manager asks: "No bugs?". All tests passed, no new defects in two days. The honest answer is more complicated than "yes" or "no", and the seven ISTQB testing principles explain it. This is not a list to memorise: each principle answers a concrete situation from work. The lesson explains what each means in practice and which decisions follow from it.

How it works

The principles capture what is common to any testing, regardless of the product or the tool. They can be grouped by the question they answer.

What you can claim. Testing shows the presence of defects, not their absence (1): found bugs prove defects exist, while finding none does not prove there are none. So a report says "no critical defects found in the tested scope", not "there are no bugs". Absence-of-defects fallacy (7): a bug-free product that does not solve the user's problem is still a failure.

How much to test. Exhaustive testing is impossible (2). Look at a form with five fields of ten values each:

5 fields x 10 values = 10^5 = 100,000 combinations
1 second per case  ->  100,000 s, about 28 hours
(without step order, browsers and different data)

So cases are chosen by risk and test design techniques (equivalence classes, boundary values), not by the wish to "check everything".

Where and when to test. Early testing saves time and money (3): an inaccuracy in the requirements found at review costs a conversation, while the same inaccuracy in production costs a code fix, repeated tests, a release and sometimes user trust. Defects cluster together (4): a small share of modules produces most bugs, so tests go more densely where bugs already appeared, onto complex or recently changed logic.

Defect clustering

Share of defects found per module (illustrative)55%20%10%8%7%PaymentCartSearchProfileRest
Figure 1. A typical picture: one or two modules give most of the defects. The numbers are illustrative.

How long tests keep working. Tests wear out (5, formerly the "pesticide paradox"): an unchanged set of tests stops finding new bugs over time, because the product adapted to it and new defects sit where there are no tests. The set is refreshed: cases for new changes, different data, exploratory testing on top.

How to choose an approach. Testing is context dependent (6): for a bank transfer accuracy, security and audit matter, while for an ad landing page speed and rendering across browsers matter more. There is no single "right" plan for all products.

Example: what follows from the principles at work

A user says the new "Promo code" feature in the cart does not work. Here is how concrete actions come out of the principles:

PrincipleWhat a QA Engineer does
Early testingReads the promo code requirements before development starts: do discounts stack, what happens with an expired code.
Exhaustive is impossibleDoes not try every amount and code, but takes classes (valid, expired, unknown) and boundaries (minimum amount).
ClusteringAdds more cases in the cart and payment, where bugs already were, than on the "About us" page.
Tests wear outAfter several releases refreshes the regression set and adds cases for new promo code scenarios.
ContextFor a shop running a campaign, checks load on sale day.
Shows presenceIn the report writes what was checked and what was not, instead of "everything works".
Absence fallacyAsks product whether the promo code really solves buyers' problem or only works formally.

The cost of a fix grows

Cost of a fix by stage (qualitative)ReqsDesignCodeTestsProd
Figure 2. The bar heights are qualitative, not a measurement: the further from requirements, the more people and steps it takes to fix the same thing.

Limits and alternatives

  • The principles describe patterns, not laws with numbers. Defect clustering is often described by the 80/20 rule, but that is an estimate, not a guarantee: in a given product the proportion differs.
  • The principles do not give a ready plan. Context, risks and test design techniques are needed to turn them into cases.
  • Wording changes between ISTQB versions. In older sources "tests wear out" is still called the "pesticide paradox"; it helps to know both names in an interview.

Common mistakes

  • Saying "there are no bugs". Correct: "no critical defects found in the tested scope". The first phrase promises what testing cannot give.
  • Trying to cover everything. The number of cases grows and the return falls. Risk and techniques give more than volume.
  • Not changing the regression set for years. It stays green but finds less and less that is new.
  • Testing only after development. A bug in requirements gets more expensive with every step.

Check yourself

A regression set of 400 tests was not changed for two years. Everything is green, yet new bugs regularly appear in production. Which principle applies and what to do?

Answer

Tests wear out. The set checks what it already checked, and new changes go past it. Review coverage of new features, add cases for recent bugs, remove obsolete tests and introduce exploratory testing.

The product fully matches the specification, no defects were found, yet users do not use the new feature. Which principle and what conclusion?

Answer

Absence-of-defects fallacy. No bugs does not mean the product is good: the specification may not match needs. Conclusion: besides verification you need validation with users or product.

In an interview. Junior: Testing shows the presence of defects, not their absence. Exhaustive testing is impossible, so we prioritise. Test early. Defects cluster in a few modules. The same tests stop finding bugs over time, so they are refreshed. Testing depends on context. A bug-free product nobody needs is still a failure. Middle/Senior: I use the principles as arguments in a risk conversation: instead of "no bugs" I say what was checked and what was not, I pick cases by risk and test design techniques, test modules with a defect history more densely, refresh regression regularly and ask whether users need the feature at all.

More articles in this chapter