节点文献

基于稀有数据扑捉的路径覆盖测试数据进化生成方法

Evolutionary Generation of Test Data for Paths Coverage Based on Scarce Data Capturing

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 张岩巩敦卫

【Author】 ZHANG Yan;GONG Dun-Wei;School of Information and Electrical Engineering,China University of Mining and Technology;School of Technology,Mudanjiang Normal University;

【机构】 中国矿业大学信息与电气工程学院牡丹江师范学院工学院

【摘要】 采用遗传算法自动生成路径覆盖的测试数据是软件测试自动化研究的热点.现有方法设计适应值函数时,对穿越难以覆盖节点的稀有数据保护不够理想,因而影响测试数据生成效率的提高.文中在测试数据进化生成时动态扑捉稀有数据,通过统计每代种群中目标路径各节点被穿越的个体数量,得到个体对生成穿越目标路径测试数据的贡献,以此作为权重调整个体的适应值,使得稀有数据的适应值增加,以便在后续进化中得到保留,从而提高测试数据生成的效率.基准程序和工业用例的测试结果表明,与传统方法及随机法比较,文中方法生成覆盖路径的测试数据效率较高.

【Abstract】 Using genetic algorithms to generate test data for path coverage is a hot topic in software testing automation.The established fitness functions of previous methods cannot provide adequate protection to a scarce datum which covers a node difficult to be covered,so the efficiency of generating test data needs to be improved.In this study,scarce data are dynamically captured during the evolutionary generation of test data.We obtain the contribution of an individual by counting up the number of individuals which traverse each node of the target path,and regard this contribution as a weight to adjust the fitness of the individual.In this way,the fitness of a scarce datum can be increased and the scarce datum can be kept in the subsequent evolution,so the efficiency of generating test data is improved.The proposed method is applied to generate test data for covering paths of two benchmark and six industrial programs,and is compared with traditional and random methods.The experimental results confirm that the proposed method is efficient in generating test data for path coverage.

【基金】 国家自然科学基金(61075061);黑龙江省高校青年学术骨干支持计划项目(1252G063);江苏省自然科学基金(BK2012566,BK2010187);高等学校博士学科点专项科研基金(20100095110006);中国矿业大学校优秀创新团队建设专项基金(2011ZCX002);牡丹江市科学技术计划项目(Z2013s043);牡丹江师范学院重点创新预研项目(SY201216)资助~~
  • 【文献出处】 计算机学报 ,Chinese Journal of Computers , 编辑部邮箱 ,2013年12期
  • 【分类号】TP311.53
  • 【被引频次】27
  • 【下载频次】317
节点文献中: 

本文链接的文献网络图示:

本文的引文网络