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
How to test whether the application is having memory leakage using task manager and PerfMon. Please tell if any one know. thanku
1.what promted you to become involved in QA/Testing?
I have 2 yr Localisation testing exp now i want to job in MNC My manualtesting knowledge+2 yr exp sufficiant for in MNC
what is entry and exit criteria and explain it?
What is smoke testing and what is sanity?
Please is there any one working with ITR.COM? Having interview with them. Any tips will help.
What is Wound Fixing?
can u merge 10GUI map files into a single GUI map file in winrunner?
what is base time , how can we base time your doc"s ?
Which is the best testing model?
Can you explain equivalence partitioning?
how to write manual testcases for download the files from the template. for example:from product cost enddate
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
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
Unit Testing can be done by using Nunit?