Injecting Faults by Instrumentation Code
AssigneeeBay Inc.
InventorWei Chen
Life of this patent
Estimating the term…
Abstract
In the implementation of techniques for injecting faults by instrumentation code, a system identifies software and one or more fault configuration settings corresponding to faults for fault injection. Based on the fault configuration settings, the system then generates a modified version of the software code by generating instrumentation code via an agent and including the instrumentation code in the software code. The instrumentation code, when executed, is configured to simulate the faults having the fault configuration settings. Upon execution of the modified version of the software code including the instrumentation code by the system, the system simulates the faults as a fault injection. Based on the results of the fault injection, the system generates an outcome of the fault injection for display.
Claims20
A method comprising:
- identifying, by a computing device, software code;
- receiving, by the computing device, one or more fault configuration settings corresponding to one or more faults for fault injection;
- based on the one or more fault configuration settings received, generating, by the computing device, instrumentation code in the software code at least in part by using an agent, in which the instrumentation code is configured to simulate the one or more faults corresponding to the one or more fault configuration settings;
- injecting, by the computing device, the one or more faults by executing the instrumentation code in the software code as the fault injection;
- and
- responsive to the executing of the instrumentation code, generating, by the computing device, an outcome of the fault injection for display.
A system comprising:
- a memory component;
- and
- a processing device coupled to the memory component, the processing device to perform operations comprising:
- identifying software code;
- receiving user input selecting one or more parameters corresponding to one or more faults for fault injection;
- based on the one or more parameters received, generating instrumentation code in the software code at least in part by using an agent, in which the instrumentation code simulates the one or more faults corresponding to the one or more parameters;
- executing the instrumentation code in the software code as the fault injection;
- and
- responsive to the executing of the instrumentation code, generating an outcome of the fault injection for display.
A non-transitory computer-readable storage medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
- identifying software code;
- receiving user input selecting one or more fault configuration settings corresponding to one or more faults for fault injection;
- based on the one or more fault configuration settings received, generating instrumentation code in the software code at least in part by using an agent, in which the instrumentation code is configured to simulate the one or more faults corresponding to the one or more fault configuration settings;
- injecting the one or more faults by executing the instrumentation code in the software code as the fault injection;
- and
- responsive to the executing of the instrumentation code, generating an outcome of the fault injection for display.
Dependencies are inferred from the claim text.