Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2010, Vol. 36 ›› Issue (19): 70-71. doi: 10.3969/j.issn.1000-3428.2010.19.024

• Networks and Communications • Previous Articles     Next Articles

Coverage Test Method Based on Global Domination Graph Algorithm

YU Bing-xia, GU Qing-fan   

  1. (College of Information Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China)
  • Online:2010-10-05 Published:2010-09-27

基于全局支配图算法的覆盖测试方法

于炳霞,谷青范   

  1. (南京航空航天大学信息科学与技术学院,南京 210016)
  • 作者简介:于炳霞(1983-),女,硕士研究生,主研方向:覆盖测试,软件工程;谷青范,副教授

Abstract: Now many redundant test cases occur in coverage test. This paper introduces an improved coverage test tool based on global domination graph algorithm, the algorithm is an improved algorithm through adding the annotated looping tree and finding nearest common node. It can compute the minimum test case set which covers the source code. Experimental result shows that the algorithm can decrease the analysis time of coverage result file, generate small test case, and achieves high coverage rate.

Key words: coverage test, global domination graph algorithm, test case, program flow graph, code instrumentation

摘要: 目前的覆盖测试存在着大量的冗余测试用例,严重影响测试的效率。基于此,介绍一种基于全局支配图算法的覆盖测试工具,通过在局部支配图中加入辅助循环树算法及寻找临近节点,提出一种全局支配图改进算法,利用该算法能够计算出覆盖源程序的最小测试用例集。实验结果表明,该算法能够减少覆盖分析时间,生成较少的测试用例和达到较高的覆盖率。

关键词: 覆盖测试, 全局支配图算法, 测试用例, 程序流图, 代码插装

CLC Number: