0% found this document useful (0 votes)
107 views

Comparison

Black-box testing treats the software as a black box and focuses on the external behavior without knowledge of internal structure. It provides inputs and checks outputs without considering how the software works. White-box testing uses knowledge of internal structure to design test cases based on paths through the code. It requires programming skills and knowledge of internal structure, and the tests may need to change if the implementation changes. White-box testing can ensure all paths are tested but may miss requirements, while black-box testing can uncover missing requirements but cannot ensure all paths are tested.

Uploaded by

Monil Bhavsar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views

Comparison

Black-box testing treats the software as a black box and focuses on the external behavior without knowledge of internal structure. It provides inputs and checks outputs without considering how the software works. White-box testing uses knowledge of internal structure to design test cases based on paths through the code. It requires programming skills and knowledge of internal structure, and the tests may need to change if the implementation changes. White-box testing can ensure all paths are tested but may miss requirements, while black-box testing can uncover missing requirements but cannot ensure all paths are tested.

Uploaded by

Monil Bhavsar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Course:-B.

Tech (CS)
Sub: - SE

Comparison of Black-box & White-box Testing:-

Black-box Testing White-box Testing

1) Black-box Tests are those in which the 1) White box Testing is used to test areas that
software under test is treated as a black box. cannot be reached from black box level. It is
more clear & transparent.
2) Test provides inputs & responds to outputs 2) It uses an internal perspective of the system
without considering how the software works. to design test cases based on internal structure
It just takes the external perspective of the & working of software.
system to design test case.
3) This method of test design is applicable to 3) It is applicable at the unit, integration &
all levels of software testing i.e. Unit, system levels of software testing process.
integration, functional testing, system &
acceptance.
4) There is no knowledge of the test object’s 4) The knowledge of the internal structure of
internal structure. test object is required.
5) It doesn’t require programming skills to test 5) It requires programming skills to identify
the object. all paths through the software.
6) The test designer selects valid & invalid 6) The test designer chooses test case inputs to
input & determines the correct output. exercise paths through the code & determines
appropriate outputs.
7) It is independent of programming language 7) It depends on programming language used.
used.
8) It is fixed throughout the life cycle of 8) Since the tests are based on actual
software product. implementation, if the implementation
changes, the tests probably need to change.
9) It is less expensive than white box testing. 9) It is much more expensive than black bos
testing as it requires source code.
10) It is less laborious or much easier than 10) It is much more laborious in the
white box testing. determination of suitable input data &
determination if the software is correct or not.
11) While this method can uncover 11) Though this method of test design can
unimplemented parts of the specification, one uncover an overwhelming number of test
cannot be sure that all existent paths are cases, it might not detect unimplemented parts
tested. of specification or missing requirements, but
one can be sure that all paths through the test
object are executed.

12) It is also called as behavioral testing. 12) It is also called as glass-box testing or
clear-box testing.

You might also like