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
When do we perform smoke testing?
What is application programming interface (api)?
What are the various techniques in black box testing?
Write a Test scenario for Outlook Search functionality.
any one giv test cases for wordpad using equivalence class partioning
What is a critical bug?
I have interview on Guide wire testing. If you please share me.
what are the Cs in testing
What is revision history and the content of revision history table?
hai friends i need a general test cases for check box,drop down button and radio butoon can anybody reply me plz..........thanks in advance
what types of testing you performed in transfer funds module....
What is data flow diagram?
Describe some staff conflicts you have handled.
What types of testing is specifically important for web testing?
Hi, i am looking job in perfomance testing using Loadrunner can any body help me a project in any domine plz(Usah) chs_29@rediffmail.com