ISTQB 연습문제 풀이 - Exam C : Q#21

2-Value Boundary Value Analysis (BVA)

1. Introduction

Boundary Value Analysis (BVA) is a classic black-box test technique in ISTQB. It focuses on values at the edges of equivalence partitions, where defects are most likely.

This question asks which set of inputs gives the greatest coverage using 2-value BVA.

경계값 분석(BVA)은 ISTQB의 대표적인 블랙박스 테스트 기법입니다. 결함이 자주 발생하는 동등 분할 경계를 중심으로 테스트 데이터를 선정합니다. 이 문제는 2-value BVA 기준으로 가장 높은 커버리지를 주는 입력 세트를 고르는 문제입니다.


2. Business Rule (Test Basis)

INPUT: value (integer number)

  • If (value ≤ 100 OR value ≥ 200) → write “value incorrect”
  • Else → write “value OK”

규칙 요약:

  • 100 이하 또는 200 이상이면 “incorrect”
  • 그 외(즉, 101~199)는 “OK”

3. Equivalence Partitions and Boundaries

From the rule, the equivalence partitions are:

  • Invalid low: {…, 99, 100}
  • Valid middle: {101, 102, …, 198, 199}
  • Invalid high: {200, 201, …}

So the key boundary values are:

  • 100 / 101 (transition from invalid → valid)
  • 199 / 200 (transition from valid → invalid)

동등 분할:

  • 비정상(낮음): … ~ 100
  • 정상: 101 ~ 199
  • 비정상(높음): 200 ~

경계는 100↔101, 199↔200 입니다.


4. Practice Question

❓ Question

You design the test cases using 2-value boundary value analysis. Which set of test inputs achieves the greatest coverage?

  • a) 100, 150, 200, 201
  • b) 99, 100, 200, 201
  • c) 98, 99, 100, 101
  • d) 101, 150, 199, 200

✅ Correct Answer: d)


5. Explanation (EN / KR)

✔ Why d) gives the greatest 2-value BVA coverage

In 2-value BVA, we aim to cover boundary values and their nearest neighbors in the adjacent partitions.

The boundary coverage items here are effectively:

  • 100 (invalid side) and 101 (valid side)
  • 199 (valid side) and 200 (invalid side)

Option d includes 101, 199, 200, which covers 3 of the 4 boundary items (75%). That is higher than the other options.

2-value BVA는 각 경계에서 양쪽(인접 분할)의 대표값을 커버하는 방식입니다. 이 문제의 핵심 커버리지 아이템은 100, 101, 199, 200 입니다.

선택지 d)는 101, 199, 200을 포함하여 4개 중 3개(75%)를 커버하므로 가장 높은 커버리지를 제공합니다.


❌ a) 100, 150, 200, 201 — Not correct

Only 100 and 200 are boundary coverage items here. This gives 2 of 4 (50%) coverage.

a)는 경계 아이템 중 100, 200만 커버하여 50%입니다.


❌ b) 99, 100, 200, 201 — Not correct

Again, only 100 and 200 count for the 2-value BVA boundary items. Coverage remains 50%.

b)도 핵심 경계 아이템은 100, 200만 포함하므로 50%입니다.


❌ c) 98, 99, 100, 101 — Not correct

This option covers 100 and 101, but misses the upper boundary (199/200). So it covers 2 of 4 (50%).

c)는 100, 101은 커버하지만 199/200 경계를 놓쳐 50%입니다.


6. Coverage Summary Table

Option Includes boundary items (100, 101, 199, 200)? Coverage 한글 요약
a 100, 200 50% 경계 2개
b 100, 200 50% 경계 2개
c 100, 101 50% 아래 경계만
d 101, 199, 200 75% 경계 3개(최대)

7. Final Takeaway

For ISTQB exams, remember:

2-value BVA targets values on both sides of each boundary.

시험에서는 이렇게 기억하세요.

2-value BVA는 각 경계의 양쪽 값을 선정해 커버리지를 높인다.

Related: More ISTQB Posts | Next Question

다음 이전