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

Discuss what test metrics you feel are important to publish an organization?

4149


what is a horizontal and vertical matrix explain with examples

2126


Zenq interview questions for manual testing

1415


What is exploratory testing and when should it be performed?

656


in transfer funds module, how you come to know that amount has been transferred successfully or not....explain in detail

1158






Can automation testing replace manual testing?

645


Hello can anybody list out supported and unsupported browsers for Window OS,Android OS,MAC OS Ubuntu

1156


i need some objective type papers for my certification

1762


write test condition for testing SMS service of a mobile phone maximun length is 100 character while sending and 80 character for receiving write test scenarios do not write test cases

3052


Which was the most interesting bug you found.

2474


Do you think tools are required for managing change. Explain and please list some tools/practices which can help you managing change.

1649


How can you define state tanstion testing aswell decesion testing with examples.how you can differ them too??

1788


Explain the strategy for testing a Java application?

1654


Hi, can any tell how a tester can be judged? i have to interview a tester, how should i judge whether he has a justified experience or not? how a person with 3 years of experience in manual testing can be judge?

1524


hi friends i recently finished testing course in hyderabad.now am looking for a job in uk.i need help about the projects in interview point.can any one explain me abt banking project or credit card.like what are the problems faced in u r last project etc.

1420