本文已被:浏览 1413次 下载 2940次
Received:December 23, 2015 Revised:January 29, 2016
Received:December 23, 2015 Revised:January 29, 2016
中文摘要: 软件测试技术中,高效的测试用例生成能够大幅简化测试工作,提高测试效率,节省软件开发成本. 遗传算法作为一种高效的搜索寻优算法已被广泛应用到测试用例自动生成的研究中,然而传统的遗传算法虽然具有良好的全局搜索能力,但对于局部空间的求精问题却不是很有效,存在早熟问题. 针对这些问题,结合禁忌搜索算法,对传统的遗传算法在适应度函数、遗传算子方面进行改进,并进行遗传导向控制,能够有效控制遗传早熟问题,提高遗传算法的局部寻优能力. 实验结果表明,本文所建议的方法在测试用例生成的效率和效果方面均优于基于传统遗传算法的测试用例方法.
Abstract:In software testing process, efficient test case generation can dramatically simplify testing, improve test efficiency and save software development costs. As an effective search algorithm, genetic algorithm has been widely applied to the study on automatic generation of test cases, and has good global search capability. However, some inherent limits of this algorithm exist, such as low optimization efficiency, premature convergence, etc. This paper proposes a modified genetic algorithm combined with tabu search algorithm, improves the select and crossover operator of genetic algorithm against the shortcomings of premature convergence, and adopt the optimal preservation strategy for improving search capabilities in the local space and the overall operating efficiency. Experiments result shows that the new algorithm has obvious advantages in efficiency and effectiveness compared with traditional genetic algorithm for test case generation.
keywords: software engineering software testing genetic algorithm tabu algorithm test case generation
文章编号: 中图分类号: 文献标志码:
基金项目:
引用文本:
吴昊,李浩然,万交龙.对于测试用例生成的遗传算法改进.计算机系统应用,2016,25(8):200-205
WU Hao,LI Hao-Ran,WAN Jiao-Long.Improved Genetic Algorithm Used in Test Cases.COMPUTER SYSTEMS APPLICATIONS,2016,25(8):200-205
吴昊,李浩然,万交龙.对于测试用例生成的遗传算法改进.计算机系统应用,2016,25(8):200-205
WU Hao,LI Hao-Ran,WAN Jiao-Long.Improved Genetic Algorithm Used in Test Cases.COMPUTER SYSTEMS APPLICATIONS,2016,25(8):200-205