What is Stub and Driver and what functions are used in it?
I want to know what is Stub and Driver and what functions are used in stubs
and driver?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Jun 28, 2012, 1:07 AM
Stub testing:
In top down approach, a core module is developed. To test that core module, small dummy modules are used. So stubs are small Dummy modules that test the core module.
Driver testing:
In bottom up approach, small modules are developed. To test them a dummy core module called driver is developed.
Top Down Integration Testing
In Top Down Integration Testing, the high level modules are integrated and tested first. i.e Testing from main module to sub module. In this type of testing, Stubs are used as temporary module if a module is not ready for integration testing.
Bottom Up Integration Testing
In Bottom Up Integration Testing, the low level modules are integrated and tested first i.e Testing from sub module to main module. Same like Stubs, here drivers are used as a temporary module for integration testing.
Thanks