# A method for generating test cases for testing a software program

*Источник: Google Patents*
*Дата: 2026-09-16*
*Язык: en*

A method for generating test cases for testing a software program

The invention relates to a method (100) for generating test cases for testing a software program, comprising: 
- Training (101) a first machine learning model (1) for a next-token prediction based on a training data set, the training data set comprising test cases for testing the software program in a code format, 
- Providing (102) a labelled training data set, the labelled training data set comprising test cases that are each associated with at least one characteristic of the software program, 
- Performing (103) a respective fine-tuning of the trained first machine learning model (1) for the next-token prediction based on the labelled training data set for each characteristic of the software program to provide a specialized machine learning model (2) for each respective characteristic, 
- Generating (104) the test cases for testing the software program for at least one of the characteristics of the software program by utilizing the first machine learning model (1) and/or a respective specialized machine learning model (2) that was fine-tuned for said at least one of the characteristics.

[Оригинал](https://patents.google.com/patent/EP4807565A1/en)