119k views
0 votes
Can boundary value analysis only be used to do white-box testing?
1) True
2) False

User Bowman Zhu
by
8.5k points

1 Answer

1 vote

Final answer:

Boundary value analysis can be used for both white-box and black-box testing.

Step-by-step explanation:

No, boundary value analysis can be used for both white-box and black-box testing. Boundary value analysis is a software testing technique that focuses on testing the boundaries of input values, as they are often the most error-prone. It helps identify defects that occur at the boundaries of equivalence classes or input ranges.



For example, if you are testing a program that accepts user input within a certain range, such as ages between 18 and 65, boundary value analysis would involve testing the minimum valid age (18), the maximum valid age (65), and the boundaries just outside the valid range (17 and 66).



By considering both the internal structure of the software (white-box) and the expected behavior from the user's perspective (black-box), boundary value analysis can uncover both functional and structural defects, making it a versatile testing technique.

User Riya Kapuria
by
7.9k points