However with glass boxes, you do have knowledge of internals of the functions you are testing. I have seen some references that glass boxes and white boxes are identical, but I have seen many that also say the opposite. For this article, I will keep them separate. Knowing the internals of a function, you can establish a flow diagram, and cycle through inputs that trigger all internal paths of the function. Tinder Box Tinder box is a name for a technique of mine that I have used for many years.
Many functions work fine when no exceptions occur.
But when exceptions occur the functions do not handle them properly and often cause other side effects. In other cases they functions handle the exception, but not in the way that they were designed to. With the tinder box technique, exceptions are purposefully introduced into your functions. Essentially the goal is to intentionally and purposefully blow the functions up. Examples Let s walk through examples for various box types using a sample function.