一种测试用例的目标用例缺陷预测模型的生成方法和装置

By constructing a target use case defect prediction model and training it using logistic regression algorithm and cross-entropy loss function, the problem of low efficiency in test case defect discovery is solved, enabling rapid defect location and improved testing efficiency, thus ensuring stable product launch.

CN115794647BActive Publication Date: 2026-07-17BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
Filing Date
2022-12-12
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In the existing testing process, the discovery of test case defects relies on manual searching, which leads to excessive time consumption, low efficiency, and an inability to meet the testing needs of rapidly iterating products. In particular, when complex defects are discovered in the later stages of testing, the testing progress is affected, and the normal launch of the product cannot be guaranteed.

Method used

A target test case defect prediction model is constructed. By acquiring historical test cases, performing word segmentation and unique encoding, and using logistic regression algorithm and cross-entropy loss function to iteratively train the model, the defect probability of test cases is predicted.

Benefits of technology

Quickly locate defective test cases, shorten testing time, improve testing efficiency, reduce manpower and time costs, ensure stable product launch, expand testing scenarios to cover more product requirements, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794647B_ABST
    Figure CN115794647B_ABST
Patent Text Reader

Abstract

本发明公开了一种测试用例的目标用例缺陷预测模型的生成方法和装置,涉及深度学习技术领域。该方法的具体实施方式包括:获取多个历史测试用例;其中,历史测试用例包括用例编号和多个用例字段;根据多个用例字段中包括的测试缺陷字段的值,确定历史测试用例的缺陷标签;将历史测试用例作为输入,根据用例缺陷预测模型输出预测概率分布,基于预测概率分布与真实概率分布确定损失函数,通过损失函数对用例缺陷预测模型进行迭代训练;根据迭代训练的训练结果,确定目标用例缺陷预测模型。该实施方式能够构建测试用例的目标用例缺陷预测模型,预测测试用例的缺陷概率,进而快速定位存在缺陷的测试用例,以及时提交开发人员处理,提高了测试效率。
Need to check novelty before this filing date? Find Prior Art