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


Please Help Members By Posting Answers For Below Questions

what exactly is heuristic checklist approach for unit testing?

2730


Describe any bug you remember. Plz Give some real examples

1632


Dear Friends, Please guide me how to write test case for work Experiance field range.(It has 2 fields for range)

1895


Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?

752


what is the architecture of your current project?

1965






What is reverse engineering?

735


How to write testcases for unread/read mails for gamil inbox? and what are the types of testing you do on them?

3935


a newly launched web site is hosted on web server.It is expected that 100 people visit the website every hour and browse 30 pages spending a total 15 minutes. what is the maximum hits/sec that the web server should support this load?justify your answer. need urgently. by rimesh

1411


What is meant by Boundary value analisis and Equalence partitioning? Can give derive this using these methods? In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10% The next £28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class? a) £4800; £14000; £28000 b) £5200; £5500; £28000 c) £28001; £32000; £35000 d) £5800; £28000; £32000

1580


what is JAVA TESTING? What Testers will do in JAVA Testing. Can any one Give suitable Ans Pls. it's urgent

1582


When did u complete testing ? Which scenrio should not be in automation testing ? why ?

2389


Should testing be done only after the build and execution phases are complete?

1075


What was a problem you had in your previous assignment (testing if possible)? How did you resolve it?

1586


Can you explain the pdca cycle and where testing fits in?

771


Scenario-based testing Option 1 concentrates on actor and software interaction Option 2 misses errors in specifications Option 3 misses errors in subsystem interactions Option 4 Both 1 abd 2

3030