Skip to content
GabineteTools for thinking

No. 0328Workflow and delivery

White-box testing (clear-box testing)

Half opaque paper box and half crystal paper; brass pins go through the window and point to a broken yellow bond.

The table / Model card · No. 0328 · Workflow and delivery

White-box testing (clear-box testing)

Software testing where the tester can see some internal code or architecture and designs test cases around it.

The essentials

What it is

What it solves

Purely external tests miss defects hidden in internal logic. Some internal knowledge lets testers aim tests at risky areas.

When to use it

Use when a team has access to architecture documentation but not full source. Use in integration testing of components from different teams. Use for security testing with a known data model.

How it works

The tester gets limited insight into the internals, such as architecture diagrams or selected modules. From these they identify data flows and risky paths, then write tests that exercise both interfaces and those paths. Results are interpreted using internal knowledge to locate causes. This sits between black-box and full white-box approaches, which is normally called gray-box testing.

You need

Architecture documents or partial code access, requirements, a test environment.

You get

A set of test cases, execution results and a defect list.

Case

Illustrative case

Pine Ledger, a small accounting software team, gets a third-party tax module with an interface description and a database schema but no source code. The QA lead reads the schema, sees that rounding is done in the database, and writes tests for edge cases such as split invoices at 0.005 boundaries. Two tests fail, exposing a rounding mismatch with the front end. The vendor fixes it in the next release, and the tests are added to the regression suite.

A fictional company used to explain the model.

Caution

When to avoid it

  • Not relevant to business strategy work.
  • Wrong when full code access is available and unit-level coverage is needed.
  • Misleads when the partial knowledge is outdated.

Common mistakes

  • Using the term for gray-box and white-box inconsistently.
  • Relying on outdated diagrams.
  • Writing tests only for the visible internals.
  • Skipping black-box tests of user behaviour.

Known weaknesses

  • Terminology is inconsistent across teams
  • Coverage depends on what is visible
  • Knowledge may be stale
  • Outside the scope of strategy and management methods

How to apply it in 5 steps

How to apply it

White-box testing (clear-box testing)

5 steps

Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.

View all 5 steps
  1. Get partial access

    Obtain architecture notes, interface specs or selected modules.

  2. Analyse risks

    Identify data flows and risky paths from the available information.

  3. Design tests

    Combine tests at the interface with tests aimed at the known internals.

  4. Run tests

    Execute and observe outputs and any internal state available.

  5. Analyse results

    Locate defects using the internal knowledge.

Which decisions it helps with

Decision profile

Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.

IIIResources required

  • TimeSeveral days
  • PeopleA small group (2 to 8)
  • DataBetween “a few readily available facts” and “data collected for the purpose”
  • ExpertiseWorks best with a facilitator
  • Time horizonDays or weeks
  • ScopeOne team
  • FrequencyOccasionally
The team’s own knowledge is enough
View full profile

Preliminary assessment: few details on this model card have been verified.

IIdentity

Type of tool
Other formatDoes not fit neatly into the available categories
Decision stage
Plan the work, roles and deadlines
What it applies to
A product or servicealso: processes and operations (40 %)
Discipline
Agile and software development

IITen axes

The dot shows which end the model favours. A hollow dot means no clear preference.

  • DirectionExecution
  • Top-downBottom-up
  • PeopleProcesses
  • Generate optionsNarrow down options
  • Step-by-step analysisIntuition and experience
  • A strict sequence of stepsA flexible framework
  • Protect what we haveTake a risk
  • Improve what we haveFundamental change
  • Inside the organisationOutside the organisation
  • Understand firstAct now

IVUseful when

Applicable traits

  • How it supports actionDecide what comes first
  • Product stageTesting whether the idea works
How was this profile calculated?

An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.

A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.

On the axes, mixed means the model favours neither end.

How it works →

Thinking space

Workflow and delivery

They organize and accelerate day-to-day delivery: Kanban, DevOps, development cycles, automation and work standards.

Membership: 18 % · also “Learning, coaching and goal setting” (16 %)

View in the atlas of spaces →

Each point is a model. Distance reflects answers to the decision questions. Light points share this model’s space.

Similar models

Sources

Use the arrow keys to move between sources.

Key development

  1. (n.d.). White-box testing. Wikipedia.evidence.py: found by exact-phrase search (wikipedia); name appears in title.View source: White-box testing (opens in a new tab) ↗
  2. Myers, G. J. (1979). The Art of Software Testing. Wiley.Classic best-selling testing book (1979); its ch. 2 defines white-box testing as deriving test data from the program's logic (quoted in Univ. of Auckland lecture notes).View source: The Art of Software Testing (opens in a new tab) ↗

The catalogue does not yet list a published critique of this specific model.