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

Hi all, can anyone tell me what is the selection procedure in Birlasoft for Manual Tester?It will be a great help.

1696


What are the major components of Perf Test Report?

1851


Define performance and stress testing?

925


What is the most important phase in STLC and Why

1388


whats main working for tester. and developer, and prject manager.

1926


What is showstopper defect?

911


what is conditional testing? explain and examples

1318


Testcases for msword( microsoct office word??

1903


can somebody plz tel me about financial domain for manual tester?? which kind of application use and what is the approach of testing??

1642


What is meant by entry criteria and exit criteria in software testing?

895


What is Difference between Test Strategy and Test Methodology?

1999


what are the typical problems in web testing?

986


What is difference between web site testing, desktop application testing and wireless application testing? what is the difference in testing strategy to test them?

1800


Please explain me v-model clearly i want to know how it works and want to know how it use in real time on a project please tell me its urgent and important for me understand .Please tell me my mail id is Chiku_69@yahoo.in Thank u

2356


do we need to write test cases for workflow of the product for instance: there is 2 module "TRAINING ASSIGN MODULE" and "EMPLOYEE" in TRAINING assign MODULE iam assigning training to employee setp is 1.selct traning "oracle" 2.select employee u want assign "peter" 3.apply. now to check whether training assign or not GOTO EMPLOYEE module 1.click on "peter" 2.click on 'view assign to employee'link.now this is a flow do i need to write test cases for this fllow.plz help me guy mail me nirmal_rawatt@rediff.com

1773