期刊文献+

回归测试数据进化生成 被引量:13

Evolutionary Generation of Regression Test Data
下载PDF
导出
摘要 采用遗传算法生成回归测试数据近年来得到普遍关注,该方法高效生成测试数据的前提是合理利用已有的测试数据形成初始进化种群,并设计有针对性的遗传操作.但是,到目前为止,相关的研究成果尚不多见.文中研究采用遗传算法生成回归测试数据以覆盖目标路径时,已有测试数据的利用问题,提出一种新的回归测试数据进化生成方法.该方法根据已有测试数据穿越的路径与目标路径的相似度,选择合适的测试数据,作为初始进化种群的部分个体.进一步,根据已有测试数据穿越的路径与目标路径不相同子路径的节点对应的输入分量,确定对进化个体实施遗传操作的位置.理论分析表明,所提方法可以有效提高测试数据生成效率.将所提方法应用于典型基准和工业程序的测试,并与已有方法比较,实验结果证实了所提方法的优越性. Generating regression test data using genetic algorithms has obtained widespread attention in recent years. The premises of this method on effectively generating test data are appropriately utilizing existing test data to form the initial population, and designing some targe- ting genetic operations. However, the related work has been inadequate up to date. In this paper, we investigated the problem of utilizing existing test date when generating regression test data using genetic algorithms to cover a target path, and presented a novel method of generating regression test data. In this method, appropriate test data are selected as a part of individuals of the initial population according to the similarity between the path traversed by an existing test datum and the target one. Further, the position of performing genetic operations on individuals is determined based on the input variables corresponding to the nodes that belong to the sub-path where the path traversed by existing test data is different from the target one. The theoretical analysis shows that the proposed method can effectively improve the efficiency in generating test data. We applied the proposed method to some typical benchmark and industrial programs, and compared it with previous ones. The experimental results confirm the advantage of the proposed algorithm.
出处 《计算机学报》 EI CSCD 北大核心 2014年第3期489-499,共11页 Chinese Journal of Computers
基金 国家自然科学基金(61375067 61075061) 江苏省自然科学基金(BK2012566) 高等学校博士学科点专项科研基金(博士生导师类)(20100095110006)资助~~
关键词 回归测试 路径覆盖 测试数据生成 遗传算法 软件测试中图法 testing regression test~ path coverage~ test data generation~ genetic algorithms~ software
  • 相关文献

参考文献4

二级参考文献21

  • 1邱晓康,李宣东.一个面向路径的软件测试辅助工具[J].电子学报,2004,32(F12):231-234. 被引量:12
  • 2Glenford J.Myers.计算机软件测试技巧[M].北京:清华大学出版社,1985..
  • 3RobertV.Binder.面向对象系统的测试[M].北京:人民邮电出版社,2001..
  • 4Rex Black.测试流程管理[M].北京:北京大学出版社,2001..
  • 5Ahmed M A, Hermadi I. GA-based multiple paths test data generator[ J ]. Computers and Operations Research, 2008, 35 (10) :3107 - 3124.
  • 6Bueno P M S, Jino M. Automatic test data generation for pro- gram paths using genetic algorithms[ J]. International Journal of Software Engineering and Knowledge Engineering, 2002, 12 (6) :691 - 709.
  • 7Lin J, Yeh P. Automatic test data generation for path testing us- ing GAs[ J] .Information Sciences, 2001,131 (1-4) :47 - 64.
  • 8Korel B. Automated software test data generation [ J ]. IEEE Transaction on Software Engineering, 1990,16(8) : 870 - 879.
  • 9Offutt J, Jin Z, Pan J. The dynamic domain reduction procedure for test data generation[ J] .Software Practice and Experience, 1999,29(2) :167 - 193.
  • 10Harman M, McMinn P, Wegener J. The impact of input domain reduction on search-based test data generation[ A]. Proceedings of the ACM SIGSOFT Symposium on the Foundations of Soft- ware Engineering [ C ]. New York: ACM Press, 2007. 155 - 164.

共引文献85

同被引文献118

引证文献13

二级引证文献54

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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