Define “Stub” and “Driver” classes and describe the difference between them. (without plagiarism)
Stubs:
Stubs are used in TOP-DOWN approach of integration testing. In this first the upper modules are prepared and then they are ready for testing while the bottom modules are not yet prepared by the developers.
Drivers:
A driver is the piece of code through which other programs and the snippets of code and modules can be called.
Difference between Stubs and Drivers:
Stubs | Drivers |
Used in Top-Down Integration Testing. | 1.Used in Bottom-Up Integration Testing. |
It is the code that emulates the called function. | It is the code that emulates a calling function. |
Stubs can stimulates the activity of missing | Drivers can pass the test cases to another code |
These are created when high level modules are tested and lower level modules | These are created when lower level modules are tested and higher level modules |
PLEASE GIVE A THUMBS UP!!!!!!!!!!!!!!
Get Answers For Free
Most questions answered within 1 hours.