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

启发式学习自动化程序指令的可达性测试
引用本文:金虎,李志蜀,陈良银. 启发式学习自动化程序指令的可达性测试[J]. 四川大学学报(工程科学版), 2007, 39(4): 146-150
作者姓名:金虎  李志蜀  陈良银
作者单位:1. 四川大学,计算机学院,四川,成都,610064;成都信息工程学院,计算机系,四川,成都,610041
2. 四川大学,计算机学院,四川,成都,610064
基金项目:四川省科技攻关项目;国家科技型中小企业技术创新基金
摘    要:为了测试程序指令的可达性,需要搜索可触发包含该指令的控制流路径执行的测试用例。该问题可等价为路径约束满足问题的自动求解,求解结果即为验证指令可达的测试用例。为了提高自动求解的性能,在前向检测算法基础上改进设计了R_BinSearchFC算法,算法结合了边界测试数据选取和二叉树搜索技术,可有效提高对数据空间的搜索速度,并可扩展到在实数域空间的求解搜索。实验结果表明,采用了启发式学习的R_BinSearch算法可自动生成有效的测试用例,完成对指令的可达性测试。

关 键 词:自动化软件测试  约束满足问题  前向检测  启发式学习
文章编号:1009-3087(2007)04-0146-05
收稿时间:2006-08-22
修稿时间:2006-08-22

Automatic Statement Reachability Testing Using Heuristics Algorithm
JIN Hu,LI Zhi-shu,CHEN Liang-yin,LI Yong-jun,LI Bin,SUN Ji-rong. Automatic Statement Reachability Testing Using Heuristics Algorithm[J]. Journal of Sichuan University (Engineering Science Edition), 2007, 39(4): 146-150
Authors:JIN Hu  LI Zhi-shu  CHEN Liang-yin  LI Yong-jun  LI Bin  SUN Ji-rong
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:To test the reachability of the program statements, it is necessary to find out test cases that can result in corresponding control flow path execution. It is equivalent to the resolving of Path Constraint-Satisfaction-Problems, and the resolution is the test cases that can meet the reachability-testing requirement. Based on Forward Checking Algorithm, R_BinSearchFC algorithm was proposed for better searching performance. Boundary test data selecting technique and binary tree searching method were employed in the algorithm for real type data set computation and the resolution time could be efficiently reduced. Experiment results showed good effect for automatic testing statement reachability.
Keywords:automatic software testing  constraint satisfaction problems  forward checking  heuristic study
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《四川大学学报(工程科学版)》浏览原始摘要信息
点击此处可从《四川大学学报(工程科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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