Method and apparatus for inserting faults to test code paths
AssigneeIntuit Inc.
InventorsJames L. Showalter, Michael R. Gabriel
Life of this patent
Estimating the term…
Abstract
One embodiment of the present invention provides a system that inserts faults to test code paths. The system starts by placing fault-inserting method calls at join points within methods in program code. The system then executes the program code during a testing process. As a method is executed during the testing process, the system executes the corresponding fault-inserting method. This fault-inserting method checks a configuration database to determine whether a fault is to be simulated for the method and, if so, simulates a fault for the method.
Claims21
A method for inserting faults to test code paths, comprising:
- placing fault-inserting method calls at join points in methods in program code;
- executing the program code during a testing process;
- and
- as a method is executed during the testing process, executing the corresponding fault-inserting method, wherein the fault-inserting method checks a configuration database to determine whether a fault is to be simulated for the method and, if so, simulates a fault for the method.
An apparatus for inserting faults to test code paths, comprising:
- a processor;
- an execution mechanism on the processor;
- a memory coupled to the processor, wherein the memory stores data and program code for the processor;
- a configuration database in the memory, wherein the configuration database contains entries for methods in the program code, wherein each entry includes a value that corresponds to a fault;
- a placement mechanism configured to place fault-inserting method calls at join points in methods in program code;
- wherein the execution mechanism is configured to execute the program code during a testing process;
- and
- while executing a method during the testing process, the execution mechanism is configured to execute the corresponding fault-inserting method, wherein executing the fault-inserting method causes the execution mechanism to check the configuration database to determine whether a fault is to be simulated for the method and, if so, the execution mechanism is configured to simulate a fault for the method.
A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method for inserting faults to test code paths, comprising:
- placing fault-inserting method calls at a join points in methods in program code;
- executing the program code during a testing process;
- and
- as a method is executed during the testing process, executing the corresponding fault-inserting method, wherein the fault-inserting method checks a configuration database to determine whether a fault is to be simulated for the method and, if so, simulating a fault for the method.
Dependencies are inferred from the claim text.