# US 2020/0394121 A1 · Associating attribute seeds of regression test cases with breakpoint value-based fingerprints

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

- Number: US 2020/0394121 A1
- Document ID: US20200394121A1
- Status: Published application
- Kind: A1
- Application number: 16/440,857
- 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/US20200394121A1

## CPC

- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 11/3676: {for coverage analysis}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 2201/83: the solution involving signatures
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and computer-readable media are described for associating regression test cases with corresponding test fingerprints via a translation table or other suitable storage mechanism. A test fingerprint indicates a collection of breakpoints encountered as part of traversal of a code path during execution of a test case, and thus, provides an indication of an extent of code coverage of the test case. Test fingerprints can be evaluated to determine cumulative code coverage of sets of test cases. Specific sets of test cases can be selected based on the cumulative code coverage they provide. Sets of test cases that provide greater cumulative code coverage and/or that target specific areas of interest can be prioritized for execution particularly when having to adhere to execution constraints.

## Claims

### Claim 1

A computer-implemented method for associating a particular test case with a particular test fingerprint indicative of code coverage of the particular test case, the method comprising:
executing the particular test case;
determining a code path traversed during execution of the particular test case;
determining a collection of breakpoints encountered during traversal of the code path;
determining the particular test fingerprint corresponding to the particular test case based at least in part on the collection of breakpoints;
determining an attribute seed associated with the particular test case; and
storing an association between the attribute seed and the particular test fingerprint.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining a desired amount of cumulative code coverage; and
selecting a group of test cases to execute to obtain the desired amount of cumulative code coverage, wherein the group of test cases comprises the particular test case, and wherein selecting the group of test cases comprises:
determining a group of test fingerprints respectively corresponding to the group of test cases based at least in part on a respective stored association between a respective attribute seed associated with each test case in the group of test cases and a corresponding test fingerprint in the group of test fingerprints; and
determining that the group of test fingerprints provides the desired amount of cumulative code coverage.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein determining that the group of test fingerprints provides the desired amount of cumulative code coverage comprises:
determining a cumulative number of breakpoints represented by the group of test fingerprints; and
determining that the cumulative number of breakpoints provide a cumulative code coverage that is at least as large as the desired amount of cumulative code coverage.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein determining the cumulative number of breakpoints represented by the group of test fingerprints comprises identifying, from each test fingerprint in the group of test fingerprints, a respective number of unique breakpoints encountered during execution of a corresponding test case of the group of test cases.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, wherein storing the association between the attribute seed and the particular test fingerprint comprises populating a translation table with an entry storing the association.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
identifying a first group of test cases and a second group of test cases, each group of test cases providing a desired coverage of a test space;
determining a first group of test fingerprints respectively corresponding to the first group of test cases and a second group of test fingerprints respectively corresponding to the second group of test cases;
determining a first cumulative code coverage associated with the first group of test fingerprints and a second cumulative code coverage associated with the second group of test fingerprints;
determining that the first cumulative code coverage is greater than the second cumulative code coverage; and
selecting the first group of test cases for execution based at least in part on determining that the first cumulative code coverage is greater than the second cumulative code coverage.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the attribute seed is indicative of a combination of attribute-value pairs tested by the particular test case.

### Claim 8

A system for associating a particular test case with a particular test fingerprint indicative of code coverage of the particular test case, 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:
execute the particular test case;
determine a code path traversed during execution of the particular test case;
determine a collection of breakpoints encountered during traversal of the code path;
determine the particular test fingerprint corresponding to the particular test case based at least in part on the collection of breakpoints;
determine an attribute seed associated with the particular test case; and
store an association between the attribute seed and the particular test fingerprint.

### Claim 9 (depends on 8)

The system of claim 8, wherein the at least one processor is further configured to execute the computer-executable instructions to:
determine a desired amount of cumulative code coverage; and
select a group of test cases to execute to obtain the desired amount of cumulative code coverage, wherein the group of test cases comprises the particular test case, and wherein the at least one processor is configured to select the group of test cases by executing the computer-executable instructions to:
determine a group of test fingerprints respectively corresponding to the group of test cases based at least in part on a respective stored association between a respective attribute seed associated with each test case in the group of test cases and a corresponding test fingerprint in the group of test fingerprints; and
determine that the group of test fingerprints provides the desired amount of cumulative code coverage.

### Claim 10 (depends on 9)

The system of claim 9, wherein the at least one processor is configured to determine that the group of test fingerprints provides the desired amount of cumulative code coverage by executing the computer-executable instructions to:
determine a cumulative number of breakpoints represented by the group of test fingerprints; and
determine that the cumulative number of breakpoints provide a cumulative code coverage that is at least as large as the desired amount of cumulative code coverage.

### Claim 11 (depends on 10)

The system of claim 10, wherein the at least one processor is configured to determine the cumulative number of breakpoints represented by the group of test fingerprints by executing the computer-executable instructions to identify, from each test fingerprint in the group of test fingerprints, a respective number of unique breakpoints encountered during execution of a corresponding test case of the group of test cases.

### Claim 12 (depends on 8)

The system of claim 8, wherein the at least one processor is configured to store the association between the attribute seed and the particular test fingerprint by executing the computer-executable instructions to populate a translation table with an entry storing the association.

### Claim 13 (depends on 8)

The system of claim 8, wherein the at least one processor is further configured to execute the computer-executable instructions to:
identify a first group of test cases and a second group of test cases, each group of test cases providing a desired coverage of a test space;
determine a first group of test fingerprints respectively corresponding to the first group of test cases and a second group of test fingerprints respectively corresponding to the second group of test cases;
determine a first cumulative code coverage associated with the first group of test fingerprints and a second cumulative code coverage associated with the second group of test fingerprints;
determine that the first cumulative code coverage is greater than the second cumulative code coverage; and
select the first group of test cases for execution based at least in part on determining that the first cumulative code coverage is greater than the second cumulative code coverage.

### Claim 14 (depends on 8)

The system of claim 8, wherein the attribute seed is indicative of a combination of attribute-value pairs tested by the particular test case.

### Claim 15

A computer program product for associating a particular test case with a particular test fingerprint indicative of code coverage of the particular test case, 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:
executing the particular test case;
determining a code path traversed during execution of the particular test case;
determining a collection of breakpoints encountered during traversal of the code path;
determining the particular test fingerprint corresponding to the particular test case based at least in part on the collection of breakpoints;
determining an attribute seed associated with the particular test case; and
storing an association between the attribute seed and the particular test fingerprint.

### Claim 16 (depends on 15)

The computer program product of claim 15, the method further comprising:
determining a desired amount of cumulative code coverage; and
selecting a group of test cases to execute to obtain the desired amount of cumulative code coverage, wherein the group of test cases comprises the particular test case, and wherein selecting the group of test cases comprises:
determining a group of test fingerprints respectively corresponding to the group of test cases based at least in part on a respective stored association between a respective attribute seed associated with each test case in the group of test cases and a corresponding test fingerprint in the group of test fingerprints; and
determining that the group of test fingerprints provides the desired amount of cumulative code coverage.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein determining that the group of test fingerprints provides the desired amount of cumulative code coverage comprises:
determining a cumulative number of breakpoints represented by the group of test fingerprints; and
determining that the cumulative number of breakpoints provide a cumulative code coverage that is at least as large as the desired amount of cumulative code coverage.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein determining the cumulative number of breakpoints represented by the group of test fingerprints comprises identifying, from each test fingerprint in the group of test fingerprints, a respective number of unique breakpoints encountered during execution of a corresponding test case of the group of test cases.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein storing the association between the attribute seed and the particular test fingerprint comprises populating a translation table with an entry storing the association.

### Claim 20 (depends on 15)

The computer program product of claim 15, the method further comprising:
identifying a first group of test cases and a second group of test cases, each group of test cases providing a desired coverage of a test space;
determining a first group of test fingerprints respectively corresponding to the first group of test cases and a second group of test fingerprints respectively corresponding to the second group of test cases;
determining a first cumulative code coverage associated with the first group of test fingerprints and a second cumulative code coverage associated with the second group of test fingerprints;
determining that the first cumulative code coverage is greater than the second cumulative code coverage; and
selecting the first group of test cases for execution based at least in part on determining that the first cumulative code coverage is greater than the second cumulative code coverage.
