Blackbox Testing

Whitebox testing

In whitebox testing, the test uses hidden knowledge of the data structures and code.

  • Try to exercise all parts of the underlying implementation
  • Test against how the code is built, rather than what it’s supposed to do
    • Kick the tires, push all the buttons
    • Can you exercise all possible statements, paths?
    • For loop: execute 0, 1, K, N-1 times
    • Evaluate all possible predicates: if (A || B)