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

多路径测试数据自动生成方法及应用
引用本文:曹洋,胡春华,陈少波,李路明. 多路径测试数据自动生成方法及应用[J]. 计算机工程与应用, 2010, 46(27): 32-35. DOI: 10.3778/j.issn.1002-8331.2010.27.008
作者姓名:曹洋  胡春华  陈少波  李路明
作者单位:清华大学 航天航空学院,人机与环境工程研究所,北京 100084
基金项目:国家科技支撑计划(The National Science and Technology Support Program;No.2009BAI79B03);国家自然科学基金(the National Natural Science Foundation of China under Grant No.60906050/F040604);航天医学基础与应用国家重点实验室开放基金资助项目 
摘    要:以程序结构测试自动生成为研究背景,提出了一种重叠路径结构用以描述程序路径,并以此为基础设计了一种多路径测试数据生成适应值算法,实现了一次搜索完成多条路径的测试数据生成。算法通过目标路径间共享遗传算法产生的中间个体减少单一路径搜索始于随机产生的无序个体的初期迭代,从而加快搜索收敛的速度。应用于常用的基准程序和取自实际项目的程序,该算法与典型的分支谓词距离算法相比平均消耗时间缩短了70.6%。

关 键 词:软件测试  测试数据生成  多路径  遗传算法  
收稿时间:2010-04-28
修稿时间:2010-8-9 

Automatic test data generation for multiple paths and its applications
CAO Yang,HU Chun-hua,CHEN Shao-bo,LI Lu-ming. Automatic test data generation for multiple paths and its applications[J]. Computer Engineering and Applications, 2010, 46(27): 32-35. DOI: 10.3778/j.issn.1002-8331.2010.27.008
Authors:CAO Yang  HU Chun-hua  CHEN Shao-bo  LI Lu-ming
Affiliation:Institute of Man-Machine & Environment Engineering,School of Aerospace,Tsinghua University,Beijing 100084,China
Abstract:The study researches automatic test data generation for structure testing.A structure of overlapped path is proposed to describe paths of a program, and a fitness function for multiple paths test data generation is constructed with it based on genetic algorithm(GA).The function can drive GA to search the test data for all the target paths within one run. The search decreases the initial repetitive iterations with random individuals and speeds up the convergence, because target paths share the data generated by GA.Applied to the benchmark program and some realistic programs, the function reduces the time consumption in search by 70.6% compared with the typical predicate distance algorithm on average.
Keywords:software testing  test data generation  multiple paths  genetic algorithm
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《计算机工程与应用》浏览原始摘要信息
点击此处可从《计算机工程与应用》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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