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


 

1. Introduction

This question evaluates your understanding of 2-value vs 3-value Boundary Value Analysis (BVA) and how to expand a test set to achieve full 3-value boundary coverage.

Note (EN/KR):
2-value BVA tests values at and just outside boundaries.
3-value BVA adds one more test just inside the valid range.
2값 BVA는 경계 바로 아래/바로 위를 포함하고, 3값 BVA는 경계 안쪽 값 하나를 더 추가하여 더 높은 리스크 상황을 대비합니다.

2. Password Length Rules

Valid password length: 6 to 12 characters (inclusive)
유효한 비밀번호 길이: 6~12자

Invalid partitions:

  • Too short: 0–5
  • OK length: 6–12
  • Too long: 13+

✔ Equivalence Partitions

Partition Range Status
P1 0–5 Too short
P2 6–12 Valid
P3 13+ Too long

3. BVA Requirements

✔ 2-value BVA (이미 적용됨)

Values tested: 0, 5, 6, 12, 13

2값 BVA에서는 각 경계에 대해 “경계값”과 “경계 바로 밖”이 포함됩니다. 이미 테스트된 길이는: 0, 5, 6, 12, 13

✔ 3-value BVA (추가 필요)

3-value BVA는 각 경계에서 경계 바로 안쪽 값을 추가로 테스트해야 합니다.
즉 다음 전체 값이 필요합니다:

필요한 전체 3-value BVA 값:
0, 1, 4, 5, 6, 7, 11, 12, 13, 14

이미 2-value BVA에서 했던 값들을 제외하면, 부족한 값은 다음과 같습니다:

➡ 추가로 필요한 값: 1, 4, 7, 11, 14

2값 BVA에서 이미 커버된 값을 제외하고, 3값 BVA를 완성하려면 1, 4, 7, 11, 14를 추가로 테스트해야 합니다.

4. Practice Question Answer

❓ Which lengths must be added?

  • a) 4, 5, 13, 14
  • b) 7, 11
  • c) 1, 5, 13
  • d) 1, 4, 7, 11, 14

✅ Correct Answer: d)

📘 Explanation (EN/KR)

  • a) Not correct. Missing 1 and 7 and 11.
    필요한 값 여러 개 누락.
  • b) Not correct. Only tests inside values for valid partition.
    유효 파티션 내부 값만 포함.
  • c) Not correct. Missing 4, 7, 11, 14.
    필요한 경계값 다수 누락.
  • d) Correct. Adds exactly the missing 5 values: 1, 4, 7, 11, 14 → now full 3-value BVA coverage.
    부족했던 모든 3값 경계 테스트를 완성함.

5. Summary

  • 2-value BVA = boundary ± 1
  • 3-value BVA = boundary ± 1 + inside boundary
  • Additional values needed: 1, 4, 7, 11, 14

3값 BVA는 경계값 바로 안쪽까지 테스트하여 리스크가 높은 모듈의 안정성을 강화합니다.

FL-4.2.2


1. What is Boundary Value Analysis?

Boundary Value Analysis (BVA) is a black-box test design technique that focuses on testing the boundaries of input domains because defects frequently occur at or near boundary values.

경계값 분석(BVA)은 입력값의 경계에서 오류가 자주 발생한다는 원칙에 따라 경계 주변 값을 집중적으로 테스트하는 블랙박스 기법입니다.


2. Why Boundary Testing Matters?

  • Defects often occur at edges of ranges
  • High effectiveness with fewer test cases
  • Used for numeric ranges, input lengths, dates, counters
  • ISTQB 시험에서 매우 빈출

범위의 경계에서 오류가 가장 많이 발생하므로 BVA는 적은 테스트로 가장 높은 결함 발견율을 제공합니다.


3. 2-Value BVA (2-Point BVA)

For a valid range a to b:

  • Valid boundaries: a and b
  • Immediate invalid boundaries: a–1 and b+1
Boundary TypeValue설명
Lower boundary –1a–1바로 아래
Lower boundarya최소 유효값
Upper boundaryb최대 유효값
Upper boundary +1b+1바로 위

2값 BVA는 경계 바로 위/바로 아래를 중심으로 총 4개 값을 테스트합니다.


4. 3-Value BVA (3-Point BVA)

3-value BVA adds one more value just inside the boundary.

  • a + 1 (inside lower boundary)
  • b – 1 (inside upper boundary)

Full 3-value BVA test set includes:

CategoryValues설명
Too lowa–1아래 경계 밖
Lower edgea최소 유효
Just insidea+1경계 바로 안
Just inside upperb–1상위 경계 안
Upper edgeb최대 유효
Too highb+1상위 경계 밖

3값 BVA는 경계값 바로 안쪽 값을 포함해 총 6가지 범주를 테스트합니다.


5. Example – Password Length

Valid length: 6–12

✔ 2-Value BVA values

  • 5, 6, 12, 13

✔ 3-Value BVA values

  • 5, 6, 7, 11, 12, 13, 14

ISTQB 연습문제에서 자주 등장하는 패턴입니다.


6. Multiple-Boundary BVA

If a field has multiple partitions (low, valid, high), each boundary must be tested separately.

여러 파티션(유효/과소/과대)이 있는 경우 각 경계별로 BVA를 수행합니다.


7. BVA vs Equivalence Partitioning (EP)

Technique Main Goal 한국어 설명
EP Divide input range into partitions 입력 범위를 등가 클래스(구역)로 나눔
BVA Test edges of partitions 각 구역의 경계값을 집중 테스트

EP는 “구역”을, BVA는 “경계값”을 테스트하는 점이 핵심 차이입니다.


8. ISTQB Exam Tips

  • Identify the valid range first
  • Determine boundaries clearly
  • Apply 2-value or 3-value depending on risk
  • Count coverage carefully if asked
  • BVA often appears together with EP

ISTQB 시험에서는 BVA 경계값을 빠르게 도출해 “값 나열 → 누락된 값 찾기” 유형이 매우 자주 출제됩니다.


9. Summary

  • Boundary Value Analysis = test the edges of partitions
  • 2-value BVA: a–1, a, b, b+1
  • 3-value BVA: a–1, a, a+1, b–1, b, b+1
  • High defect-finding efficiency
  • Essential in numeric range validation problems

BVA는 숫자 범위 문제에서 가장 중요한 기법이며 시험에서 반복 출제되는 필수 개념입니다.


Related: More ISTQB Posts

다음 이전