基路径覆盖测试用例自动生成方法研究  被引量:5

Test data generation automatically based on linear independent path covering

在线阅读下载全文

作  者:宋想[1] 宋晓秋[1] 

机构地区:[1]中国航天科工集团第二研究院706所,北京100854

出  处:《计算机工程与设计》2013年第8期2759-2763,共5页Computer Engineering and Design

摘  要:传统基路径覆盖测试用例生成方法通过程序图求出圈复杂度,然后再得出程序的一组基路径,最后分别针对基路径组中的每条路径求出相应的测试用例,不仅繁琐,而且忽视了代码的语义相关性,导致存在路径不可达问题,也就无法生成对应的测试用例。提出了一种新的方法,利用遗传算法动态运行程序,逐渐逼近被测程序的真实逻辑圈复杂度,直接生成满足基路径覆盖测试用例的最小集合,不存在路径不可达问题。实验结果表明,该算法能够有效地生成满足基路径覆盖的测试用例。In the traditional algorithm of generating testing data for basic path coverage,the ring complex and a group of basis paths are gotten by program chat and then generating testing data of each path,which is not only inefficient but also being with infeasible paths because of ignoring the semantic dependency of codes.A new method is presented,which can dynamically executive the program by using genetic algorithm,gradually approach the real Ring Complex and get basic paths testing data directly without infeasible paths.Results of experiments show that the proposed methods can effectively generate testing data for basic path coverage.

关 键 词:面向路径测试 路径覆盖 基路径覆盖 圈复杂度 测试用例自动生成 

分 类 号:TP311.56[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象