# US 2020/0394118 A1 · Regression test fingerprints based on breakpoint values

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

- Number: US 2020/0394118 A1
- Document ID: US20200394118A1
- Status: Published application
- Kind: A1
- Application number: 16/440,404
- 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 RAWLINS; STEVEN PARTLOW
- Web page: https://patentgrep.com/patent/US20200394118A1

## CPC

- G06F 11/3612: {by runtime analysis (performance monitoring G06F11/3466)}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3636: {by tracing the execution of the program}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and computer-readable media are described for generating fingerprints for regression tests that identify code paths taken during execution of the regression tests. Breakpoint values are assigned to breakpoints encountered during execution of a regression test and a fingerprint is generated based on the assigned breakpoint values and a code path taken during execution of the regression test. Various breakpoint value assignment/fingerprint generation algorithms are described herein that generate a fingerprint from which a corresponding code path taken can be reconstructed including which breakpoints are encountered, the number of times each such breakpoint is encountered, and the order in which the breakpoints are encountered.

## Claims

### Claim 1

A computer-implemented method for generating a fingerprint for a regression test that is run on a System Under Test (SUT), the method comprising:
identifying the regression test;
assigning breakpoint values to breakpoints associated with the SUT;
executing the regression test on the SUT;
determining a code path traversed during execution of the regression test; and
determining the fingerprint for the regression test based at least in part on the code path and the assigned breakpoint values, wherein information contained in the fingerprint identifies each breakpoint encountered during execution of the regression test and a respective number of times the breakpoint is encountered
wherein the SUT comprises source code and each of the breakpoints occurs before or after a respective one or more lines of the source code, and wherein assigning the breakpoint values to the breakpoints comprises assigning a next consecutive prime number value to each breakpoint as it is encountered on the code path traversed during execution of the regression test.

### Claim 2

(canceled)

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the breakpoints comprise a first set of one or more breakpoints, each of which is assigned a respective plurality of prime number values, and wherein determining the fingerprint for the regression test comprises:
aggregating, for each breakpoint in the first set of one or more breakpoints, the respective plurality of prime number values to obtain a respective composite value; and
populating an indexed data structure with each respective composite value.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the aggregating comprises multiplying together each prime number value in the respective plurality of prime number values to obtain the respective composite value.

### Claim 6 (depends on 4)

The computer-implemented method of claim 4, wherein the breakpoints further comprise a second set of one or more breakpoints, each of which is assigned a respective single prime number value, the method further comprising populating the indexed data structure with each respective single prime number value.

### Claim 7 (depends on 4)

The computer-implemented method of claim 4, wherein each value in the indexed data structure corresponds to a respective breakpoint, the method further comprising reconstructing the code path traversed during execution of the regression test at least in part by:
determining, for each value in the indexed data structure, a respective one or more prime number values contained in the value; and
reconstructing the code path based at least in part on each respective one or more prime number values, wherein the code path indicates both a respective number of times and an order in which each breakpoint is encountered during execution of the regression test.

### Claim 8

A system for generating a fingerprint for a regression test that is run on 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:
identify the regression test;
assign breakpoint values to breakpoints associated with the SUT;
execute the regression test on the SUT;
determine a code path traversed during execution of the regression test; and
determine the fingerprint for the regression test based at least in part on the code path and the assigned breakpoint values, wherein information contained in the fingerprint identifies each breakpoint encountered during execution of the regression test and a respective number of times the breakpoint is encountered;
wherein the SUT comprises source code and each of the breakpoints occurs before or after a respective one or more lines of the source code, and wherein assigning the breakpoint values to the breakpoints comprises assigning a next consecutive prime number value to each breakpoint as it is encountered on the code path traversed during execution of the regression test.

### Claim 9

(canceled)

### Claim 10

(canceled)

### Claim 11 (depends on 8)

The system of claim 8, wherein the breakpoints comprise a first set of one or more breakpoints, each of which is assigned a respective plurality of prime number values, and wherein the at least one processor is configured to determine the fingerprint for the regression test by executing the computer-executable instructions to:
aggregate, for each breakpoint in the first set of one or more breakpoints, the respective plurality of prime number values to obtain a respective composite value; and
populate an indexed data structure with each respective composite value.

### Claim 12 (depends on 11)

The system of claim 11, wherein the aggregating comprises multiplying together each prime number value in the respective plurality of prime number values to obtain the respective composite value.

### Claim 13 (depends on 11)

The system of claim 11, wherein the breakpoints further comprise a second set of one or more breakpoints, each of which is assigned a respective single prime number value, and wherein the at least one processor is further configured to execute the computer-executable instructions to populate the indexed data structure with each respective single prime number value.

### Claim 14 (depends on 11)

The system of claim 11, wherein each value in the indexed data structure corresponds to a respective breakpoint, and wherein the at least one processor is further configured to execute the computer-executable instructions to reconstruct the code path traversed during execution of the regression test at least in part by:
determining, for each value in the indexed data structure, a respective one or more prime number values contained in the value; and
reconstructing the code path based at least in part on each respective one or more prime number values, wherein the code path indicates both a respective number of times and an order in which each breakpoint is encountered during execution of the regression test.

### Claim 15

A computer program product for generating a fingerprint for a regression test that is run on 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:
identifying the regression test;
assigning breakpoint values to breakpoints associated with the SUT;
executing the regression test on the SUT;
determining a code path traversed during execution of the regression test; and
determining the fingerprint for the regression test based at least in part on the code path and the assigned breakpoint values, wherein information contained in the fingerprint identifies each breakpoint encountered during execution of the regression test and a respective number of times the breakpoint is encountered;
wherein the SUT comprises source code and each of the breakpoints occurs before or after a respective one or more lines of the source code, and wherein assigning the breakpoint values to the breakpoints comprises assigning a next consecutive prime number value to each breakpoint as it is encountered on the code path traversed during execution of the regression test.

### Claim 16

(canceled)

### Claim 17

(canceled)

### Claim 18 (depends on 15)

The computer program product of claim 15, wherein the breakpoints comprise a first set of one or more breakpoints, each of which is assigned a respective plurality of prime number values, and wherein determining the fingerprint for the regression test comprises:
aggregating, for each breakpoint in the first set of one or more breakpoints, the respective plurality of prime number values to obtain a respective composite value, wherein the aggregating comprises multiplying together each prime number value in the respective plurality of prime number values to obtain the respective composite value; and
populating an indexed data structure with each respective composite value.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the breakpoints further comprise a second set of one or more breakpoints, each of which is assigned a respective single prime number value, the method further comprising populating the indexed data structure with each respective single prime number.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein each value in the indexed data structure corresponds to a respective breakpoint, the method further comprising reconstructing the code path traversed during execution of the regression test at least in part by:
determining, for each value in the indexed data structure, a respective one or more prime number values contained in the value; and
reconstructing the code path based at least in part on each respective one or more prime number values, wherein the code path indicates both a respective number of times and an order in which each breakpoint is encountered during execution of the regression test.
