testingblack-boxwhite-box

What is black box testing and white box testing


I'm trying to understand one in terms of how it compares to the other.

Is white box testing where you can see the code and black box testing where you don't look at the code?


Solution

  • basicaly yes.

    in black box testing you test if the expected input to your object produces expected output without the ability to change the underlying code.

    in white box testing you can see the code and you test all possible paths through it.