Module 05

Black, white & grey box — three ways to look at software

Every test is designed from a point of view: knowing nothing about the code, knowing everything, or something in between. Master all three perspectives and you can test anything.

Illustration of a black box, a transparent box with gears, and a grey box side by side

Explore each technique

Blackbox testing — test what it does, not how

The tester knows nothing about the internal code. The software is a sealed black box: inputs go in, outputs come out, and the only question is whether behavior matches requirements. This is how your users experience the product — which is exactly why it matters.

  • Based on requirements and specifications, not source code
  • No programming knowledge required — perfect starting point for new testers
  • Common methods: equivalence partitioning, boundary value analysis, decision tables
Example — boundary value analysis Rule: age field accepts 18–60.
Blackbox tests: 17 (reject), 18 (accept), 60 (accept),
61 (reject), blank (reject), "abc" (reject).
No code was read — only the rule and its edges.

Side by side

AspectBlackboxWhiteboxGreybox
Code knowledgeNoneFullPartial (design/architecture)
Who usually does itTesters, end usersDevelopers, SDETsQA engineers
Based onRequirements & specsSource code structureSpecs + design documents
Typical levelsSystem, acceptanceUnit, integrationIntegration, API, security
FindsMissing/wrong functionalityLogic errors, dead codeIntegration & data-flow defects
Programming neededNoYesSome

You've completed the path. Go back to the knowledge check and watch your score go green — or start again from Testing Basics to lock it in.

Back: Automation Testing Finish: take the quiz