Fusion probability large language model test case generation method and system

CN121979801BActive Publication Date: 2026-08-28TIANJIN UNIVERSITY OF TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610434498.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-04-03
Publication Date
2026-08-28
Estimated Expiration
2046-04-03

AI Technical Summary

Technical Problem

然而,由于生成结果通常以断言的形式直接参与测试,其输入覆盖情况和断言结果的合理性对测试效果具有直接影响

Benefits of technology

判断标签模块:用于计算高覆盖度断言的候选概率参数和不确定度标志,根据高覆盖度断言的候选概率参数和不确定度标志构建断言特征向量,将断言特征向量输入到判断模型中,得到判断标签;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121979801B_ABST
    Figure CN121979801B_ABST
Patent Text Reader

Abstract

The present application relates to the field of test case generation, and provides a large language model test case generation method and system fusing probability, which comprises obtaining candidate probability and candidate probability parameter of training assertion, constructing training assertion feature vector through candidate probability parameter and uncertainty mark; obtaining assertion correctness parameter, multiple benchmark models respectively performing multi-level correct probability prediction on the training assertion feature vector to obtain comprehensive prediction probability, and obtaining a judgment model according to the assertion correctness parameter and the comprehensive prediction probability; generating an initial assertion according to assertion generation constraints, calculating the mode coverage number and Shannon entropy of the initial assertion, judging the coverage degree of the initial assertion, and obtaining a high-coverage-degree assertion; calculating the candidate probability parameter and the uncertainty mark of the high-coverage-degree assertion, constructing an assertion feature vector, inputting the assertion feature vector into the judgment model, and obtaining a judgment label; and then judging and rewriting to obtain a target assertion, so as to generate a test case.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Patent Citations

  • Fuzzy test case optimization method and system

    CN117667749A

  • Automatic generation of assert statements for unit test cases

    WO2022046190A1