# US 2020/0394125 A1 · Customizable test set selection using code flow trees

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

- Number: US 2020/0394125 A1
- Document ID: US20200394125A1
- Status: Published application
- Kind: A1
- Application number: 16/440,751
- 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
- Web page: https://patentgrep.com/patent/US20200394125A1

## CPC

- G06F 11/3676: {for coverage analysis}
- G06F 11/3604: Analysis of software for verifying properties of programs (testing of software G06F11/3668)
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 16/9027: {Trees}
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method for identifying optimal tests includes defining functional coverage by a test suite based on a functional coverage model of a System Under Test (SUT). The test suite includes a plurality of tests. The functional coverage model includes a plurality of attributes, each attribute having a set of possible values. The functional coverage model defines possible combinations of values of the attributes as covered by the test suite. A subset of the possible combinations of values is determined. A subset of the plurality of tests is selected that is operative to cover the determined subset of the possible combinations of values. A plurality of trees is generated to represent the selected subset of tests. Complexity of the generated trees is analyzed based on user-specified criteria. An optimal tree is selected from the subset of the plurality of trees to achieve the objective of the test suite.

## Claims

### Claim 1

A method for identifying optimal tests, the method comprising:
defining functional coverage by a test suite based on a functional coverage model of a System Under Test (SUT), wherein the test suite comprises a plurality of tests, 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 test suite;
determining a subset of the possible combinations of values, wherein the subset is characterized in covering substantially all pairwise combinations of the possible combinations;
selecting a subset of the plurality of tests, wherein the selected subset of the plurality of tests is operative to cover the determined subset of the possible combinations of values;
generating a plurality of trees comprising a plurality of code flow trees to represent the selected subset of the plurality of tests;
analyzing a complexity of the generated plurality of trees based on user-specified criteria; and
selecting an optimal tree from the subset of the plurality of trees to achieve an objective of the test suite based on the analyzed complexity of the generated plurality of trees.

### Claim 2 (depends on 1)

The method of claim 1, wherein the complexity of the generated plurality of trees is analyzed using a vector analysis model.

### Claim 3 (depends on 1)

The method of claim 1, wherein the complexity of the generated plurality of trees is analyzed using a machine learning model.

### Claim 4 (depends on 3)

The method of claim 3, wherein analyzing the complexity further comprises analyzing a depth of each of the plurality of trees and analyzing a breadth of each of the plurality of trees.

### Claim 5 (depends on 3)

The method of claim 3, wherein analyzing the complexity further comprises analyzing a total number of edges and a total number of nodes associated with each of the plurality of trees.

### Claim 6 (depends on 3)

The method of claim 3, wherein analyzing the complexity further comprises analyzing a shape of each of the plurality of trees.

### Claim 7 (depends on 1)

The method of claim 1, wherein the selected subset of the plurality of tests excludes combinations that are restricted by a set of restrictions over the plurality of attributes and associated domains.

### Claim 8

A system for identifying optimal tests, the system comprising:
a memory having computer-readable instructions; and
one or more processors for executing the computer-readable instructions, the computer-readable instructions comprising:
instructions for defining functional coverage by a test suite based on a functional coverage model of a System Under Test (SUT), wherein the test suite comprises a plurality of tests, 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 test suite;
instructions for determining a subset of the possible combinations of values, wherein the subset is characterized in covering substantially all pairwise combinations of the possible combinations;
instructions for selecting a subset of the plurality of tests, wherein the selected subset of the plurality of tests is operative to cover the determined subset of the possible combinations of values;
instructions for generating a plurality of trees comprising a plurality of code flow trees to represent the selected subset of the plurality of tests;
instructions for analyzing a complexity of the generated plurality of trees based on user-specified criteria; and
instructions for selecting an optimal tree from the subset of the plurality of trees to achieve an objective of the test suite based on the analyzed complexity of the generated plurality of trees.

### Claim 9 (depends on 8)

The system of claim 8, wherein the instructions for analyzing the complexity of the generated plurality of trees further comprise instructions for analyzing the complexity of the generated plurality of trees using a vector analysis model.

### Claim 10 (depends on 8)

The system of claim 8, wherein the instructions for analyzing the complexity of the generated plurality of trees further comprise instructions for analyzing the complexity of the generated plurality of trees using a machine learning model.

### Claim 11 (depends on 10)

The system of claim 10, wherein the instructions for analyzing the complexity of the generated plurality of trees further comprise instructions for analyzing a depth of each of the plurality of trees and analyzing a breadth of each of the plurality of trees.

### Claim 12 (depends on 10)

The system of claim 10, wherein the instructions for analyzing the complexity of the generated plurality of trees further comprise instructions for analyzing a total number of edges and a total number of nodes associated with each of the plurality of trees.

### Claim 13 (depends on 10)

The system of claim 10, wherein the instructions for analyzing the complexity of the generated plurality of trees further comprise instructions for analyzing a shape of each of the plurality of trees.

### Claim 14 (depends on 8)

The system of claim 8, wherein the selected subset of the plurality of tests excludes combinations that are restricted by a set of restrictions over the plurality of attributes and associated domains.

### Claim 15

A computer-program product for identifying optimal tests, the computer-program product comprising a computer-readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to perform a method comprising:
defining functional coverage by a test suite based on a functional coverage model of a System Under Test (SUT), wherein the test suite comprises a plurality of tests, 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 test suite;
determining a subset of the possible combinations of values, wherein the subset is characterized in covering substantially all pairwise combinations of the possible combinations;
selecting a subset of the plurality of tests, wherein the selected subset of the plurality of tests is operative to cover the determined subset of the possible combinations of values;
generating a plurality of trees comprising a plurality of code flow trees to represent the selected subset of the plurality of tests;
analyzing a complexity of the generated plurality of trees based on user-specified criteria; and
selecting an optimal tree from the subset of the plurality of trees to achieve an objective of the test suite based on the analyzed complexity of the generated plurality of trees.

### Claim 16 (depends on 15)

The computer-program product of claim 15, wherein the complexity of the generated plurality of trees is analyzed using a vector analysis model.

### Claim 17 (depends on 15)

The computer-program product of claim 15, wherein the complexity of the generated plurality of trees is analyzed using a machine learning model.

### Claim 18 (depends on 17)

The computer-program product of claim 17, wherein analyzing the complexity further comprises analyzing a depth of each of the plurality of trees and analyzing a breadth of each of the plurality of trees.

### Claim 19 (depends on 17)

The computer-program product of claim 17, wherein analyzing the complexity further comprises analyzing a total number of edges and a total number of nodes associated with each of the plurality of trees.

### Claim 20 (depends on 17)

The computer-program product of claim 17, wherein analyzing the complexity further comprises analyzing a shape of each of the plurality of trees.
