首页 | 官方网站   微博 | 高级检索  
     

基于关键点路径的快速测试用例自动生成方法
引用本文:丁蕊,董红斌,张岩,冯宪彬.基于关键点路径的快速测试用例自动生成方法[J].软件学报,2016,27(4):814-827.
作者姓名:丁蕊  董红斌  张岩  冯宪彬
作者单位:哈尔滨工程大学 计算机科学与技术学院, 黑龙江 哈尔滨 150001;牡丹江师范学院 工学院, 黑龙江 牡丹江 157012,哈尔滨工程大学 计算机科学与技术学院, 黑龙江 哈尔滨 150001,牡丹江师范学院 工学院, 黑龙江 牡丹江 157012,牡丹江师范学院 工学院, 黑龙江 牡丹江 157012
基金项目:国家自然科学基金(61472095, 61573362); 黑龙江省教育厅重智能教育与信息工程重点实验室开放基金; 牡丹江师范学院科研基金(MNUB201414, QY2014003, FD2014001, SY2014001)
摘    要:测试数据的自动生成,是提高软件测试效率的重要手段.从软件测试工程实践的角度提出快速生成测试数据的完整模型,更有利于提高测试数据生成效率.为此:(1)提出关键点路径表示法,以得出待测程序的理论路径数,并快速确定已覆盖路径的邻近路径;(2)用随机生成的数据运行简化后的插装程序,得到部分测试数据;(3)将理论路径分成易覆盖路径、难覆盖路径和不可行路径;(4)根据已覆盖路径及其测试数据提供的信息,使用遗传算法生成难覆盖路径的测试数据.仿真实验结果表明了所提方法的有效性.

关 键 词:关键点路径  软件测试数据生成模型  覆盖测试  启发式信息  遗传算法
收稿时间:9/1/2015 12:00:00 AM
修稿时间:2015/10/15 0:00:00

Fast Automatic Generation Method for Software Testing Data Based on Key-Point Path
DING Rui,DONG Hong-Bing,ZHANG Yan and FENG Xian-Bin.Fast Automatic Generation Method for Software Testing Data Based on Key-Point Path[J].Journal of Software,2016,27(4):814-827.
Authors:DING Rui  DONG Hong-Bing  ZHANG Yan and FENG Xian-Bin
Affiliation:College of Computer Science and Technology, Harbin Engineering University, Harbin 150001, China;School of Computer and Information Technology, Mudanjiang Normal University, Mudanjiang 157012, China,College of Computer Science and Technology, Harbin Engineering University, Harbin 150001, China,School of Computer and Information Technology, Mudanjiang Normal University, Mudanjiang 157012, China and School of Computer and Information Technology, Mudanjiang Normal University, Mudanjiang 157012, China
Abstract:Automatic generation of testing data is an important means for improving the efficiency of software testing. Focus in the engineering practice of software testing, a fast automatic method is proposed to improve the efficiency of testing data generation. For this purpose: (1)A key-point path expression method is proposed to calculate the number of theoretical paths, and find the covered paths' neighbors; (2) Brief instrumented program is run to get some testing data by using the testing data generated from random algorithm; (3) The theoretical paths are divided into three parts: easy-cover paths, hard-cover paths and infeasible paths; (4) According to the information of covered paths and their testing data, the data of hard-cover paths will be generate by genetic algorithm. Simulation experiments show that the proposed method is efficient.
Keywords:key-point path  software testing data generation method  coverage testing  heuristic information  genetic algorithm
本文献已被 CNKI 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号