Patent ID: 8826243

Claim:
A computer program product for injecting error code, comprising: a non-transitory computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising: computer readable program code configured to determine critical points in executing code of software under test; computer readable program code configured to build a testcase to invoke the software under test; computer readable program code configured to determine an appropriate response action for each critical point based on an error encountered at each critical point; computer readable program code configured to inject a critical point segment into the executing code at each corresponding critical point, wherein each critical point segment is capable of being selectively enabled and deactivated; and computer readable program code configured to output a unique identifier of each critical point segment, wherein the testcase includes computer readable program code configured to issue commands, and wherein each command limits which of one or more critical points remains active based on each of: a number of times the one or more critical points have been accessed in the executing code, a number of times a critical point has been skipped, and an amount of times a critical point has been accessed versus skipped.