基于大语言模型生成测试用例的方法、装置和设备

By using a test case generation method based on a large language model, test requirements are parsed and prompt words are constructed to generate test cases that conform to the system's business logic. This solves the problem of conflicts between existing tools and system processes, and achieves seamless integration and efficiency improvement.

CN120803950BActive Publication Date: 2026-07-17HANGZHOU FEIZHIYUN INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU FEIZHIYUN INFORMATION TECH CO LTD
Filing Date
2025-08-12
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing automated test case generation tools conflict with system workflows, leading to test failures or increased maintenance costs, and making it difficult to seamlessly integrate them into existing systems.

Method used

The method for generating test cases based on a large language model obtains the type, application domain, and business process by parsing test requirements, constructs prompt words, and generates test cases using a pre-trained large language model, ensuring that they conform to the system's business logic and state machine contract.

Benefits of technology

The generated test cases naturally conform to the system's business logic, achieving seamless integration with the existing system, improving testing efficiency and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803950B_ABST
    Figure CN120803950B_ABST
Patent Text Reader

Abstract

本公开提供了一种基于大语言模型生成测试用例的方法、装置和设备,该方法包括:获取测试用例的测试需求,并对测试需求进行解析,得到测试用例所属的类型、应用领域、业务流程以及第一关键测试信息;基于测试用例所属的类型、应用领域、业务流程以及第一关键测试信息构建用于生成测试用例的提示词;基于提示词,采用预先训练的大语言模型,生成测试用例。在本公开中考虑测试用例所属的应用领域和业务流程构建了提示词,从而使大语言模型可以结合其应用领域的知识信息以及相关业务流程的上下文约束构建测试用例,进而使生成的测试用例天然符合系统业务逻辑和状态机契约,实现与现有系统的无缝嵌入。
Need to check novelty before this filing date? Find Prior Art