Test case automatic generation and verification method and device based on large language model
By adopting an automatic test case generation and verification method based on a large language model, the problem of low automation in airborne software testing is solved, and test case generation with high coverage and interpretability is achieved, thereby improving testing efficiency and reliability.
CN122285535APending Publication Date: 2026-06-26BEIHANG UNIV
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIHANG UNIV
- Filing Date
- 2026-05-29
- Publication Date
- 2026-06-26
Smart Images

Figure CN122285535A_ABST
Abstract
This invention relates to the field of computer technology, and in particular to a method and apparatus for automatic generation and verification of test cases based on a large language model. The method includes: parsing an onboard software requirements document to generate a structured requirements text; receiving onboard software source code, parsing the source code to extract function information for each function, and generating a functional semantic summary for each function, thereby forming a summary function data set integrating function information and corresponding functional semantic summaries; establishing a semantic correspondence between requirements and code based on the structured requirements text and the summary function data set to generate a requirements-code matching list; generating a test case set that satisfies the requirements constraints based on the structured requirements text, the summary function data set, and the requirements-code matching list; executing the test cases in the test case set and generating a test report, thereby solving the problems of low efficiency and strong reliance on manual intervention in traditional solutions.
Need to check novelty before this filing date? Find Prior Art