You are testing a form that verifies the correctness of the length of the password given as input. The form accepts a password with the correct length and rejects a password that is too short or too long. The password length is correct if it has between 6 and 12 characters inclusive. Otherwise, it is considered incorrect. At first, the form is empty (password length = 0). You apply boundary value analysis to the “password length” variable. Your set of test cases achieves 100% 2-value boundary value coverage. The team decided that due to the high risk of this component, test cases should be added to ensure 100% 3-value boundary value coverage. Which additional password lengths should be tested to achieve this?
| Rule 1 | Rule 2 | Rule 3 | Rule 4 | Rule 5 | |
|---|---|---|---|---|---|
| Conditions | |||||
| Cholesterol (mg/dl) | ≤124 | ≤ 124 | 125 – 200 | 125 – 200 | ≥ 201 |
| Blood pressure (mm Hg) | ≤ 140 | > 140 | ≤ 140 | > 140 | – |
| Action | |||||
| Risk level | very low | low | medium | high | very high |
選択肢
A.4, 5, 13, 14
B.7, 11
C.1, 5, 13
D.1, 4, 7, 11, 14✓
正解
D: 1, 4, 7, 11, 14