计算机应用与软件2026,Vol.43Issue(10):28-36,9.DOI:10.3969/j.issn.1000-386x.2026.10.004
融合播种策略与引导遗传算法的故障复现测试用例生成
FUSION OF SEEDING STRATEGY AND BOOTSTRAP GENETIC ALGORITHM FOR FAULT RECURRENCE TEST CASE GENERATION
刘学君 1陈庆帅 1黄正清 2王微微 1赵瑞莲2
作者信息
- 1. 北京石油化工学院信息工程学院 北京 102600
- 2. 北京化工大学信息科学与技术学院 北京 100029
- 折叠
摘要
Abstract
Search algorithms are favored for their efficiency and reliability in the field of automated testing,especially in fault reproduction.However,existing search-based fault reproduction methods often neglect the generation of method sequence parameters when dealing with the test case generation problem,resulting in the inability to cover the code statements of some specific parameters,thus affecting the effectiveness and efficiency of malfunction reproduction.To solve this problem,this paper proposes a test case generation method for malfunction reproduction that incorporates seeding strategy and bootstrap genetic algorithm.The method collected the possible values of parameters in the method sequence by combining static and dynamic analysis and constructed a seed pool.And the seeding strategy was used to optimize the generation of the initial population and the genetic operation in order to improve the test case generation process oriented to malfunction reproduction,so as to enhance the effectiveness and efficiency of software malfunction reproduction.In addition,this paper designed and optimized the fitness function from the three aspects of fault-triggered statement coverage,fault type and fault stack trajectory similarity,which helped to effectively identify potentially superior individuals,improved computational efficiency,and accelerated the convergence speed of the algorithm.To verify the effectiveness of the method in this paper,105 real software faults were collected from five large open source software for experimental validation.The results show that compared with the existing software malfunction reproduction methods,the method in this paper is able to reproduce more malfunction on the real software fault dataset,with a maximum improvement of 40.055%in the reproduction efficiency and a maximum improvement of 7.15 percentage point in the reproduction effect.关键词
软件测试/故障复现/测试用例生成/引导遗传算法/播种策略Key words
Software testing/Malfunction reproduction/Test case generation/Guided genetic algorithm/Seeding strategy分类
信息技术与安全科学引用本文复制引用
刘学君,陈庆帅,黄正清,王微微,赵瑞莲..融合播种策略与引导遗传算法的故障复现测试用例生成[J].计算机应用与软件,2026,43(10):28-36,9.