What is stub and driver in integration testing ?
Explain with example.

Answer Posted / kunal

types of integeration testing:
top down
bottom up
Top down :
testing hierarchy starts from higher level
to lower level.if suppose testers dnt get the lower modules
for testing(consider the lower modules are under developmnt)
wat the testers wil do thy wil place dummy modules and
integerate these dummy modules with the higher level
modules.in top down apparoach the dummy modules r called
Stubs.
Stubs- Def
stubs r the dummy modules tht simulates the low
level modules.
Bottom up:
in this the dummy modules r called drivers.
Drivers- Def:
drivers r the dummy modules tht simulate the high



OR



Integration testing: carrying out integration tests.

Integration tests (After Leung and White) for procedural
languages. This is easily generalized for OO languages by
using the equivalent constructs for message passing. In
the following, the word "call" is to be understood in the
most general sense of a data flow and is not restricted to
just formal subroutine calls and returns ? for example,
passage of data through global data structures and/or the
use of pointers.

Let A and B be two components in which A calls B.
Let Ta be the component level tests of A
Let Tb be the component level tests of B
Tab The tests in A's suite that cause A to call B.
Tbsa The tests in B's suite for which it is possible
to sensitize A -- the inputs
are to A, not B.
Tbsa + Tab == the integration test suite (+ = union).

Is This Answer Correct ?    13 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

!what are the entry criteria for antomation testing ?

2267


can any one explain me briefly erp pharma project including all modules,like how to tell this project in interview in terms of s/w testing

1902


What is agile testing and why is it important?

932


Tell me example for Risk,Mitigation,Assumption?

2120


How to explain a banking project in interview ? like project discription is Client Online Banking Application provides access to information relating to Banking Online Services provided by Axis to View daily customer transactions, Current and Previous customer statements, Transfer funds from Chequing and Savings accounts ................ From interview point of view can any one explain this project in laymans language

10368


how recovery manager works in winrunner

1777


how to write manual testcases for download the files from the template. for example:from product cost enddate

1945


diff b/w desktop based testing & web application testing

1833


How to write test case for view the table(i.e it is already stored in database and see the content in the table)

2350


Explain crud testing.

917


What is your approach when requirements change continuously?

957


HI. ANYONE HAS ATTENDED INTERVIEW FOR TESTING IN MINDKRAFT GLOBAL. I HAVE WRITTEN TEST FOR SOFTWARE TESTING. CAN ANYONE TELL ME WHAT ALL QUESTIONS CANBE ASKED. PLS REPLY. THANK YOU

2410


How a test engineer will convince a test lead when he didn't approve the bug as a report ???

1443


Can Anbody please send me Daily Work status format in which I can save my daily work activity

2352


What are the various techniques in black box testing?

925