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 does quality control differ from quality assurance?
Can anyone tell me about banking project? abt the transactions? the flow?
What is checkpoint? How can you handle the checkpoints?
What do you do (with the project staff) when the schedule fails?
whta is compile module?
How to Generate Test Case for Shopping Cart?
What is smoke test? Do you use any automation tool for smoke testing?
what is the impact analysis?
Genarally what we have to tell. If anybody asks in the interview. what are challenges u faced in the Project and what are the Risks u faced in the Project, Anybody can suggest it ......Thanks in Advance....
What are similarities of Agile and Scrum?
In interview How do explain in Testcase of Calcuator,Cellphones, Email testing?
What is Web architecture that are followed while doing online project and tell the samples of architecture?
what is test strategy,test plan and test policy?Does anyone have dummy documents or any links that gives more idea about these?I am a beginner...interested in learning more abt testing.plz help and encourage me........!
can any one send sample test cases for database testing by taking an example? also leave emailid please. thanks (very urgent)
How do you perform configuration management with typical revision control systems?