+ All Categories
Home > Documents > Estimation of Defects and Effort [email protected] Requirements Engineering & Project...

Estimation of Defects and Effort [email protected] Requirements Engineering & Project...

Date post: 17-Dec-2015
Category:
Upload: loraine-wright
View: 216 times
Download: 1 times
Share this document with a friend
Popular Tags:
32
Estimation of Defects and Effort [email protected] www.cs.put.poznan.pl/jnawrocki/require/ Requirements Engineering & Project Management Lecture 6
Transcript
Page 1: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

Estimation of Defects and EffortEstimation of Defects and Effort

[email protected]/jnawrocki/require/

Requirements Engineering & Project ManagementLecture 6

Page 2: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Artefact

FTRs, Inspections and Walkthroughs

Page 3: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Agenda

•Defect Injection•Capture-Recapture•Use-Case Points

• Introduction• XPrince Team• Project Lifecycle• The Analyst Role• The Architect Role• The Project

Manager Role• Scaling up• Conclusions

Page 4: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Estimation of non-detected defects

Defect Injection Catch-recatch

Page 5: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Defect Injection

1 The artifact is injected with n defects.

...

kroku

Page 6: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Defect Injection

1 The artifact is injected with n defects.

2 The modified artifact is subject to quality assurance.

...

kroku

Page 7: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Defect Injection

1 The artifact is injected with n defects.

2 The modified artifact is subject to quality assurance.

3 The QA report says that k out of n injected defects and m ‘new’ defects have been detected.

Defekty:

1 óstawa

2 krokó

Page 8: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Defect Injection

1 The artifact is injected with n defects.

2 The modified artifact is subject to quality assurance.

3 The QA report says that k out of n injected defects and m ‘new’ defects have been detected.

D = Detection rateDinjected = k / n

Dall = m / Total

Dinjected Dall

Defekty:

1 óstawa

2 krokó

Page 9: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Defect Injection

1 The artifact is injected with n defects.

2 The modified artifact is subject to quality assurance.

3 The QA report says that k out of n injected defects and m ‘new’ defects have been detected.

Total m n / k

Defekty:

1 óstawa

2 krokó

D = Detection rateDinjected = k / n

Dall = m / Total

Dinjected Dall

Page 10: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Agenda

•Defect Injection•Capture & Recapture•Use-Case Points

• Introduction• XPrince Team• Project Lifecycle• The Analyst Role• The Architect Role• The Project

Manager Role• Scaling up• Conclusions

Page 11: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

How many fish are there?

Page 12: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample

Page 13: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them

Page 14: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them3 Release them

Page 15: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them3 Release them4 Catch another group

Page 16: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them3 Release them4 Catch another group5 How many tagged?

Page 17: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them3 Release them4 Catch another group5 How many tagged?

Page 18: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

1 Catch a sample2 Tag them3 Release them4 Catch another group5 How many tagged?

Total =20 * 30 / 5 =

120

Page 19: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

A BC

Total defects = A * B / CIf C = 0 ...

Artefact

Page 20: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Capture-Recapture

More than 2 reviewers

A B

Most uniqueunique defects found

All others

Total defects = A * B / C

Page 21: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Agenda

•Defect Injection•Capture-Recapture•Use-Case Points

• Introduction• XPrince Team• Project Lifecycle• The Analyst Role• The Architect Role• The Project

Manager Role• Scaling up• Conclusions

Page 22: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

COCOMO II – Post-architectural model

Size in KSLOC

An average project:

PMNS = 2.94 SizeE

where 0.91 E 1.226

Very low

Low Nominal

High Very high

Extra high

6.20 4.96 3.72 2.48 1.24 0.00

5.07 4.05 3.04 2.03 1.01 0.00

7.07 5.65 4.24 2.83 1.41 0.005.48 4.38 3.29 2.19 1.10 0.007.80 6.24 4.68 3.12 1.56 0.00

Precedentedness

Dev. FlexibilityRisk ResolutionTeam Cohesion

Process Maturity

Scale Factors

Page 23: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Scale Factors and Development Effort

E= 1.226

E= 1E= 0.91

Pers

on-M

onth

Lines of Code [KSLOC]

Page 24: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Function Points

Simple Aver. Complex Total

Input x 3 x 4 x 6

Output x 4 x 5 x 7

Query x 3 x 4 x 6

Internal files x 7 x 10 x 15

External files x 5 x 7 x 10

Unadjusted total

2 2 2 26

3 3 3 48

2 1 0 10

2 1 0 24

0 1 0 7

115

Page 25: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Function Points

FP = UT * CM

FP – Function pointsUT – Unadjusted totalCM – Complexity multiplier: 0.65 .. 1.35

CM = 0.65 + 0.01 * Influence_factors14 Influence factors, 0 - 5 points for each

Page 26: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Actors

1 point: Simple - Defined API

2 points : Average - TCP/IP or text

3 points : Complex - GUI

Page 27: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Use Cases

5 points : Simple – up to 3 transactions

10 points : Average – 4-7 transactions

15 points : Complex – more than 7 transactions

Paper pre-submission

Main scenario1. System displays a form.2. Author fills-in the form.3. System checks the data.

Extensions3a. Wrong data format. 3a1. System displays an

appropriate message. Return to Step 2.

Page 28: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Use-Case Points

where: TCF = 0.6 + (0.01 * TFactor)

EF = 1.4 + ( –0.03 * EFactor)

UCP = UUCP * TCF * EF

Effort = UCP * <20, 30> [h]

Unadjusted Use-Case Points

Page 29: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Technical Factors

T1 Distributed System 2T2 Response adjectives 2T3 End-user efficiency 1T4 Complex processing 1T5 Reusable code 1T6 Easy to install 0.5T7 Easy to use 0.5T8 Portable 2T9 Easy to change 1T10 Concurrent 1T11 Security features 1T12 Access for third parties 1T13 Special training required 1

Page 30: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Environment Factors

F1 Familiar with RUP 1.5F2 Application experience 0.5F3 Object-oriented experience 1F4 Lead analyst capability 0.5F5 Motivation 1F6 Stable requirements 2F7 Part-time workers -1F8 Dicult programming language -2

Page 31: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Summary

Defect estimation: Defect injection Capture-RecaptureEffort estimation: Use case points

Page 32: Estimation of Defects and Effort Jerzy.Nawrocki@put.poznan.pl  Requirements Engineering & Project Management Lecture.

J.Nawrocki, Estimation of Defects & Effort

Questions?


Recommended