Chapter 3

White Box Testing

3.1 WHAT IS WHITE BOX TESTING?

Every software product is realized by means of a program code. White box testing is a way of testing the external functionality of the code by examining and testing the program code that realizes the external functionality. This is also known as clear box, or glass box or open box testing.

White box testing takes into account the program code, code structure, and internal design flow. In contrast, black box testing, to be discussed in Chapter 4, does not look at the program code but looks at the product from an external perspective.

A number of defects come about because of ...

Get Software Testing: Principles and Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.