Stubs and drivers we use in integration testing mostly but
under what kind of testing approch it comes means Black box
White box grey box ? Please help to get answer for it

Answer Posted / mayank juyal

I am not sure whether you can directly equate Stubs and
Drivers with a Black box or White box or Gray box testing.

But according to me Stubs and Drivers are concepts which
can be part of both of the testing approaches.

As we know that:
Stub is dummy Procedure (Function/Component), which we use
as a replacement of the actual Procedure, when the actual
procedure is not fully developed while testing.

And

Driver is a main Program/Skeleton, whose purpose is to call
a Procedure/Function/Component that is being tested.
Now both of them can be used in Black Box or White Box
testing.

Example:
Black Box:
You are testing usability of a website. There is a web
page, on which clicking ‘Submit’ button navigates to next
web page.
Here in the current web page you have functionality for
inputting a ‘Unique Email ID ‘by clicking ‘Generate’
button, which is a mandatory field and only after
generating it, you will be able to click Submit Button.
Now, developers have not yet written the code for
generating Unique Email ID, so they have created a Stub,
for same functionality which puts a hard coded Email ID for
the same field, when Generate Button is clicked.
So if you take above example you have been using a Stub in
your Back Box testing approach while doing a usability
testing.

Alternatively –

WhiteBox:
If you are a developer/tester, who debug code or do unit
testing, for the same example mentioned above – Here sub
will be function/lines of code written to create that stub.

Regards,
Mayank Juyal

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test whether the application is having memory leakage using task manager and PerfMon. Please tell if any one know. thanku

1534


1.what promted you to become involved in QA/Testing?

1737


I have 2 yr Localisation testing exp now i want to job in MNC My manualtesting knowledge+2 yr exp sufficiant for in MNC

1579


what is entry and exit criteria and explain it?

1026


What is smoke testing and what is sanity?

643






Please is there any one working with ITR.COM? Having interview with them. Any tips will help.

1386


What is Wound Fixing?

1879


can u merge 10GUI map files into a single GUI map file in winrunner?

1554


what is base time , how can we base time your doc"s ?

1455


Which is the best testing model?

600


Can you explain equivalence partitioning?

590


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

1677


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

1655


1. Give me an example of something you tried at work but did not work out so you had to go at things another way. can somebody give a real time example

1887


Unit Testing can be done by using Nunit?

715