Skip to content
Black Box기술 정리

Black box testing and white box testing

1 min readTech notesMoved from my Tistory blogRead the Korean original

Black box testing

  • Black box testing is one approach to checking software. It tests the software's features and behavior without considering the internal code or implementation details.

In this approach, the tester checks the software's inputs and outputs and confirms that the software works as expected.

Test cases are usually developed from the requirements and specifications, and the focus is on evaluating the system from the user's point of view.

Main characteristics of black box testing

  • Doesn't consider the internal code or system structure

  • Test cases are developed around functional requirements

  • Checks the user interface, input data, and output results

White box testing

  • White box testing is an approach that examines the software's internal structure and code. It is used to understand the software's logic, control flow, data structures, and so on, and to develop test cases.

White box testing is mainly done by developers to improve code coverage and identify defects in the code.

Main characteristics of white box testing

  • Test cases are developed with the internal code and algorithms in mind

  • Measures how effective the tests are through code coverage and path analysis

  • Used for security testing, improving code quality, and identifying defects

These two testing methods are chosen depending on the situation and purpose. Black box testing is often used for testing from the user's point of view and verifying features, and white box testing is used to verify the quality and stability of the internal code.

  • #black box testing
  • #white box testing

More in Tech notes