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

分支测试中测试路径用例的简化生成方法
引用本文:毛澄映,卢炎生.分支测试中测试路径用例的简化生成方法[J].计算机研究与发展,2006,43(2):321-328.
作者姓名:毛澄映  卢炎生
作者单位:华中科技大学计算机科学与技术学院,武汉,430074
摘    要:结构性测试是对过程式和面向对象程序都非常有效的测试方法,分支覆盖准则被实践证明是其中性价比最高的一种策略.通过深入研究DD图的性质并分析FTPS算法的不足,提出了一种简便、快捷和适合于大规模程序的非约束边集近似求解算法Find_SemiUE;还给出了基于正(逆)向广度(深度)生成树的分支测试路径用例集的简化生成算法Generate_PathSet,该算法在时间和空间开销上较FTPS算法均有较大提高.此外,所证明的关于DD图的结论也值得借鉴用于该图的更深一步研究.

关 键 词:结构性测试  DD图  支配(蕴含)关系  非约束边  测试路径用例
收稿时间:06 29 2004 12:00AM
修稿时间:2004-06-292005-01-06

A Simplified Method for Generating Test Path Cases in Branch Testing
Mao Chengying,Lu Yansheng.A Simplified Method for Generating Test Path Cases in Branch Testing[J].Journal of Computer Research and Development,2006,43(2):321-328.
Authors:Mao Chengying  Lu Yansheng
Affiliation:College of Computer Science and Technology, Huazhong University of Science and Technology, Wuhan 430074
Abstract:Structural testing is an effective way to test either procedural programs or object-oriented programs, and the branch coverage criterion has been proved to be the best cost-effective one of its all criteria. Through deeply investigating the properties of DD-graph and analyzing the shortcomings of the algorithm FTPS, an approximate algorithm (called Find_SemiUE) for solving the set of unconstrained arcs is presented, which is simple, quick and very suitable for the large-scale programs. Based on the forward (backward) breadth (depth) spanning trees, a simplified algorithm (called Generate_PathSet) for generating path cases which are executed in branch testing, is also proposed. This algorithm gains a dramatic improvement not only in time complexity but also in space complexity. Furthermore, the obtained conclusions are helpful for further research about DD-graph.
Keywords:structural testing  decision-to-decision graph(DD-graph)  dominant (implied) relation  unconstrained arc  test path case
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号