In: Computer Science
What is a test case?
What are the characteristics of a good test case?
What is a driver?
What is a stub?
With what type of test is each most closely associated?
1) A TEST CASE is a set of conditions or variables under which a tester will determine whether a system under test satisfies requirements or works correctly. The process of developing test cases can also help find problems in the requirements or design of an application.
2)
A good Test Case satisfies the following criteria:
3) A driver is basically a piece of code through which other
programs or pieces of code or modules can be called. Drivers are
the main program through which other modules are called.
If we want to test any module it is required that we should have a
main program which will call the testing module. Without the dummy
program or driver, the complete testing of the module is not
possible.
Drivers are basically called in BOTTOM UP testing approach. In
bottom up testing approach the bottom level modules are prepared
but the top level modules are not prepared. Testing of the bottom
level modules is not possible with the help of main program. So we
prepare a dummy program or driver to call the bottom level modules
and perform its testing.
4) Stubs are basically used in TOP-DOWN approach of integration
testing. In this approach, the upper modules are prepared first and
are ready for testing while the bottom modules are not yet prepared
by the developers.
So in order to form the complete application we create dummy
programs for the lower modules in the application so that all the
functionalities can be tested.
5) **Answered as part of 3 and 4**
Drivers -> BOTTOM UP testing approach
Stub -> TOP-DOWN testing approach