Which of the following are facts about a top-down software testing approach ?…

2017

Which of the following are facts about a top-down software testing approach ?

I. Top-down testing typically requires the tester to build method stubs.

II. Top-down testing typically requires the tester to build test drivers.

  1. A.

    only I

  2. B.

    Only II

  3. C.

    Both I and II

  4. D.

    Neither I nor II

Attempted by 262 students.

Show answer & explanation

Correct answer: A

Answer: The statement that top-down testing requires method stubs is correct; the statement that it requires test drivers is incorrect.

Explanation:

  • Top-down testing approach: testing starts from the top-level modules and progresses downwards, integrating lower-level modules as testing proceeds.

  • Method stubs: because lower-level modules may be unavailable or incomplete when testing higher modules, simple stub implementations are created to simulate those lower modules. This allows testing of higher-level functionality early.

  • Test drivers: these are small programs used to call and test lower-level modules and are characteristic of the bottom-up testing approach. They are not typically needed in top-down testing.

  • Conclusion: Build method stubs for top-down testing; you do not build test drivers in that approach.

Explore the full course: Mppsc Assistant Professor