Right thing, built right
Last updated
A program can do everything its specification says, pass every test, and still be no use to the people it's for. Software engineers keep two questions apart: did we build it right, and did we build the right thing? In this lesson you'll meet both, and the list of qualities that “works” is really made of.
By the end of this lesson you can
- Tell verification from validation
- Explain how software can pass every test and still fail its users
- Name the main quality characteristics of ISO/IEC 25010 and match complaints to them
Two questions
Every piece of software has to pass two different checks:
- Verification: did we build it right? Does it match what we wrote down: the requirements, the design, the specification? Checked by reviews, tests and inspections against those documents.
- Validation: did we build the right thing? Does it meet the real need of the people it's for, in the place they'll use it? Checked by watching real users, trials and acceptance by the client.
The IEEE's standard on the subject, IEEE 1012, treats them as two separate activities, and so does ISO/IEC/IEEE 12207. One can pass while the other fails.
Built right, and still wrong
Suppose the team had written Pila's specification without visiting the health centre: "Patients sign in with email and password, and tap to get a number." Here are two versions:
Email address
Password
Sign in to get a number
New here? Create an account
- Every item in the spec: done
- All 120 tests pass
- Needs a smartphone, data and an email address
PILA Barangay San Roque health centre. Your number is 42. We will text you when 5 people are ahead of you.
- Text PILA to the centre’s number from any phone
- A smartphone page too, for those who have one
- Lola Remy can use it
Version A is verified: it does everything its spec says, and every test passes. But most of the health centre's patients share one basic phone per family and have no email. Lola Remy can't use it. It fails validation.
Version B came from a spec written after watching the real queue. It's verified against that spec too, and it's also valid.
The mistake in A wasn't in the code. It was in the requirements, and no amount of testing against them could find it. Validation needs the people the software is for.
Quality is more than “works”
"Does it work?" usually means "does it do what it should?" That's only one part of quality. The international standard for software quality, ISO/IEC 25010 (2023 edition), names nine quality characteristics:
| Characteristic | The question | Pila example |
|---|---|---|
| Functional suitability | Does it do the right things, correctly and completely? | Priority numbers go to the right people |
| Performance efficiency | Is it fast enough, without wasting resources? | A number in seconds, even at 7 a.m. on a Monday |
| Compatibility | Does it work alongside and with other systems? | The barangay’s records system can read its reports |
| Interaction capability | Can people use it easily, including people with disabilities? | Large text; works by text message |
| Reliability | Does it keep working, and recover from failures? | A power cut doesn’t lose the queue |
| Security | Is data protected from people who shouldn’t have it? | Nobody can see who is visiting and why |
| Maintainability | Is it easy to change and fix? | New opening hours take an hour, not three weeks |
| Flexibility | Can it be moved or adapted to new settings? | Another health centre can use it |
| Safety | Does it avoid harm to people? | It never tells someone with an emergency to wait |
The 2023 edition added safety, and renamed usability to interaction capability and portability to flexibility. Older books use the old names. Requirements about these qualities, not about features, are the subject of lesson 3.6.
Match eight complaints
Real complaints about software rarely use these words. Which characteristic is each complaint about?
0 of 8 placed right
“It takes a whole minute to give me a number on Monday mornings.”
“The letters are too small for me to read, and the buttons are tiny.”
“It lost my number when the power went off.”
“My neighbour could see my name and why I was visiting.”
“It gives priority numbers to everyone, not only seniors and pregnant women.”
“Changing the opening hours took the developers three weeks.”
“The barangay’s records system can’t read Pila’s daily report.”
“We couldn’t move it to the city’s new server; it only runs on the old one.”
Spot the trap: "all the tests pass"
It’s the end of June. Marco shows the dashboard: every one of Pila’s 120 tests is green. “We’re done. Let’s tell Kap. Ernesto it’s ready.”
What happens if…
Check what you learned
Sources
Every claim on this page comes from these sources: the standard, the founding text of a method, a study, or the official record of a project, from the body that publishes it. Industry reports are labelled as such.
- IEEE 1012, Standard for System, Software, and Hardware Verification and Validation: verification and validation as two separate checks
- ISO/IEC 25010:2023, Product quality model: the nine quality characteristics; safety added, usability and portability renamed in 2023
- ISO/IEC/IEEE 12207:2017, Software life cycle processes: verification and validation processes