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
what are the test bugs
How do u go about testing of web application?
1. what exactly is heuristic checklist approach for unit testing ?
How much the bug is affecting the functionality of the application?
What is white box testing, and what are the various techniques?
As you are working with cmmi level 5 company ,can you tell me what processes you r following as QA engineer?
what are the risk factors in the project? what is the base for testplan and entry criteria ,exit criteria for test plan?
what does 80hz refresh rate indicates?
Can you explain steps in function points?
hi friends i have a question while the files are uploading into the web server(for storing)..... securely......... what is the meaning securely.......its regarding virus threating or user authentication.... the files are video files these are ripping and converted into .flv format pls clarify ..........thanks in advance......
Login screen with Username, Password input fields,remember me check box,sign in and reset button write Test Cases for GUI, Funcitonal, Negative, Usability and Security testing.
Hi Friends, This is Chennamsubbaraidu.i Have 2+ Years Realtime Exp in Manual Testing.Am Looking to Shift From My Present Company.Please if u Have Any Openings in Your Company's, Please Let Me Know.Any Location Prefer.Thanks.
how to write manual testcases for download the files from the template. for example:from product cost enddate
what do you mean by Develop test data through sourcing (or) handcrafting techniques
i looking for the software testing job with the exp of (1.5 yrs ), if anybody knows how to approach the companies ,pls let me know , possible que which will be asked in interview ? pls send me sample resume for testing ....pls do the favour as soon as posible .