Stubs & Drivers - Properties,Features - Basic concepts of Software Testing

Q.  Which of the following statements are correct?

1. Stubs are used in bottom-up approach.
2. Stubs are used in Top-down approach.
3. Drivers are used in bottom-up approach.
4. Drivers are used in Top-down approach.

- Published on 13 Aug 15

a. 1, 3
b. 1, 4
c. 2, 3
d. 2, 4

ANSWER: 2, 3
 

    Discussion

  • Prajakta Pandit   -Posted on 17 Nov 15

    - Stubs are used in a top down approach. Stubs are needed for top-down testing and can be replaced by any unavailable modules that are lower down in the hierarchy.

    - Drivers are used in bottom-up approach. Drivers replace any unavailable modules that are higher up in the hierarchy during bottom-up testing.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)