1.

Write the difference between Test Stub and Test Driver.

Answer»

Test driver and test stub, both are types of test harness that are USED to provide a simulation environment for testing a module or component. They both are dummy MODULES specially created for test purposes. 

Test STUBS: Test stubs are used in a top-down testing approach and allow testing of the upper levels of the CODE when the lower levels of the code are not developed yet. It is used as ‘called programs’ when subprograms are under construction. 

Test drivers: Test drivers are used in a bottom-up testing approach and allow testing of the lower levels of the code when the upper levels of the code are not developed yet. It is used as ‘called programs’ when main programs are under construction. 



Discussion

No Comment Found