Topics in Metrics for Software Testing
[Reading assignment: Chapter 20, pp. 314-326]
Topics in Metrics for Software Testing [Reading assignment: Chapter - - PowerPoint PPT Presentation
Topics in Metrics for Software Testing [Reading assignment: Chapter 20, pp. 314-326] Quantification One of the characteristics of a maturing discipline is the replacement of art by science. Early physics was dominated by
[Reading assignment: Chapter 20, pp. 314-326]
2 1 2 2 2 1 2 1
2 2 2 1
2 2 2 1
bugs 0.075 3000 7) + (9 log 31) + (25 = B bugs 0.049 3000 7) + (9 log 21) + (16 = B
number total the = N
number total the = N
distinct
number the = n
distinct
number the = n 3000 ) n + (n log ) N + (N = B
2 2 2 1 2 1 2 1 2 2 1
Bubble Sor le: tion Examp Exponentia
L=1, N=2, P=1 M=1-2+2=1 L=4, N=4, P=1 M=4-4+2=2 L=4, N=5, P=1 M=4-5+2=1 L=2, N=4, P=2 M=2-4+4=2
A&B&C A&B&C A B&C A A _ B&C B&C ___ A&B&C _____ A A A _ C B _ B C C _
2 2
M = 2
A else B
1 l
m
K 2 3 ...
…
M = (2(k-1)+1)-(k+2)+2=K-1 1
4
2 3
M = 2
A
B
2 1
B
C …
M = 1
Nm+kNc Lm+kLc Nm Lm+k Nc+2 Lc Lm+kLc-Nm-kNc+2 Lm+kLc-Nm-kNc+2 Lm+k-Nm+2 Lc-Nc-2+2=Lc-Nc=Mc Lm+Lc-Nm-Nc+k+2 Main Nodes Main Links Subnodes Sublinks Main M Subroutine M Total M Embedded Common Part Subroutine for Common Part
1
k M k 1)
M k M
M k
M 1)
N
1)
k N
) N
2 k N
L 2 kN
L
c c c c c c c c c c c c c c c c c m c m c m c m
= = = = = = + = + + + = + +
c c c c c c
1 1 Mc k