# US 2020/0394129 A1 · Self healing software utilizing regression test fingerprints

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394129 A1
- Document ID: US20200394129A1
- Status: Published application
- Kind: A1
- Application number: 16/440,833
- Filed: 2019-06-13
- Published: 2020-12-17
- Earliest claimed: 2019-06-13
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Andrew Hicks; Dale E. Blue; Ryan Thomas Rawlins; Rachel Brill; Deborah A. Furman
- Web page: https://patentgrep.com/patent/US20200394129A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3676: {for coverage analysis}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for automatically avoiding fault paths in software code of a System Under Test (SUT) includes generating a plurality of fingerprints by executing a plurality of regression tests. Each of the plurality of fingerprints uniquely identifies a specific code path in the software code of the SUT. A critical error is detected during execution of the software code of the SUT. A fault code path in the software code of the SUT associated with the critical error is identified by analyzing the plurality of generated fingerprints. At least one fingerprint associated with the fault code path in the software code of the SUT is identified. During subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT is automatically prevented from being executed based on the identified at least one fingerprint.

## Claims

### Claim 1

A method for automatically avoiding fault paths in software code of a System Under Test (SUT), the method comprising:
generating a plurality of fingerprints by executing a plurality of regression tests, wherein the plurality of regression tests is generated based on a functional coverage model of the SUT and wherein each of the plurality of fingerprints uniquely identifies a specific code path in the software code of the SUT;
detecting a critical error during execution of the software code of the SUT;
identifying a fault code path in the software code of the SUT associated with the critical error by analyzing the plurality of generated fingerprints;
identifying at least one fingerprint associated with the identified fault code path in the software code of the SUT; and
automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed based on the identified at least one fingerprint.

### Claim 2 (depends on 1)

The method of claim 1, wherein the functional coverage model comprises a plurality of attributes, each of the plurality of attributes having a set of possible values and wherein the functional coverage model defines possible combinations of values of the attributes as covered by the plurality of regression tests.

### Claim 3 (depends on 2)

The method of claim 2, wherein automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed further comprises identifying a minimum set of possible combinations of values of the attributes that can be set to prevent the identified fault code path from being executed.

### Claim 4 (depends on 1)

The method of claim 1, further comprising selecting an alternative code path in the software code of the SUT instead of the identified fault code path based on the identified fingerprint during the subsequent execution of the software code of the SUT.

### Claim 5 (depends on 1)

The method of claim 1, further comprising terminating the execution of the software code of the SUT, in response to the identifying the fault code path.

### Claim 6 (depends on 1)

The method of claim 1, wherein automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed further comprises identifying a segment of the software code of the SUT that leads to the identified fault code path.

### Claim 7 (depends on 4)

The method of claim 4, wherein selecting the alternative code path in the software code of the SUT instead of the identified fault code path further comprises selecting the alternative code path based on an analysis of results of the executed plurality of regression tests.

### Claim 8

A system for automatically avoiding fault paths in software code of a System Under Test (SUT), the system comprising:
at least one processor; and
at least one memory storing computer-executable instructions, wherein the at least one processor is configured to access the at least one memory and execute the computer-executable instructions to:
generate a plurality of fingerprints by executing a plurality of regression tests, wherein the plurality of regression tests is generated based on a functional coverage model of the SUT and wherein each of the plurality of fingerprints uniquely identifies a specific code path in the software code of the SUT;
detect a critical error during execution of the software code of the SUT;
identify a fault code path in the software code of the SUT associated with the critical error by analyzing the plurality of generated fingerprints;
identify at least one fingerprint associated with the identified fault code path in the software code of the SUT; and
automatically prevent, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed based on the identified at least one fingerprint.

### Claim 9 (depends on 8)

The system of claim 8, wherein the functional coverage model comprises a plurality of attributes, each of the plurality of attributes having a set of possible values and wherein the functional coverage model defines possible combinations of values of the attributes as covered by the plurality of regression tests.

### Claim 10 (depends on 9)

The system of claim 9, wherein the instructions to automatically prevent the identified fault code path in the software code of the SUT from being executed further comprise instructions to identify a minimum set of possible combinations of values of the attributes that can be set to prevent the identified fault code path from being executed.

### Claim 11 (depends on 8)

The system of claim 8, wherein the instructions further comprise instructions to select an alternative code path in the software code of the SUT instead of the identified fault code path based on the identified fingerprint during the subsequent execution of the software code of the SUT.

### Claim 12 (depends on 8)

The system of claim 8, wherein the instructions further comprise instructions to terminate the execution of the software code of the SUT, in response to the identifying the fault code path.

### Claim 13 (depends on 8)

The system of claim 8, wherein the instructions to automatically prevent, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed further comprise instructions to identify a segment of the software code of the SUT that leads to the identified fault code path.

### Claim 14 (depends on 11)

The system of claim 11, wherein the instructions to select the alternative code path in the software code of the SUT instead of the identified fault code path further comprise instructions to select the alternative code path based on an analysis of results of the executed plurality of regression tests.

### Claim 15

A computer program product for automatically avoiding fault paths in software code of a System Under Test (SUT), the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions readable by a processing circuit to cause the processing circuit to perform a method comprising:
generating a plurality of fingerprints by executing a plurality of regression tests, wherein the plurality of regression tests is generated based on a functional coverage model of the SUT and wherein each of the plurality of fingerprints uniquely identifies a specific code path in the software code of the SUT;
detecting a critical error during execution of the software code of the SUT;
identifying a fault code path in the software code of the SUT associated with the critical error by analyzing the plurality of generated fingerprints;
identifying at least one fingerprint associated with the identified fault code path in the software code of the SUT; and
automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed based on the identified at least one fingerprint.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the functional coverage model comprises a plurality of attributes, each of the plurality of attributes having a set of possible values and wherein the functional coverage model defines possible combinations of values of the attributes as covered by the plurality of regression tests.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed further comprises identifying a minimum set of possible combinations of values of the attributes that can be set to prevent the identified fault code path from being executed.

### Claim 18 (depends on 15)

The computer program product of claim 15, further comprising selecting an alternative code path in the software code of the SUT instead of the identified fault code path based on the identified fingerprint during the subsequent execution of the software code of the SUT.

### Claim 19 (depends on 15)

The computer program product of claim 15, further comprising terminating the execution of the software code of the SUT, in response to the identifying the fault code path.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein automatically preventing, during subsequent execution of the software code of the SUT, the identified fault code path in the software code of the SUT from being executed further comprises identifying a segment of the software code of the SUT that leads to the identified fault code path.
