Skip to content

平成26年度 春期 ITパスポート試験 問34

This question's explanation and your answers so far.

問34
頻出度★★★

開発者Aさんは, 入力データが意図されたとおりに処理されるかを, プログラムの内部構造を分析し確認している。 現在Aさんが行っているテストはどれか。

出典 平成26年度 春期 ITパスポート試験 問34
解説

問 34

  • Incorrectア

    System testing targets the whole system after unit testing and integration testing are finished, and checks in an environment close to production whether it meets the required functions, performance, and reliability. It is a classification of the stage in the testing process, not a term for the technique viewpoint of “analyzing the internal structure”, so it is wrong.

  • Incorrectイ

    Top-down testing is one way of carrying out integration testing: modules are integrated starting from the upper-level ones, and lower-level modules that are not yet finished are replaced by stubs for verification. It is a method concerning the order of module integration, not a technique for checking internal logic against input data, so it is wrong.

  • Incorrectウ

    Black-box testing checks only the relationship between inputs and outputs based on the specification, without looking at the internal structure at all. Equivalence partitioning and boundary value analysis are typical examples. This is the exact opposite of the condition “analyzing the internal structure” in the question, so it is wrong.

  • エ

    正解 The correct answer is エ, white-box testing. White-box testing is a testing technique in which you look at the internal structure of a program (statements, branches, execution paths, and so on) and check whether its logic works as intended. Developer A in the question is “analyzing the internal structure of the program” to verify how input data is processed, so this is testing designed by looking inside — that is, white-box testing. Typical coverage criteria include statement coverage, which executes every statement at least once, and branch (decision) coverage, which exercises both the true and false outcomes of every branch. It is used mainly at the unit testing stage.

ここがポイント
  • White-box testing = verify by looking at the internal structure (branches, paths); black-box testing = verify only that inputs and outputs match the specification, without looking inside. This contrast is the core of this question.
  • System testing and top-down testing refer to “a stage in the testing process” and “a way of proceeding with integration” respectively. Distinguish them from the white-box / black-box axis, which is about “test case design techniques”.
用語

Your answers