首页 | 本学科首页   官方微博 | 高级检索  
     

基于自适应遗传算法的软件测试用例自动生成
引用本文:李柱.基于自适应遗传算法的软件测试用例自动生成[J].计算机系统应用,2016,25(1):192-196.
作者姓名:李柱
作者单位:重庆交通大学, 重庆 400074
摘    要:在软件测试中,测试成功的关键是快速、高效的生成测试用例.遗传算法是一种通过模拟自然界生物进化过程搜寻最优解的一种算法,算法通过选择、交叉和变异操作引导算法搜索方向,逐步接近全局最优解.传统遗传算法由于具有较好的全局搜索能力,因此被很多科研人员应用于测试用例生成.但遗传算法的固有缺陷"早熟收敛",容易导致算法收敛于局部最优.针对这种情况,提出一种自适应遗传算法,该算法交叉算子和变异算子可根据程序变化自动调整,随后,将改进后的算法应用于一程序的测试用例生成中.测试结果表明该算法在测试用例生成的效率和效果方面优于传统搜索算法和普通改进算法.

关 键 词:自适应遗传算法  自适应交叉算子  自适应变异算子  测试用例生成
收稿时间:5/5/2015 12:00:00 AM
修稿时间:2015/6/18 0:00:00

Automatic Testing-Case Generation Based on Adaptive Genetic Algorithm
LI Zhu.Automatic Testing-Case Generation Based on Adaptive Genetic Algorithm[J].Computer Systems& Applications,2016,25(1):192-196.
Authors:LI Zhu
Affiliation:Chongqing Jiaotong University, Chongqing 400074, China
Abstract:In software testing, the key to a successful test is a fast and efficient testing-case generation. Genetic algorithm is an algorithm to search for the optimal solution by simulating the natural process of evolution. The algorithm guides the of search direction through the selection, crossover and mutation operations. to reach the global optimal solution step by step. Traditional genetic algorithm is widely used in the test case generation by many scientific researchers due to its better global search ability. But the genetic algorithm can easily lead to convergence to a local optimal solution because of its inherent defects "premature convergence". In order to solve this problem, the author proposed an adaptive genetic algorithm in this paper. The crossover operator and mutation operator of the proposed algoritym can be adjusted automatically according to the change of the program. The improved algorithm is then applied in the test case generation process. The test results show that this algorithm is better than the traditional search algorithm and common improved algorithm in efficiency and effectiveness of testing-case generation.
Keywords:adaptive genetic algorithm  adaptive crossover operator  adaptive mutation operator  testing-case generation
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号