Home > DeveloperSection > Interviews > What are stubs and drivers used for in white-box testing?

Posted on    September-17-2011 2:24 AM

 WhiteBox Testing WhiteBox Testing 
 1 Answer(s)
  1927  View(s)
Rate this:

Chris Anderson
Chris Anderson

Total Post:197

Posted on    September-17-2011 12:00 AM

Stubs and Drivers are the small programs used in the integration testing such that these programs are placed where the output of undeveloped modules. that is in some cases, some of the non priority module's output is needed in the project. then to get out of that situation, we write a small program such that it generates exactly similar output of the un-generated module. these programs are called stubs and drivers.

Here stub is used when we are testing the application in top-down approach.
and driver is used when we are testing the application in bottom-top approach.

Don't want to miss updates? Please click the below button!

Follow MindStick