Header Ads Widget

Test Drivers and Test Stubs

Test  Drivers  and  Test  Stubs:

Driver is a sample main program that accepts test case data,passes such data to the component being tested,and prints the returned results.

  • The Drivers establish the test environments and takes care of the communication, estimates results, and also sends the reports.
  • These are just like stubs and used by software test engineers in order to accomplish the missing or incomplete modules/ components requirements.
  • The drivers are mainly developed in the Bottom-up approach of incremental integration testing.
  • Generally, drivers are bit complex as compared to the stubs.

 

Stub is serve to replace modules that are subordinate to the component to be tested

It uses the module’s exact interface,may do minimal data manipulation,provides verification of entry and returns control to the module undergoing testing.

  • A stub is a replica of a module that collects the data and develops many possible data. However, it executes like an actual module and is mainly used to test modules.
  • Generally, stubs are created by software developers in order to use them instead of modules if the particular modules are miss or not yet developed.

Post a Comment

0 Comments