摘要
现有基于搜索的面向对象程序测试数据生成方法缺乏对参数列表的更新,导致测试数据生成效率不高。在传统基于遗传算法的面向对象程序测试数据生成方法的基础上,引入粒子群算法对参数列表进行更新,实现了方法序列和参数列表的共同更新。测试结果表明,所提方法能大幅提高面向对象程序测试数据生成的成功率及生成效率。
Due to the lack of consideration of parameter list in search-based test data generationmetliods for object-oriented programs, the efficiency for test data generation is low. Based on the tra-ditional test data generation method for object-oriented programs using genetic algorithm,particle swarm optimization is introduced to realize parameter list updating. Thereby, parameter list can be updated simultaneously. The results showthat the proposed method can greatlyincrease the success rate and efficiency of test data generation for object-oriented programs.
出处
《信息工程大学学报》
2017年第4期492-497,共6页
Journal of Information Engineering University