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

面向Length_N测试覆盖准则的测试用例生成技术研究
引用本文:李宝林,李志蜀,倪建成.面向Length_N测试覆盖准则的测试用例生成技术研究[J].四川大学学报(工程科学版),2008,40(3):132-137.
作者姓名:李宝林  李志蜀  倪建成
作者单位:1. 四川大学,计算机学院,四川,成都610064
2. 西北政法大学,陕西,西安710063
基金项目:国家科技型中小企业技术创新基金 , 四川省科技厅基金重点项目
摘    要:针对路径覆盖测试的可行性,提出了一种新的路径测试覆盖准则(Length_N准则).首先把测试用例生成归纳为多目标函数的优化问题,其有效方法是根据程序运行结果指导生成过程,通过不断迭代,生成符合要求的测试数据集.为了提高生成效率,对遗传模拟退火算法的编码、适应度函数、交叉概率做了一定的改进;并在此基础上来自动生成测试用例.实验结果表明该方法在效率上较遗传算法、随机测试数据生成方法有很明显的提高,在可行性上比路径覆盖准则也有很大的改善.

关 键 词:面向路径测试覆盖准则  遗传模拟退火算法  程序插装  测试用例  Length_N完整路径表  测试数据集  覆盖准则  用例生成  技术研究  Criterion  Based  Generation  Test  Case  改善  路径  生成方法  随机  遗传算法  成效率  运行结果  实验  生成测试用例  自动  改进  交叉概率
文章编号:1009-3087(2008)03-0132-06
收稿时间:1/4/2007 12:00:00 AM
修稿时间:2007年1月4日

Research for Test Case Generation Based on Length_N Criterion
LI Bao-lin,LI Zhi-shu,NI Jian-cheng,LI Ji-ling.Research for Test Case Generation Based on Length_N Criterion[J].Journal of Sichuan University (Engineering Science Edition),2008,40(3):132-137.
Authors:LI Bao-lin  LI Zhi-shu  NI Jian-cheng  LI Ji-ling
Affiliation:School of Computer Sci.,Sichuan Univ.,Chengdu 610064,China;School of Computer Sci.,Sichuan Univ.,Chengdu 610064,China;School of Computer Sci.,Sichuan Univ.,Chengdu 610064,China
Abstract:For the feasibility of integrity path-tested coverage, a new path tested coverage criterion, named Length_N criterion, was prompted. Firstly the automated approach for generating test data was proposed by solving multi-object function. An efficient approach to automated generation of structural test data is to breed search iteratively by profiling of program execution. Some improvements were made at encoding, fitness function and annealing gene, and utilize the result and instrumentation theory to generate test data. Experimental results showed this approach has better effect than random method and genetic algorithm.
Keywords:path-oriented test coverage criterion  genetic simulated annealing algorithm  program instrumentation  test case  Length_N integrity path table
本文献已被 维普 万方数据 等数据库收录!
点击此处可从《四川大学学报(工程科学版)》浏览原始摘要信息
点击此处可从《四川大学学报(工程科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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