ans should be option (1 )only
In computer science, test stubs are programs that simulate the behaviors of software components (or modules) that a module undergoing tests depends on.
“ |
Test stubs provide canned answers to calls made during the test, usually not responding at all to anything outside what's programmed in for the test.[1] |
” |
Test stubs are mainly used in incremental testing's top-down approach. Stubs are computer programs that act as temporary replacement for a called module and give the same output as the actual product or software.
Test Drivers are used during Bottom-up integration testing in order to simulate the behaviour of the upper level modules that are not yet integrated. Test Drivers are the modules that act as temporary replacement for a calling module and give the same output as that of the actual product.