ISTQB 연습문제 풀이 - Exam D : Q#25

Why White-Box Testing Works with Poor Specifications

1. Introduction

In real projects, software specifications are not always perfect. They may be vague, outdated, or incomplete.

The ISTQB syllabus explains that some test techniques are better suited than others in such situations.

현실의 소프트웨어 프로젝트에서는 요구사항 명세가 불완전하거나 오래되었거나 모호한 경우가 많습니다.

이 문제는 그러한 상황에서도 왜 화이트박스 테스트가 결함 발견에 도움이 되는지를 묻습니다.


2. Practice Question

❓ Question

Why does white-box testing facilitate defect detection even when the software specification is vague, outdated, or incomplete?

  • a) Test cases are designed based on the structure of the test object rather than the specification
  • b) For each white-box test technique the coverage can be well-defined and easily measured
  • c) White-box test techniques are very well designed to detect omissions in the requirements
  • d) White-box test techniques can be used in both static testing and dynamic testing

✅ Correct Answer: a)


3. Explanation

✔ a) Based on structure, not specification — Correct

The key strength of white-box testing is that test cases are derived from the internal structure and implementation of the software, not from its specification.

This means that even if the specification is unclear or incomplete, the tester can still:

  • Analyze the implemented logic
  • Identify unreachable or unnecessary code
  • Detect unintended or extra functionality

For example, white-box testing can detect an extra feature implemented in the code that is not described in the requirements, which black-box testing would not easily reveal.

화이트박스 테스트의 핵심 장점은 요구사항이 아니라 코드 구조를 기반으로 테스트를 설계한다는 점입니다.

따라서 명세가 부정확하더라도 코드에 구현된 불필요한 기능이나 의도하지 않은 로직을 발견할 수 있습니다.


❌ b) Coverage is well-defined and measurable — Incorrect

While it is true that white-box coverage metrics (statement, branch, path coverage, etc.) are well-defined and measurable,

this is not the reason why white-box testing works well with poor specifications.

커버리지를 측정할 수 있다는 점은 장점이지만, 명세가 불완전해도 결함을 찾을 수 있는 직접적인 이유는 아닙니다.


❌ c) Detecting omissions in requirements — Incorrect

If a requirement is completely missing, there may be no code implementing it.

White-box testing cannot detect defects of omission when the functionality does not exist in the code.

요구사항이 누락되어 코드 자체가 존재하지 않는 경우, 화이트박스 테스트로는 해당 결함을 발견하기 어렵습니다.


❌ d) Can be used in static and dynamic testing — Incorrect

Although white-box techniques can be applied in both static and dynamic testing,

this fact has no direct connection to the problem of vague or incomplete specifications.

정적·동적 테스트 모두에 사용할 수 있다는 점은 사실이지만, 명세가 부정확한 상황에서 결함 탐지를 돕는 핵심 이유는 아닙니다.


4. Summary Table

Option Correct? Main Reason 요약
a ✔ Yes Based on code structure 구조 기반
b ✖ No Measurement is not the reason 측정 가능성
c ✖ No Cannot find missing functionality 요구 누락
d ✖ No No direct relationship 관련 없음

5. Final Takeaway

For the ISTQB exam, remember this key idea:

White-box testing is effective with poor specifications because it is based on the internal structure and implementation of the software, not on the quality of the specification.

시험 대비 핵심 문장입니다.

화이트박스 테스트는 요구사항이 불완전하더라도 코드 구조를 기반으로 하기 때문에 결함 탐지에 효과적이다.

Related: More ISTQB Posts | Next Question

다음 이전