what is unit testing? It comes under white box or Black Box
testing?

Answers were Sorted based on User's Feedback



what is unit testing? It comes under white box or Black Box testing?..

Answer / winrunner

Unit testing is one..which is nothing but testing a small
piece of code..
it comes under white box testing..

Is This Answer Correct ?    53 Yes 6 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / aaa

Unit testing is usually done by programmers to test their
code changes and it requires detail knowledge of the the
internal program code.I think it comes under white box
testing.

Is This Answer Correct ?    20 Yes 2 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / abdul.sameer

Unit Testing is purely a white box testing technique. Here
in unit testing we test the functionality of the small peace
of code developed by the developers.

Each and every developers check there code (Unit
testing) to confirm themselves that they work done is
working fine.
In unit testing we check for code coverage testing which
further consists of loop coverage, statement coverage, path
coverage, there functionality and mutation testing. is there
any unwanted or repeatable variable assigned or not.

for each unit test the developers test the exact
functionality and is not realted to any black box technique.

it is purely a white box testing.

Is This Answer Correct ?    17 Yes 5 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / sowmya

Hi
Unit testing is testing individual module fo an
application.it is done by developers.it comes under white
box testing.In black box testing we test the functinality
or behavior of an application.we dont have the internal
knowledge of the application.where as in white box testing
basic path coverage,loops and funtions written in coding

Is This Answer Correct ?    11 Yes 5 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / ashok

Design document was basedline corresponding programmes can start with coding by write programmer and then programmer can test each program completeness and correcteness called as unit testing

During this unit testing programmer can follow four white box techniques

1)based path coverage
2)control structure coverage
3)program techniques coverage
4)mutation coverage

Is This Answer Correct ?    5 Yes 1 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / rahulgehlot

Unit testing is testing of an individual component, module or unit.it is generally done by the developers .it comes under white box test design techniques.

Is This Answer Correct ?    3 Yes 0 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / pradeepbaraik

Unit testing is nothing but a testing process of a code developed by a developer for a particular module is known as a unit testing.
Unit testing comes under white box testing.

Is This Answer Correct ?    1 Yes 0 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / ranjith

unit testing is a another name of white box testing
it is nothing but
smallest unit of the software is a one line of code developer will test the each and every line of code is called as unit testing it's all so called as white box testing

Is This Answer Correct ?    0 Yes 0 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / ayush

unit testing is a individual part of code that can be tested and is same time done by developer, just reviewing there code and find any defect.
for example - login page are completed than test this is called unit testing

Is This Answer Correct ?    0 Yes 1 No

what is unit testing? It comes under white box or Black Box testing?..

Answer / sylesh

I think it depends on how you define the so called 'unit'.
Consider a situation where you wrote an application with
just one functionality, which is implemented in precisely
one function. Assume this function contains 3 logical
blocks of code, say an if..else, a for loop and then
another block of statements.

If we are to say that a white box testing has been done on
that code, we should have tested each of these different
blocks of statements, ensure coverage by carrying out
various and as many tests required by inputting as many
varied parameters to ensure that the execution of code has
been tested through each of the lines / blocks of code.

Same time, the programmer would have tested the function
just by passing the input parameters as specified / assumed
from the functionality of the application and would have
verified whether the output has come right.

So if we consider the unit under consideration to be a
function then I think the so called unit test in that case
should be considered more close to black box where as if
the programmer has catered for complete coverage
considering each and every line of code, it should be
considered white box.

Obviously white box testing is more fail safe but sometimes
programmers end up writing unit test cases just for public
functions in which case I prefer to say it is close to
black box.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Manual Testing Interview Questions

To become a Software Tester, which courses are more important to learn? I Feel complete software testing course like manual, automation, Oracle, VB Scripting and SQL, please suggest me what are all the courses important for a software tester?

2 Answers  


Realizing you won't be able to test everything - how do you decide what to test first?

4 Answers  


Can any one tell me how will be the projects in realtime life?. I am much worried because this going to be my first job?

2 Answers  


which test comes first installation testing or compatiability testing

7 Answers   ADP,


Enlist some bug status along with its description?

0 Answers  






How do you handle conflict with programmers?

4 Answers  


How to do the performance testing manually? Does you have a test case for that?

0 Answers  


wat are the questions would the project leader ask about the project?? please do send the answers early.

3 Answers  


Write 5 test cases for UAT of internet Banking system

2 Answers   Infosys, Zycus Infotech,


Hi I want to start online training couses for testing Any body plz help me out how to start the online courses Plz post the answer here or send me a mail for kommineni.1020@gmail.com

0 Answers  


Write difference b/w waterfall model and spiral (agile)model

3 Answers   Zycus Infotech,


How would you do the ollowing Security Testing for web application? 1) Authentication. 2) Authorization. 3) cookies. 4) penetration testing. 5) session testing. 6) encryption and decryption testing

1 Answers   TCS, Wipro,


Categories