# US 2026/0099429 A1 · Automated microservice testing

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

- Number: US 2026/0099429 A1
- Document ID: US20260099429A1
- Status: Published application
- Kind: A1
- Application number: 18/980,377
- Filed: 2024-12-13
- Published: 2026-04-09
- Earliest claimed: 2024-10-07
- Assignees: Hewlett Packard Enterprise Development LP
- Applicants: Hewlett Packard Enterprise Development LP
- Inventors: Hiro Rameshlal Lalwani; Rachit Gupta; Sherine Jacob; Sagar Venkappa Nyamagouda; Jayasankar Nallasamy; Kumar Gaurav; Charan Kumar Halelakya Lokesha; Adhitya Kothandaraman; Bhuvanesh K
- Web page: https://patentgrep.com/patent/US20260099429A1

## CPC

- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- 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 computer-implemented method and system can be used to test a code modification for a microservice application. The code modification is analyzed using a machine learning model trained on historical test run results and code change data, Based on the analysis, a subset of test cases relevant to the code modification are predicted and selected from a test case repository. The selected subset of test cases can be executed to test the code modification. If the test cases are stored in natural language, natural language processing can be used to determine actionable words and assign weightages from the test case information. Test scripts can be developed based on the determined actionable words and assigned weightages.

## Claims

### Claim 1

A computer system comprising:
a distributed computing environment configured to deploy a plurality of microservices, each microservice configured to perform a function of a cloud service;
a version control system configured manage code modifications for the microservices;
a machine learning model trained on historical test run results and code change data;
a test case repository storing a plurality of test cases; and
a test execution engine configured to
receive a code modification for one of the microservices;
analyze the code modification using the machine learning model; and
select a subset of the test cases from the test case repository based on the analysis of the code modification, the selected subset of test cases being executable to test the received code modification.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein the distributed computing environment is configured to deploy updated microservices based on successful test results from the executed subset of test cases.

### Claim 3 (depends on 1)

The computer system of claim 1, further comprising an orchestration layer configured to manage interactions between the microservices and route requests to appropriate microservices.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the machine learning model comprises a decision tree classifier.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the distributed computing environment comprises on-premises infrastructure, private cloud infrastructure, and public cloud infrastructure.

### Claim 6

A computer-implemented method comprising:
receiving natural language test case information for testing a microservice;
using natural language processing to determine actionable words and assign weightages from the test case information;
developing a test script based on the determined actionable words and assigned weightages; and
executing the test script to test the microservice.

### Claim 7 (depends on 6)

The method of claim 6, wherein developing the test script comprises:
generating tokens based on the determined actionable words and assigned weightages;
querying a database using the generated tokens to retrieve corresponding methods; and
forming the test script by combining the retrieved corresponding methods.

### Claim 8 (depends on 7)

The method of claim 7, wherein the database comprises a mapping of operations to the corresponding methods in a testing framework.

### Claim 9 (depends on 6)

The method of claim 6, wherein using the natural language processing comprises:
identifying stop words in the test case information; and
removing the identified stop words from the test case information prior to determining the actionable words.

### Claim 10 (depends on 6)

The method of claim 6, wherein the assigned weightages are determined by determining a numerical value for terms in the natural language test case information based on a determined importance of each term.

### Claim 11 (depends on 6)

The method of claim 6, further comprising:
receiving a code change associated with a software application;
analyzing the code change to determine relevant test cases; and
selecting the natural language test case information for processing based on the determined relevant test cases.

### Claim 12

A computer-implemented method comprising:
receiving a code modification for a microservice application;
analyzing the code modification using a machine learning model trained on historical test run results and code change data;
predicting, based on the analyzing, a subset of test cases relevant to the code modification;
selecting the subset of test cases from a test case repository; and
executing the selected subset of test cases to test the code modification.

### Claim 13 (depends on 12)

The method of claim 12, wherein the machine learning model comprises a decision tree classifier.

### Claim 14 (depends on 12)

The method of claim 12, wherein analyzing the code modification comprises:
identifying code paths affected by the code modification; and
determining functional areas of the microservice application associated with the affected code paths.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
receiving results of executing the selected subset of test cases;
comparing the received results with predicted outcomes from the machine learning model; and
updating the machine learning model based on the comparing.

### Claim 16 (depends on 12)

The method of claim 12, further comprising determining an execution environment for each test case in the selected subset of test cases, wherein the execution environment is selected from the group consisting of on-premises infrastructure, private cloud infrastructure, and public cloud infrastructure.

### Claim 17 (depends on 12)

The method of claim 12, further comprising creating the machine learning model, wherein the creating comprises:
collecting historical data;
selecting a machine learning algorithm for the model;
training the selected machine learning algorithm using the historical data to create a trained model;
validating the trained model using a subset of the historical data reserved for validation; and
testing the validated model with new code changes to assess predictive performance.

### Claim 18 (depends on 17)

The method of claim 17, wherein the historical data comprises:
code changes from a version control system;
past test cases executed in response to the code changes;
code paths exercised by the executed test cases; and
outcomes of the past test cases.

### Claim 19 (depends on 17)

The method of claim 17, further comprising preprocessing the collected historical data, the preprocessing comprising:
extracting features from the code changes;
mapping the extracted features to past test cases; and
labeling the mapped features with outcomes of the past test cases.

### Claim 20 (depends on 19)

The method of claim 19, wherein the training comprises:
inputting extracted features from code changes from a version control system;
comparing predicted relevant test cases with actually executed test cases; and
adjusting model parameters based on the comparing.
