How many paths are needed for branch testing?

被引:19
作者
Bertolino, A [1 ]
Marre, M [1 ]
机构
[1] UNIV BUENOS AIRES, FAC CIENCIAS EXACTAS & NAT, BUENOS AIRES, DF, ARGENTINA
关键词
D O I
10.1016/0164-1212(95)00089-5
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A bound on the number of test cases needed to achieve branch coverage is important to evaluate the effort needed to test a given program. However, the bounds proposed so far in the literature are not effective to measure testing effort. In this article, we introduce a new, meaningful lower bound on the number of test cases needed to achieve branch coverage. We first identify the set of unconstrained arcs in a ddgraph. This is the minimum set of arcs such that a set of paths that exercises these arcs covers all the arcs in the program ddgraph. In general, a path may cover more than one unconstrained are: the strategy we use to combine more unconstrained arcs into one path determines the cardinality of the set of test paths, i.e., the bound we are looking for. It is now commonly accepted that the real problem in branch testing is to derive an executable set of test paths. Therefore, we will consider those control flow paths containing a low number of decisions to be meaningful because they are more likely to be feasible. We formalize this notion by introducing the weak incomparability relation between ddgraph arcs. We then define the new, meaningful bound as the maximum number of unconstrained arcs in a ddgraph that are mutually weakly incomparable. Furthermore, we show that the bound fits into the testability model of Bache and Mullerburg (1990). (C) 1996 by Elsevier Science Inc.
引用
收藏
页码:95 / 106
页数:12
相关论文
共 20 条
[1]   MEASURES OF TESTABILITY AS A BASIS FOR QUALITY ASSURANCE [J].
BACHE, R ;
MULLERBURG, M .
SOFTWARE ENGINEERING JOURNAL, 1990, 5 (02) :86-92
[2]  
Beizer B., 2003, Software Testing Techniques
[3]   UNCONSTRAINED EDGES AND THEIR APPLICATION TO BRANCH ANALYSIS AND TESTING OF PROGRAMS [J].
BERTOLINO, A .
JOURNAL OF SYSTEMS AND SOFTWARE, 1993, 20 (02) :125-133
[4]  
BERTOLINO A, 1996, P IFIP 3 INT C ACH Q, P369
[5]  
DEUTSCH MS, 1988, SOFTWARE WUALITY ENG
[6]   A DECOMPOSITION THEOREM FOR PARTIALLY ORDERED SETS [J].
DILWORTH, RP .
ANNALS OF MATHEMATICS, 1950, 51 (01) :161-166
[7]  
FENTON NE, 1986, COMPUT J, V29, P329
[8]  
Fenton Norman E., 1991, SOFTWARE METRICS RIG
[9]  
Ford L. R, 1962, FLOWS NETWORKS
[10]  
HECHT MS, 1977, FLOW ANAL COMPUTER P