Question 620
A tester is asked to evaluate the following situation: A team has 100% branch coverage for its error-prone payment module but ignores a requirement for duplicate-charge prevention absent from all code. Which repeatable testing practice most directly reduces recurrence of this problem?
Explanation
Correct Answer
This safeguard specifically targets the contributing cause: Combine black-box behavioral oracles with structural metrics for release confidence. It addresses the principle (White-box coverage cannot detect a missing feature that has no corresponding implementation.) and can be assessed by: A replayed transaction reveals the missing idempotency control despite full branch coverage.
Incorrect Answers
This preventive step mitigates a different project risk (syllabus section 4.3): A code review finds a condition guarding division by zero but the automated suite exercises only nonzero denominators and reports a green build. The targeted safeguard for the current case is: Combine black-box behavioral oracles with structural metrics for release confidence.
This preventive step mitigates a different project risk (syllabus section 4.3): A pricing function has 20 executable statements and tests execute 15 unique statements, while the dashboard reports 85% based on total test calls. The targeted safeguard for the current case is: Combine black-box behavioral oracles with structural metrics for release confidence.
This preventive step mitigates a different project risk (syllabus section 4.2): A numeric invoice reference accepts exactly eight digits, but the team tests a few eight-digit values and does not challenge the format's alphabetic and length restrictions. The targeted safeguard for the current case is: Combine black-box behavioral oracles with structural metrics for release confidence.