How does verification differ from validation?
Verification confirms the product is built right, to the requirements, while validation confirms the right product is built, fit for users' needs. A product can fully match the specification and still be useless, so validation is strengthened with questions to requirements, demos and UAT. Both can be static or dynamic: the difference is the question asked, not whether code runs.
QA Fundamentals · Testing basics
The feature is built exactly to the spec, and users do not need it. Who missed the mistake?
A team implemented the delivery calculation exactly per the specification: free from 1000 UAH. All tests against the spec are green. After release buyers go to a competitor where delivery is free from 500. There is no defect in the code, yet the product does not solve the problem. Verification and validation describe exactly this difference: "built right" and "built the right thing".
How it works
Per ISTQB, verification confirms that the result meets the specified requirements: are we building the product right. Validation confirms that the result is fit for its intended use and meets stakeholders' needs: are we building the right product. Between the need and the product stands the specification, and it gives two different questions.
Two questions about one chain
Why it is split this way. A mistake can sit in two places. If the requirements are right and the code deviated, that is a verification failure, found by tests against the requirements. If the code perfectly implements wrong requirements, verification is green but validation fails: tests against the spec will not see this, because they rely on the spec themselves. So running test cases alone is not enough: you also need feedback from those the product is for.
Example: delivery from 1000 UAH
One feature, two checks
Built right?
Amount 999 UAH: delivery is paid. 1000 UAH: free. The behaviour matches the spec, the test is green.
The right thing?
Buyers abandon a 700 UAH cart because a competitor gives free delivery from 500. The threshold in the spec does not match the market.
Verification and validation in short
| What we compare | Verification | Validation |
|---|---|---|
| Question | Built right? | Built the right thing? |
| Checked against | Requirements, specification | The user's need |
| Examples | Test against the spec, code review | UAT, demo, usability |
| What it finds | Deviation from requirements | Wrong, missing or unneeded requirements |
How to tell them apart. If you check that the code does what is written, that is verification. If you check that what is written solves people's problem at all, that is validation. Acceptance criteria on each story give verification, while a conversation with stakeholders at requirements review and a demo at the end of the sprint give validation. In the ISTQB glossary, verification confirms that a work product fulfils its specification, and validation that it matches stakeholders' needs. In practice the two words are often used as synonyms of "testing", so in an interview it helps to name the difference in the question right away.
A test case will not find the delivery-threshold problem, since it checks that a requirement is fulfilled. It is found by those who understand the user: the product manager, the analyst, UX research, a demo for the business, UAT, conversion metrics. A QA Engineer who asks in the requirements review "why exactly 1000?" contributes to validation before any code.
| Activity | What it mostly is |
|---|---|
| Code review, static analysis | Verification: code against standards and requirements |
| Unit and system tests against the specification | Verification |
| UAT, demo to users, beta | Validation |
| Usability testing | Validation |
| Requirements review with the business | Both: consistency of the document and fit to the need |
Limits and alternatives
- Do not confuse the pair "verification/validation" with the pair "static/dynamic". Verification can be static (review) or dynamic (a test against the spec). Validation can also be static: a requirements review with stakeholders. People often say "verification is static, validation is dynamic", which is only a typical tendency, not a rule.
- The V-model shows verification and validation separately: each development level has a matching test level. Mnemonic: verification asks "right?", validation asks "the right thing?".
- In Agile the line blurs: a demo every sprint and constant feedback make validation part of every iteration rather than a final stage.
Common mistakes
- Assuming green tests against the spec mean success. They prove conformance to the spec, not the usefulness of the product.
- Swapping the terms. Mnemonic: "building it right" is verification, "building the right thing" is validation.
- Thinking validation starts only with UAT. Questions to the requirements, prototypes and demos give earlier validation and cheaper fixes.
- Not asking "why". A requirement without a goal and a user gives no material for validation.
Check yourself
A developer implemented a price filter as the spec says, but users cannot find a product by range. Which check passed and which did not?
Answer
Verification passed: the behaviour matches the spec. Validation did not: the filter does not let people do what it exists for. The cause is likely in the requirements, so go back to the analyst and users, not only to the code.
Is it true that verification is always static and validation is always dynamic?
Answer
No. That is only a typical tendency. A test against the specification is dynamic verification, while a requirements review with stakeholders is static validation. The difference is in the question we answer, not in whether we run code.