So I already know the difference between white box and black box testing, but I am looking for fairly straightforward examples of situations where White box says "everything is OK" and Black box testing says "there is a problem here" - as well as vice versa
These examples would occur in rather popular software products. i.e - Microsoft Windows, Word, or an Equation solver (as shown below)
Something of similar degree to this: (Where black box test fails and white box passes)
Example: Solving of quadratic equations;
Input data: numeric values of coefficients A, B, and C;
Output data: numeric values of roots X1 and X2
BLACK BOX TEST
Black-Box testing (environment, users): NO (there is a MISTAKE in internal module, it works incorrectly)
- I’ve been asked to provide numeric values for coefficients A, B and C – I did provide requested values.
- the internal SQRT module (solving of quadratic equations) did NOT deliver required numeric values of roots X1 and X2.
- as result, I made a conclusion that there is a mistake inside an internal module.
WHITE BOX TEST
White-Box testing (an internal module): YES (I work CORRECTLY)
- The input combination of values for A, B and C is illegal because the value the Discriminant D is negative; therefore, I cannot calculate roots X1 and X2.