Question - Explain what are test driver and test stub and why it is required?
Answer -
• The stub is called from the software component to be tested. It is used in top down approach
• The driver calls a component to be tested. It is used in bottom up approach
• It is required when we need to test the interface between modules X and Y and we have developed only module X. So we cannot just test module X but if there is any dummy module we can use that dummy module to test module X