tags:

views:

53

answers:

2

could you give me some examples, of when would white box testing find errors where black box testing will not?

+1  A: 

See the Wikipedia entry on Software testing. I think the most important point regarding white-box vs. black-box is:

White box testing methods can also be used to evaluate the completeness of a test suite that was created with black box testing methods. This allows the software team to examine parts of a system that are rarely tested and ensures that the most important function points have been tested.

Basically, white box testing allows you to test execution paths that you might have overlooked with black-box testing simply because you wouldn't have known they existed.

Bill the Lizard
+1  A: 

Neither is necessarily better than the other. A black box approach tends to be a user focused approach. So this is a good way to ensure the usability and correctness of an application from a user perspective. The drawback to testing from just a black box perspective is many of the code paths may remain unexercised. This is where white box testing comes into play. Using both together is frequently referred to as grey box testing and it allows you to build user focused scenarios as well as verify you are getting good code coverage as well as efficient use of your test cycles.

A couple good resources for additional information include How We Test Software at Microsoft, Testing Computer Software.

Dan Snell