Equivalence Partitioning (PIN Validator)
1. Introduction
This question tests your understanding of equivalence partitioning, a core black-box test technique in ISTQB.
You must select the BEST set of input data that covers all identified valid and invalid equivalence partitions.
이 문제는 ISTQB의 핵심 블랙박스 테스트 기법인 동등 분할(Equivalence Partitioning)을 정확히 적용할 수 있는지를 묻습니다. 핵심은 모든 동등 분할 영역을 가장 효율적으로 커버하는 입력 값 조합을 선택하는 것입니다.
2. Problem Context: PIN Validator Rules
The system validates PIN codes with the following rules:
- A PIN is a sequence of digits
- A PIN is valid if:
- It has exactly four digits, and
- Not all digits are the same
PIN 검증 규칙은 다음과 같습니다.
- PIN은 숫자 문자열이다
- 유효한 PIN의 조건:
- 정확히 4자리일 것
- 모든 숫자가 동일하지 않을 것
3. Identified Equivalence Partitions
Variable 1: PIN code length
- Length correct: 4-digit PINs
- Length incorrect: PINs with length other than 4
Variable 2: Number of different digits
- Correct: At least two different digits
- Incorrect: All digits are the same
동등 분할은 두 변수로 나뉩니다.
- PIN 길이: 정상 / 비정상
- 서로 다른 숫자의 개수: 정상 / 비정상
4. Practice Question
❓ Question
Which of the following is the BEST set of input test data to cover the identified equivalence partitions?
- a) 12, 1111, 1234, 12345
- b) 1, 123, 1111, 1234
- c) 11, 12, 1111, 12345
- d) 123, 1222, 12345
✅ Correct Answer: a)
5. Explanation (EN / KR)
✔ a) 12, 1111, 1234, 12345 — Correct
This option covers all identified equivalence partitions:
- 12: length incorrect (too few digits)
- 1111: length correct + number of different digits incorrect
- 1234: length correct + number of different digits correct (valid PIN)
- 12345: length incorrect (too many digits)
This is the most efficient set that covers every partition at least once.
선택지 a)는 모든 동등 분할을 정확히 커버합니다.
- 12: 길이 비정상(짧음)
- 1111: 길이 정상 + 숫자 다양성 비정상
- 1234: 길이 정상 + 숫자 다양성 정상 (유효 PIN)
- 12345: 길이 비정상(김)
❌ b) 1, 123, 1111, 1234 — Incorrect
Although all partitions are technically covered, this set only covers the lower side of the “length incorrect” partition. It does not include a PIN that is too long.
이 선택지는 길이 비정상(짧음)만 다루고 길이 비정상(김)을 커버하지 못합니다.
❌ c) 11, 12, 1111, 12345 — Incorrect
This set does not include any value that represents a valid PIN (length correct + different digits correct).
정상적인 PIN(예: 1234)을 포함하지 않으므로 동등 분할을 완전히 커버하지 못합니다.
❌ d) 123, 1222, 12345 — Incorrect
This set does not include any value that covers the partition “number of different digits incorrect” with a correct length.
숫자 다양성 비정상(예: 1111)을 정확히 커버하는 값이 없습니다.
6. Coverage Summary Table
| Input | Length | Different Digits | 커버 영역 |
|---|---|---|---|
| 12 | Incorrect (short) | N/A | 길이 비정상(짧음) |
| 1111 | Correct | Incorrect | 숫자 다양성 비정상 |
| 1234 | Correct | Correct | 유효 PIN |
| 12345 | Incorrect (long) | N/A | 길이 비정상(김) |
7. Final Takeaway
For ISTQB exams, remember:
Equivalence partitioning = cover each valid and invalid partition at least once
시험에서는 이렇게 기억하세요.
동등 분할 기법의 핵심은 모든 정상/비정상 영역을 최소 1회 이상 커버하는 것이다.
Related: More ISTQB Posts | Next Question