ブラックボックステストに関する記述として, 適切なものはどれか。
令和4年度 ITパスポート試験 問45
This question's explanation and your answers so far.
問 45
Incorrectア
Testing all branches is the idea of branch coverage (decision coverage), which covers the internal conditional branches; it is a description of white-box testing that focuses on the internal structure, not black-box testing.
Incorrectイ
Testing all instructions is the idea of statement coverage, which executes every internal instruction; this too is a description of white-box testing.
Incorrectウ
Testing based on the internal structure is exactly the definition of white-box testing itself. Black-box testing does not look at the internal structure, so this option is wrong.
- エ
正解 Black-box testing is a technique that ignores the program's internal structure (processing logic or code) and focuses only on whether a given input produces the expected output, according to the specification. Therefore option エ, which says to test by focusing on the inputs and outputs of the program, is correct. Equivalence partitioning and boundary value analysis are representative techniques.
- Black-box testing = based on the specification, focusing on inputs and outputs (the internal structure is not considered). Representative techniques are equivalence partitioning and boundary value analysis.
- White-box testing = focuses on the internal structure. Thoroughness is measured by coverage criteria such as statement coverage and branch coverage.