# US 2023/0267073 A1 · Machine-learning based software testing technique

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

- Number: US 2023/0267073 A1
- Document ID: US20230267073A1
- Status: Published application
- Kind: A1
- Application number: 18/007,246
- Filed: 2020-07-31
- Published: 2023-08-24
- Earliest claimed: 2020-07-31
- Assignees: Telefonaktiebolaget LM Ericsson (publ)
- Applicants: Telefonaktiebolaget LM Ericsson (PUBL)
- Inventors: Nikolas Hermanns; Magued Sedra; Sujata Roy Chowdhury; Sarah Beschorner; Alexandros Palaios
- Web page: https://patentgrep.com/patent/US20230267073A1

## CPC

- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3676: {for coverage analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A technique of training a model for determining a test case for software testing is presented, wherein the software testing is based on a set of test cases built for a set of software modules comprised by a software to be tested. The technique uses artificial intelligence and comprises obtaining log information resulting from execution of each of the test cases, wherein the log information is obtained per software module and per executed test case, and performing supervised machine learning based on the log information obtained per software module and per executed test case as input to train a model for predicting the executed test case.

## Claims

### Claim 1

A method of training a model for determining a test case (Ti) for software testing, wherein the software testing is based on a set of test cases built for a set of software modules (Mj) comprised by a software to be tested, the method comprising:
obtaining log information resulting from execution of each of the test cases, wherein the log information is obtained per software module and per executed test case; and
performing supervised machine learning based on the log information obtained per software module and per executed test case as input to train a model for predicting the executed test case.

### Claim 2 (depends on 1)

The method of claim 1, wherein
an output of the model is representable as a one hot vector indicative of the executed test case.

### Claim 3 (depends on 1)

The method of claim 1, wherein
the input to the model is representable as a set of training vectors, each training vector being associated with a particular executed test case and having a dimension corresponding to a number of software modules comprised by the set of software modules, with training vector having vector components derived from the log information.

### Claim 4 (depends on 3)

The method of claim 3, comprising
processing the log information prior to deriving the vector components.

### Claim 5 (depends on 4)

The method of claim 4, wherein
the log information comprises one or more logged events, and wherein processing the log information obtained for a particular software module comprises pruning a portion of the log information pertaining to one or more logged events repeatedly occurring upon execution of the particular software model across the test cases.

### Claim 6 (depends on 3)

The method of claim 3, wherein
the vector components for a given software module in different training vectors are weighted relative to each other across the executed test cases to reflect an amount of log information created by the given software module upon execution of a particular test case relative to an amount of log information created by the given software module upon execution of another test case.

### Claim 7 (depends on 1)

The method of claim 1, wherein
the log information is contained as logged events in a log file created per test case execution and per software module.

### Claim 8 (depends on 6)

The method of claim 6, wherein
the amount of log information is derived from a number of logged events contained in a particular log file.

### Claim 9 (depends on 5)

The method of claim 5, wherein
the amount of log information is defined by the number of logged events contained in a particular log file after logged events repeatedly occurring upon execution of the particular software model across the test cases have been pruned.

### Claim 10 (depends on 3)

The method of claim 3, wherein
deriving a vector component for a given executed test case and a given software module comprises normalizing an amount of log information created for the given test case and the given software module relative to a maximum amount of log information created for the given software module upon execution of any of the test cases.

### Claim 11 (depends on 1)

The method of claim 1, wherein
the model comprises a neural network.

### Claim 12 (depends on 1)

The method of claim 1, comprising
using the trained model for determining at least one test case for software testing.

### Claim 13 (depends on 12)

The method of claim 12, wherein
the software to be tested comprises a new release of the set of software modules in which at least one of the software modules was modified compared to an earlier release of the software modules.

### Claim 14 (depends on 13)

The method of claim 13, comprising
determining, per software module, if the software module in the new release was modified relative to the earlier release.

### Claim 15 (depends on 14)

The method of claim 14, comprising
generating an input vector having a dimension corresponding to a number of software modules comprised by the set of software modules, with the input vector having vector components quantifying a modification of the respective software module.

### Claim 16 (depends on 15)

The method of claim 15, wherein
the vector components are one of integers, floating point numbers and binary values.

### Claim 17 (depends on 15)

The method of claim 15, wherein
determining the at least one test case for the new release of software modules comprises inputting the input vector to the trained model.

### Claim at position 18

-21. (canceled)

### Claim 22

A method of determining at least one test case (Ti) for software testing out of a set of test cases built for a set of software modules (Mi) comprised by a software to be tested, the method comprising:
obtaining a trained model configured to predict at least one test case to be executed;
obtaining a software to be tested that comprises a new release of the set of software modules, wherein in the new release of the software modules at least one of the software modules was modified compared to an earlier release of the software modules;
determining, per software module, if the software module in the new release was modified relative to the earlier release;
generating a data structure representable as an input vector having a dimension corresponding to a number of software modules comprised by the set of software modules, with the input vector having vector components quantifying a modification of the respective software module; and
determining at least one test case for the new release of software modules based on an output of the trained model using the data structure as an input.

### Claim at position 20

-30. (canceled)

### Claim 31

An apparatus configured to train a model for determining a test case (Ti) for software testing, wherein the software testing is based on a set of test cases built for a set of software modules (Mj) comprised by a software to be tested, the apparatus being configured to:
obtain log information resulting from execution of each of the test cases, wherein the log information is obtained per software module and per executed test case; and
perform supervised machine learning based on the log information obtained per software module and per executed test case as input to train a model for predicting the executed test case.

### Claim 32

(canceled)

### Claim 33

An apparatus configured to determine at least one test case (Ti) for software testing out of a set of test cases built for a set of software modules (Mi) comprised by a software to be tested, the apparatus being configured to:
obtain a trained model configured to predict at least one test case to be executed;
obtain a software to be tested that comprises a new release of the set of software modules, wherein in the new release of the software modules at least one of the software modules was modified compared to an earlier release of the software modules;
determine, per software module, if the software module in the new release was modified relative to the earlier release;
generate a data structure representable as an input vector having a dimension corresponding to a number of software modules comprised by the set of software modules, with the input vector having vector components quantifying a modification of the respective software module; and
determine at least one test case for the new release of software modules based on an output of the trained model using the data structure as an input.

### Claim at position 24

-35. (canceled)
