What is Difference between White-box Testing and Unit
testing?
Answer Posted / 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 |
Post New Answer View All Answers
Could someone please send me real check list for Database Security testing.Please my mail ID- patil.ramchandra@yahoo.co.in. Thanks.
Which is the best book to ref. for design the test cases/scenario in manual testing,which gives detailed idea with all the strategies ?
What is change request, how you use it?
What is validation in software testing?
What are the challenges you faced in your project (Testing) and in your company?
What is Catapult Testing in E-Learning Domain?
How is ‘build’ different from ‘release’?
What is function points??????
list of methods that is used to document the requirements of a software.
Which is the best testing model?
what is the most critical bug u have to find in ur project.My application is ERP based,in this purchase module is there.plz tell me the answer?
Hi, Please can one tell me how to test the usability testing, which method has to be used, how to write the report? Thanks Deepa
What is srs and brs document?
What is build interval period?
Is Anyone attended the manual testing interview with capgemini in recent past. please let me know the type of questions they can ask. Thanks