What is Difference between White-box Testing and Unit
testing?




Answers were Sorted based on User's Feedback



What is Difference between White-box Testing and Unit testing?..

Answer / saranya rajaram

White Box testing is a testing technique.

Unit testing is a testing level.

White box testing technique is used in unit testing level.

Its because,in Unit testing we test the individual
module logic(Code).White box testing is atechnique used to
test the code.so we use white box testing in unit testing
level...

Is This Answer Correct ?    29 Yes 3 No

What is Difference between White-box Testing and Unit testing?..

Answer / sowmya

Unit testing is testing a module by the developer which was
developed by him.and white box testing is alos done by the
developer for checking the functions,basic path
coverage,loops of the application.IF tester has some
programming knowledge then he can also do the white-box
testing.

Correct me if i am wrong

Is This Answer Correct ?    18 Yes 3 No

What is Difference between White-box Testing and Unit testing?..

Answer / priya

White box testing (a.k.a. clear box testing, glass box
testing, transparent box testing, or structural testing) is
a method of testing software that tests internal structures
or workings of an application as opposed to its
functionality (black box testing). An internal perspective
of the system, as well as programming skills, are required
and used to design test cases. The tester chooses inputs to
exercise paths through the code and determine the
appropriate outputs. It is analogous to testing nodes in a
circuit, e.g. in-circuit testing (ICT).
While white box testing can be applied at the unit,
integration and system levels of the software testing
process, it is usually done at the unit level. It can test
paths within a unit, paths between units during
integration, and between subsystems during a system level
test. Though this method of test design can uncover many
errors or problems, it might not detect unimplemented parts
of the specification or missing requirements.
White box test design techniques include:
a. Control flow testing
b. Data flow testing
c. Branch testing
d. Path testing

In computer programming, unit testing is a method by which
individual units of source code are tested to determine if
they are fit for use. A unit is the smallest testable part
of an application. In procedural programming a unit may be
an individual function or procedure. Unit tests are created
by programmers or occasionally by white box testers.
Ideally, each test case is independent from the others:
substitutes like method stubs, mock objects, fakes and test
harnesses can be used to assist testing a module in
isolation. Unit tests are typically written and run by
software developers to ensure that code meets its design
and behaves as intended. Its implementation can vary from
being very manual (pencil and paper) to being formalized as
part of build automation.

Is This Answer Correct ?    9 Yes 0 No




What is Difference between White-box Testing and Unit testing?..

Answer / sunithayagnamurthy

whitebox testing:
whitebox testing means to test the internal
functionality.it test coding....Every whitebox tester
should have coding knowledge.....

Unit testing:
Unit testing means to test the module wise
testing ..It test single pice of code or module....
some times it test whitebox test engineer or developer
Unittesting contains fallowing coverages
1.statment coverage
2.Loop coverage
3.branch coverage
4.functional coverage
statment coverage:
This statment test the statment is correct
or not
loop coverage: this statment test the loop is correctly
working or not like if,while ,whileloop etc
branch stament :this statment test the conditional statment
working correctly or not
functional coverage: the functional staments working
correctly or not
this is the unit testing

Is This Answer Correct ?    5 Yes 5 No

What is Difference between White-box Testing and Unit testing?..

Answer / savita

unit testing:testing the module of the application and it
is done by the developer....
white box testing :testing the application that is to go
through the code .it is done by the developers,there are
different types of white box testing loop testing,condition
testing,performance testing,memory testing etc..white box
testing is also called as structured testing,closed
testing,unit testing,glass testing

Is This Answer Correct ?    5 Yes 5 No

What is Difference between White-box Testing and Unit testing?..

Answer / murali

white box testing is a coding level testing technique.
during integration of all programms and modules technical
testers will conduct white box testing. it is also known as
glass box testing/clear box testing/program
phase/structural logic testing/fagun testing. white box
testing classified into 3 types they are
1.unit testing:
one program testing is called unit testing. it is also
known as micro testing/ component testing/program tesging.
it is also classified into 3 types:
1.execution testing:
run the programm under developer configuration to check
whether the program correctly responding or not.
2.operation testing: run the programm under customer
expected configuration to check whether the programm is
correctly responding or not.customer expected configuration
(OS, compilers, browser, other system s/w)
3.mutuation testing: mutuation means a change in a
programm. after making changes in programm technical tester
will go to run the programm in both configurations
(customer and developer) to check whether the programm is
correclty responding or not with respect to changes.

other two white box testings are:
module testing and integration testing. module testing is
nothing but testing couple of programmes. during
integration of main and sub modules technical testers will
conduct integration testing.

Is This Answer Correct ?    6 Yes 10 No

Post New Answer



More Manual Testing Interview Questions

I am ganesh searching in manaul testing, i am unable to explain my current project in interview anybody give me a real time oriented project and also include how can i explain it, with test case (passout 2004) M.Sc(IT) my personel id is testganesh@gmail.com

3 Answers  


Why we have to write test cases?.any specific reasons......

5 Answers   ME,


How does compatibility testing differ while testing in Internet explorer and testing in Firefox?

0 Answers  


What is the maximum length of the test case we can write?

4 Answers   Sonata,


Give the real-time example for back-to-back testing?

0 Answers  






who preapares use case document? who preapares use functional point document? who preapares use test sceanario document?

1 Answers   Accenture,


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  


What is the typical situation u faced while collecting the test data?

0 Answers   Satyam,


Question on desktop Application: In my machine MS Word is working fine and in other machine it is not even launching. Note: OS, platform, build and environment is same

2 Answers   Intuit,


day before yesterday i faced this question in value labs ,,,, 1.what is the exact difference between sanity and smoke testing which will do first and say some sanity test cases..... 2. difference between UI,GUI & Usability testing and can i access the form without testing GUI and how the blind people can identify GUI of the form..... anyone plzzz answer 2 me thanks in advance byeeeeeeeee

6 Answers   TCS,


How to write test condition for testing a URL??

3 Answers   TCS, STC,


what are the key challenges of testing?

1 Answers  






Categories