Question 480
A quality engineering exercise presents this condition: A customer service form accepts 5–50 characters, and a tester chooses exactly 5 and 50 but never checks rejection outside the range. Which repeatable testing practice most directly reduces recurrence of this problem?
Explanation
Correct Answer
This safeguard specifically targets the contributing cause: Include lower and upper nearest invalid neighbors in length-validation test design. It addresses the principle (Boundary value analysis examines validity changes at edges, including values outside the valid partition.) and can be assessed by: The form accepts 5 and 50 but rejects 4 and 51 as expected.
Incorrect Answers
This preventive step mitigates a different project risk (syllabus section 4.2): A subscription form accepts plans for 1–12 months, but the suite tests 2, 3 and 4 months while never testing an invalid number. The targeted safeguard for the current case is: Include lower and upper nearest invalid neighbors in length-validation test design.
This preventive step mitigates a different project risk (syllabus section 4.2): A loyalty engine has an 'expired' terminal status but the QA suite never tests attempts to redeem a reward after expiration. The targeted safeguard for the current case is: Include lower and upper nearest invalid neighbors in length-validation test design.
This preventive step mitigates a different project risk (syllabus section 4.3): A parser contains two independent if decisions and the tester executes only an input that makes both conditions true. The targeted safeguard for the current case is: Include lower and upper nearest invalid neighbors in length-validation test design.