Question 580
A software testing team encounters the following project situation: A pricing function has 20 executable statements and tests execute 15 unique statements, while the dashboard reports 85% based on total test calls. Which repeatable testing practice most directly reduces recurrence of this problem?
Explanation
Correct Answer
This safeguard specifically targets the contributing cause: Validate coverage denominators and exclusions when importing reports. It addresses the principle (Statement coverage is a structural ratio independent of how many times tests are invoked.) and can be assessed by: The tool reports 75% statement coverage from 15 of 20 statements.
Incorrect Answers
This preventive step mitigates a different project risk (syllabus section 4.3): A rule engine has eight executable branch outcomes and tests traverse six, yet management calls this 100% because every function was invoked. The targeted safeguard for the current case is: Validate coverage denominators and exclusions when importing reports.
This preventive step mitigates a different project risk (syllabus section 4.3): A component contains an if branch that computes a discount only for Premium customers, and tests cover Premium input alone yet report 100% branch coverage. The targeted safeguard for the current case is: Validate coverage denominators and exclusions when importing reports.
This preventive step mitigates a different project risk (syllabus section 4.1): A team chooses randomized inputs for a shipping discount before reading the discount rule, then claims it has performed systematic specification-based test design. The targeted safeguard for the current case is: Validate coverage denominators and exclusions when importing reports.