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

基于搜索空间自动缩减的路径覆盖测试数据进化生成
引用本文:张岩,巩敦卫.基于搜索空间自动缩减的路径覆盖测试数据进化生成[J].电子学报,2012,40(5):1011-1016.
作者姓名:张岩  巩敦卫
作者单位:1. 中国矿业大学信息与电气工程学院,江苏徐州221116;牡丹江师范学院计算机科学与技术系,黑龙江牡丹江157012
2. 中国矿业大学信息与电气工程学院,江苏徐州,221116
基金项目:国家自然科学基金,黑龙江省高校青年学术骨干支持计划项目,江苏省自然科学基金,高等学校博士学科点专项科研基金(博士生导师类),中国矿业大学校优秀创新团队建设专项基金,中国矿业大学培育学科创新能力提升基金
摘    要: 提出一种基于搜索空间自动缩减的路径覆盖测试数据进化生成方法,首先,确定目标路径与输入变量之间的关系,将可分目标路径分离出与部分分量相关的子路径;然后,固定被穿越子路径对应的输入分量,并缩小交叉和变异操作的范围,使种群在不断缩小的空间里寻找测试数据,以提高测试数据生成的效率;最后,将提出的方法用于基准程序的路径覆盖测试数据生成,并与传统方法和随机法比较.结果表明,本文方法在生成测试数据需要的进化代数、运行时间和成功率等指标上均具有优越性.

关 键 词:软件测试  路径覆盖  测试数据  遗传算法  空间缩减
收稿时间:2011-06-09

Evolutionary Generation of Test Data for Path Coverage Based on Automatic Reduction of Search Space
ZHANG Yan , GONG Dun-wei.Evolutionary Generation of Test Data for Path Coverage Based on Automatic Reduction of Search Space[J].Acta Electronica Sinica,2012,40(5):1011-1016.
Authors:ZHANG Yan  GONG Dun-wei
Institution:1(1.School of Information and Electrical Engineering,China University of Mining and Technology,Xuzhou,Jiangsu 221116,China;2.Department of Computer Science and Technology,Mudanjiang Normal University,Mudanjiang,Heilongjiang 157012,China)
Abstract:A method of evolutionarily generating test data for path coverage based on automatic reduction of search space is presented in this study.First,the relation between the target path and the input variable is determined,and the divisible target path is divided into some sub-paths related to several elements of the input variable.Then,the elements corresponding to the traversed sub-path are fixed,and the range of crossover and mutation operations is reduced,therefore the original population searches for test data in a reduced space so that the efficiency of generating test data is improved.Finally,the proposed method is applied to generate test data for covering paths of a benchmark program,and compared with the traditional and random ones.The experimental results confirm that the proposed method is advantageous in the number of generations,time consumption and success rate.
Keywords:software testing  path coverage  test data  genetic algorithms  space reduction
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《电子学报》浏览原始摘要信息
点击此处可从《电子学报》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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