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
What r all the security problems u r facing & the measures taken to solve.
Hi, Anybody knows about Hexaware company..
When the GUI Testing will be held on the V model ?
What makes a good software qa engineer?
When should you opt for manual testing over automation testing?
How do you go about testing a project?
what is mean by Performance Related Testing in data base?
what is test scenario and test condition?
If date field is a text field write test cases to validate it?
I want to know about satyam manual testing questions
Why do we need different environments and different data? What is the other name for environment? Justify your explanation ? real time experts pls xplain?
How many bugs occured will be considerd appropriate over 1000 steps when inspecting software? Describle an approriate Bug value.
Our software designers use UML for modeling applications. Based on their use cases, we would like to plan a test strategy. Do you agree with this approach or would this mean more effort for the testers.
I have cleared written test and one Technical round in one company? now i have to face an Client Round through telephony? Any body have faced client round, how will it be , wil they ask technical or is it only formality round? im nervous, plz let me know wat all they may ask? i have this round on monday?
whta is compile module?