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 is stub?
What is regression testing? When to apply it?
What is revision history and the content of revision history table?
what does 80hz refresh rate indicates?
What is the difference between baseline and traceability matrix?
how to write test cases for epos/pos testing.
Actually by using severity you should know which one you need to solve so what is the need of priority?
What do you mean by Unit Testing, Integration Testing, System Testing, and User Acceptance Testing and when do you do them?
What is Pre UAT and UAT is there any difference ?
How do you estimate white box testing?
What makes a good software qa engineer?
how can we do database testing. In database testing we verify the data integrity and data validation. how can we do testing of Index, triggers, views, ransactions,cursors etc
Explain the components of a test plan?
PLS SEND REAL TIMERS, WHAT IS SOA TESTING..IM TRYING 3+ YR.. I HAVE GOOD KNOWLEDGE ON MANUAL TESTING... NOW IM NEW TO LEARN "SOA TESTING" IS BEST OR NOT? BEFORE LEARNING SOA TESTING ANY SKILLS ARE REQUIRED..... AND NOW WHAT IS THE MARKET FOR SOA TESTING... AND IT IS BASED ON PROGRAMMING OR NOT?
What is configuration management in software testing ?