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

Answers were Sorted based on User's Feedback



Stubs and drivers we use in integration testing mostly but under what kind of testing approch it c..

Answer / 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

Stubs and drivers we use in integration testing mostly but under what kind of testing approch it c..

Answer / sangeeta

stubs and drivers will be used mainly by developers while doing white box testing by the developers

Is This Answer Correct ?    0 Yes 0 No

Stubs and drivers we use in integration testing mostly but under what kind of testing approch it c..

Answer / sravan kumar reddy

Integration testing comes under white box testing because it
is done by the developers. they develop the interfaces and
integrate the modules and test whether those interfaces are
working fine or not.

Is This Answer Correct ?    3 Yes 12 No

Post New Answer

More Manual Testing Interview Questions

1) How to test session ? 2) There is a website in which the user has to register to use its features. Suppose one user has registered in that site by paying some amount only for 1 month. Now i want to test the application that the user should not use the features of the site after 1 month. How to test it? The tester cannot wait for 30 days to test it....bear in mind..Thanks in advance...

1 Answers   IBM,


how to use batchtesting in qtp?

4 Answers   TCS,


how to test stored procedures in manually?

6 Answers  


which phase is most important in STLC phases? and why ?

2 Answers   IBM,


what is the difference between compatibilty testing and configuration testing?

6 Answers  






Hi all, i am planning to take ISTQB CERTIFICATION, can any one guide me by giving the links for preparing for the exams. If anyone have some materials can u send me to my mail id vpbharathi@gmail.com. Thanks in advance, Bharathi.P

0 Answers  


explain LCSAJ??

2 Answers  


What happens if we access a website that has cookies once the browser cookies are disabled?Does the website will be accessed?Though accessed, does the session will be tracked?

1 Answers  


generally what model tester will follow in an comapany? pls give me answer

3 Answers  


What are the types of functional testing?

6 Answers  


When a project was started in an organisation ,Testing team will get BRS & FRS documents and starts preparing the Test cases for the application.when the Build was released whether the Testing team will execute only the written Test cases (or) they may update further testcases

3 Answers   Siemens,


Give practical example for implementing V-Model

3 Answers  


Categories