From executed defect to observed failure in a test run

A suite of 400 automated test cases is run against a build that contains exactly one defect: a wrong loop bound in a function that computes a cached subtotal. Coverage logs show that 160 of the tests executed the defective loop. In 24 of those 160 tests the loop left the cached subtotal with a wrong value. In 15 of those 24 tests the wrong value reached the output that the test checks, so the test failed; in the rest, the subtotal was recalculated before it was used.


Find the number of failures observed, the number of tests that executed the defective loop without failing, and the number of tests in which a wrong subtotal was masked before output, each as a whole number. Also find the percentage of tests that executed the defective loop and failed, to one decimal place.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Failure, Defect, and Error Definitions Questions: