检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.16.56.30