You are on page 1of 87

Defect Origin (j)

Phase Requirement Analysis Design Coding


Requirement 40
Analysis 10 20
Design 40 40 40
Coding 60 10 40 80
Unit testing 60 30 30 60
Integration testing 30 10 30 30
Field 5 0 6 7
Defects/phase 245 110 146 177

Product Size = 50K LOC

1 Calculate the defect removal rate for every phase

Phase Defect removal rate (per KLOC)


Requirement 0.80
Analysis 0.60
Design 2.40
Coding 3.80
Unit testing 4.00
Integration testing 2.20
Field 0.48

2 Calculate the defect injection rate for every phase

Phase Defect injection rate (per KLOC)


Requirement 4.90
Analysis 2.20
Design 2.92
Coding 3.54
Unit testing 0.40
Integration testing 0.20
Field 0.12

3 Calculate the defect escape rate for every phase

Phase Defect escape rate (per KLOC)


Requirement 4.10
Analysis 5.70
Design 6.22
Coding 5.96
Unit testing 2.36
Integration testing 0.36

4 Which phase is the most effective in removing defects?

Phase Defect Removal Effectiveness %


Requirement 16.33
Analysis 9.52
Design 27.84
Coding 38.93
Unit testing 59.88
Integration testing 82.09

Its clear from the above table that defect removal is


most effective the Integration testing phase.

5 Calculate the overall defect removal effectiveness.

96.64
6 Do you think reviews and inspections were effective? Explain.

Yes, the final product that was shipped to the customer lies in the 95%-100
able to meet the 95% bench mark. Hence we can infer that the review
ct Origin (j)
Unit Defects Fixed in
testing Integration testing Field phase
40
30
120
190
20 200
0 10 110
0 0 6 24
20 10 6 714

Formula used

Defects Fixed in phase


50K

Formula used

Defects/phase
50K
Formula used Total Defects escaped = Ti,i

Total Defects escaped Ti,i = ΣNi,j (i = i+1 to K & j = 1 toi)


50K

Formula 1 used for front end phases

Defects removed at each step * 100%


defects on step entry + defects injected in the step

Formula 2 used for back end phases

Defects removed at current phase * 100%


defects removed on current step + subsequest step

Formula used

( 1 - Defects removed at current phase * 100% )*


100
defects removed on current step + subsequest step
mer lies in the 95%-100% comfort zone. Hence the product was
n infer that the reviews and inspections where effective.

You might also like