GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  Common
Go To First  |  Previous Question  |  Next Question 
 Common  |  Question 216 of 248    Print  
Driver and Stub
With what type of test is a driver and a stub most closely associated?


  
Total Answers and Comments: 4 Last Update: May 27, 2009     Asked by: sentiflat10 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: SSUUDDUU
 
They are related to Integration testing.
Driver: When a module in the higher heirarchy has to be simulated, to test another module dependant on it, its called a driver
Stub: Its simulating or placing a module in the lower heirarchy.

Driver=calling function
Stub=Called Function

Above answer was rated as good by the following members:
Personals
April 29, 2008 06:31:49   #1  
SSUUDDUU Member Since: April 2008   Contribution: 1    

RE: Driver and Stub
They are related to Integration testing.
Driver: When a module in the higher heirarchy has to be simulated to test another module dependant on it its called a driver
Stub: Its simulating or placing a module in the lower heirarchy.

Driver calling function
Stub Called Function

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 29, 2008 08:16:42   #2  
pallavi.online Member Since: February 2008   Contribution: 7    

RE: Driver and Stub
According to my understanding
Intergration testing : Integration testing is a logical extension of unit testing. In its simplest form two units that have already been tested are combined into a component and the interface between them is tested. A component in this sense refers to an integrated aggregate of more than one unit.
Therefore Stubs and drivers are not used in Intergation testing.

Link :msdn.microsoft . com/en-us/library/aa292128(VS.71) . aspx

Unit Testing :The primary goal of unit testing is to take the smallest piece of testable software in the application isolate it from the remainder of the code and determine whether it behaves exactly as you expect. Each unit is tested separately before integrating them into modules to test the interfaces between modules. Unit testing has proven its value in that a large percentage of defects are identified during its use.
Therefore Stubs and drivers are used in Unit testing.

Link :msdn.microsoft . com/en-us/library/aa292197(VS.71) . aspx

 
Is this answer useful? Yes | No
February 04, 2009 03:49:18   #3  
svilvana Member Since: February 2009   Contribution: 2    

RE: Driver and Stub
In simple terms

Drivers: Are the dummy programs that simply drives(pass) the data from one module to the other. For Ex: Module B (a driver) receives data from Module A and pass it to Module C

Stub: Are the dummy programs which does some functions/process on data and transfer the data. For Ex: Module B (a stub) receives data from Module A process (do some manupulation) and then pass to module B.

Note: These definitions are not golden rules People use the dummy programs(driver and stub) for their convenience.

 
Is this answer useful? Yes | No
May 27, 2009 07:42:07   #4  
srinivasulub1981 Member Since: December 2005   Contribution: 381    

RE: Driver and Stub
These words are being used in Integration Testing.

Integration testing can be done in 2 ways.

-> Topdown approach
-> Bottom up approach

Topdown: Here first parents modules will develop first and then child modules if at all any child modules missed then we will replace that missed ones with dummy programs these are called STUB.'

Bottom up: Here first child modules will develop first and then parents modules if at all any parents modules missed then we will replace that missed ones with dummy programs these are called STUB.'

CNU

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape