期刊文献+

一种基于改进遗传算法的路径测试用例生成方法 被引量:13

Approach for Path-oriented Test Cases Generation Based on Improved Genetic Algorithm
下载PDF
导出
摘要 采用遗传算法求解路径覆盖的测试用例生成问题是软件测试自动化的研究热点。针对传统标准遗传方法搜索测试用例易产生早熟收敛和收敛速度较慢的不足,设计了自适应的交叉算子和变异算子,提高了算法的全局寻优能力。基于动态生成算法框架,通过程序静态分析,考虑了分支嵌套深度的影响,结合层接近度和分支距离法,提出一种新的适应度函数。实验结果表明,该算法在面向路径的测试用例生成上优于传统方法,提高了测试效率。 Using genetic algorithms to solve the problem of generating test cases for path coverage is a hot topic in software testing automation.In view of the problems in traditional standard genetic methods,such as premature convergence and slow search efficiency,this paper designed adaptive crossover operator and mutation operator,thus enhancing the global optimal capability of genetic algorithm.Meanwhile,a new fitness function was introduced to evaluate individuals based on dynamic generation algorithm framework,which combines approach level and branch distance and takes the nesting degree of branches into consideration to compute the fitness values of test data.The experimental results confirm that the proposed improved method is more efficient in generating test cases for path coverage compared with the traditional method.
作者 包晓安 熊子健 张唯 吴彪 张娜 BAO Xiao-an;XIONG Zi-jian;ZHANG Wei;WU Biao;ZHANG Na(School of Information Science and Technology,Zhejiang Sci-tech University,Hangzhou 310018,China;The Graduate School of East Asian Studies,Yamaguchi University,Yamaguchi 753-8513,Japan)
出处 《计算机科学》 CSCD 北大核心 2018年第8期174-178,190,共6页 Computer Science
基金 国家自然科学基金(61502430 61379036 61562015) 浙江理工大学521人才培养计划资助
关键词 软件测试 测试用例生成 遗传算法 适应度函数 Software testing Test cases generation Genetic algorithm Fitness function
  • 相关文献

参考文献4

二级参考文献44

  • 1邱晓康,李宣东.一个面向路径的软件测试辅助工具[J].电子学报,2004,32(F12):231-234. 被引量:11
  • 2夏辉,宋昕,王理.基于Z路径覆盖的测试用例自动生成技术研究[J].现代电子技术,2006,29(6):92-94. 被引量:11
  • 3陈继锋,朱利,沈钧毅,王志海.一种基于分支覆盖的测试数据自动生成算法[J].计算机科学,2006,33(12):261-264. 被引量:2
  • 4金虎,李志蜀,张磊,李宝林,李勇军.基于面向路径的遗传算法的测试用例自动生成[J].计算机工程,2007,33(3):21-23. 被引量:9
  • 5Chen Y,Zhong Y.Automatic path-oriented test data generation using a multi-population genetic algorithm[A].Proceedings of the 4th International Conference on Natural Computation[C].Jinan,China:IPICNC,2008.566-570.
  • 6Sofokleous A A,Andreou A S.Automatic,evolutionary test data generation for dynamic software testing[J].The Journal of Systems and Software,2008,81(11):1883-1898.
  • 7Pajappa V,Biradar A,Panda S.Efficient software test case generation using genetic algorithm based graph theory[A].Proceedings of the 1st International Conference on Emerging Trends in Engineering and Technology[C].Nagpur,India:IPICETET.2008.298-303.
  • 8Bouchachia A.An immune genetic algorithm for software test data generation[A].Proceedings of the 7th International Conference on Hybrid Intelligent Systems[C].Washington,DC,USA:IP IC HIS,2007.84-89.
  • 9Ahmed M A,Hermadi I.GA-based multiple paths test data generator[J].Computer & Operations Research,2008,35(10):3107-3124.
  • 10David W Binkley.FlagRemover:A testability transfor-mation for transforming loop assigned flags[J].ACM Transactions on Software Engineering and Method-ology,2009,2(3):110-146.

共引文献65

同被引文献84

引证文献13

二级引证文献26

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部