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?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Jun 27, 2012, 9:07 PM EDT
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