What is white-box testing in software development?
a) Testing that involves knowledge of the internal code structure
b) Testing the user interface of the software
c) Testing without knowing the internal code structure
d) Testing the performance of the software
Answer:
a) Testing that involves knowledge of the internal code structure
Explanation:
White-box testing is a software testing method that involves testing the internal code structure, logic, and implementation of the software. Testers have access to the source code and design test cases to validate how the code executes.
White-box testing focuses on verifying the code’s correctness, performance, and security by examining how inputs are processed and how the internal components interact. It is commonly used for unit testing and integration testing.
This testing method helps identify hidden bugs that may not be detected through black-box testing, which focuses solely on the external behavior of the software.