Skip to content
Bugwise
Menu

White-box testing

Also called: Structural testing, Glass-box testing

Testing based on knowledge of the internal code and logic.

Definition

White-box testing designs tests from the internal structure of the code, for example making sure every branch of an if-statement runs. It is mostly done by developers, often through unit tests.

In practice

A developer sees the discount code has three branches (expired, valid, already used) and writes a test for each one.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.