14. 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?
Explanation / Rationale
The domain for the password length has three equivalence partitions:
• passwords too short {0, 1, …, 4, 5}
• passwords OK {6, 7, …, 11, 12}
• passwords too long {13, 14, …}
To achieve full coverage for 3-value BVA we need to test the following values:
0, 1, 4, 5, 6, 7, 11, 12, 13, 14.
Since 2-value BVA is already covered, this means that we have already tested the passwords of length:
0, 5, 6, 12 and 13.
This means that the additional lengths that need to be covered to move from 2-value to 3-value are:
1, 4, 7, 11 and 14.
Thus:
a) Is not correct
b) Is not correct
c) Is not correct
d) Is correct