What is the difference between stub and driver?

Showing Answers 1 - 8 of 8 Answers

Dinkar

  • Apr 7th, 2006
 

In the integration testing when we use topdown approach then 1st we assembles down from the highest level modules replacing the low level modules by test STUB. A stub is a simplified program or dummy module designed to provide the response that would be provided by the real sub-element.

Same as in the buttomup approach we assembles from the lowest level modules replacing the higher level by test drives.

haritha

  • Jun 12th, 2006
 

hi

Stub & Driver nothing but a dummy program but Stubs are used in Top-down approach of Integration testing and Drivers are used in Bottom-up approach.

Thanks

Haritha/Chennai

  Was this answer useful?  Yes

BISWAJIT PANI

  • Jun 19th, 2006
 

Stub and Driver

Stub means a Dummy model of that particular module..

suppose we have to test the interface between 2 modules A and B

but we have only module A and Module B is on development stage

so at that case we can not test module B but if we will prepare a dummy module which is having similar features like B then by that we can test module A. our main aim in this is to test Module A not Module B so that we can save time otherwise we have to wait for actual application of B.

In this case the dummy module of B is called Stub..

and Driver

as we have only the dummy module of B

so it can not send and receive datas from module A automatically

so in this casewe have to transfer datas from one module to another module by some external features. That is called Driver

so Stub and Driver both are essential at time..

Regards

Biswajit Pani ( 09986183456)

Panibiswajit@yahoo.com

 

  Was this answer useful?  Yes

nagarjuna

  • Oct 11th, 2006
 

 

STUB: A DUMMYT S/W COMPONENT WHICH IS USED SIMULATE THE BEHAVIOUR OF THE ORIGINAL S/W COMPONENT IT'S USED OLNY FOR THE OUT PUT

DRIVER: A S/W COMPONENT USED TO INVOKE THE TEST AND OFTEN PROVIDE TEST TO INPUT,O/P,ANALASISS

  Was this answer useful?  Yes

Hi,

Difference Between Stub& Driver

1. Stub is a piece of code emulating a called function, a driver is a piece of code emulating  a calling function.

2. Stubs are created integration testing like Top-down approach, Drivers are created integration testing like bottom-up approach

Regrds

Prasad

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions