Inspection
What is Inspection?
An inspection is the most formal and rigorous type of review, conducted by a trained moderator using clearly defined roles, checklists, and entry/exit criteria.
Key Characteristics
- Follows a strict, well-defined process with formal roles (author, moderator, reviewers, scribe).
- Uses checklists to guide reviewers in finding common types of defects.
- Defects are logged, tracked, and formally verified as fixed by the moderator.
- Requires more time and planning than informal reviews or walkthroughs.
Benefits of Inspection
Because of its rigor, inspection is highly effective at finding defects early, especially in critical documents like requirements and design specifications, significantly reducing downstream cost of fixing issues.
The Six Phases of a Formal Inspection
The structured method described here is often called a Fagan inspection, after Michael Fagan, who developed it at IBM. Its phases give inspection its rigour.
- Planning: the moderator checks that the document meets entry criteria, such as being complete and spell-checked, chooses reviewers, and schedules the meeting.
- Overview or kick-off: the author briefly explains the document's purpose and context, and the moderator hands out checklists and assigns focus areas.
- Individual preparation: each reviewer studies the material alone and notes possible defects. This is where most defects are actually found.
- Inspection meeting: a reader paraphrases the document section by section, reviewers raise their findings, and the scribe logs each defect with its location and severity. The meeting identifies problems but does not solve them.
- Rework: the author fixes the logged defects.
- Follow-up: the moderator verifies every fix and checks the exit criteria before the document is approved.
Who Does What
| Role | Responsibility |
|---|---|
| Moderator | Plans and runs the inspection, keeps the meeting focused, verifies rework |
| Author | Provides the document, answers questions, fixes defects; never runs the meeting |
| Reader | Walks the group through the material in their own words |
| Reviewers (inspectors) | Find defects, often each from a specific angle such as testability or security |
| Scribe | Records every defect, decision and open question |
Example: Inspecting a Requirements Page
Suppose the team inspects a requirement for a password reset feature. Using a checklist, reviewers log issues like these:
- Ambiguity: "The reset email should arrive quickly." Quickly is not measurable, so it cannot be tested.
- Missing case: nothing says what happens if the email address is not registered.
- Conflict: one section says reset links never expire, another says they expire after use.
- Security gap: no limit on how many reset requests one account can trigger.
Fixing these on paper takes minutes. Found after coding, each would need code changes, retesting and possibly a patch.
Sample checklist items for requirements
- Is each requirement testable and measurable?
- Are error and edge cases described?
- Are terms used consistently throughout?
- Does any requirement contradict another?
- Is every requirement traceable to a business need?
Inspection Compared With Lighter Reviews
| Aspect | Informal review | Walkthrough | Inspection |
|---|---|---|---|
| Led by | Anyone | Author | Trained moderator |
| Preparation | Optional | Light | Mandatory |
| Checklists and metrics | No | Rarely | Yes |
| Main goal | Quick feedback | Shared understanding | Finding defects |
What spoils an inspection
- Criticising the author instead of the document, which makes people defensive and hide work.
- Reviewing too much material in one session, so attention drops and defects are missed.
- Debating solutions during the meeting instead of just logging the defect.
- Reviewers arriving unprepared, turning the meeting into a first reading.
Ready to master real-world software testing?
Learn manual and automation testing hands-on with mentor-led sessions.