Metrics For Process and Projects Chapter 15 & 22: Roger S. 6 Edition)
Metrics For Process and Projects Chapter 15 & 22: Roger S. 6 Edition)
Chapter 15 & 22
Roger S. Pressman(6th Edition)
1
Measurement
Provides a mechanism for objective
evaluation
Assists in
Estimation
Quality control
Productivity assessment
Project Control
Tactical decision-making
Acts as management tool
2
Measures, Metrics and
Indicators
A measure provides a quantitative indication of the
extent, amount, dimension, capacity, or size of some
attribute of a product or process.
E.g., Number of errors
The IEEE glossary defines a metric as “a quantitative
measure of the degree to which a system, component,
or process possesses a given attribute.”
E.g., Number of errors found per person hours expended
An indicator is a metric or combination of metrics
that provide insight into the software process, a
software project, or the product itself.
3
Motivation for Metrics
Estimate the cost & schedule of future projects
4
Metrics in the Process and Project Domains :
Customer Business
characteristics conditions
Process
Defect
A flaw that is uncovered after delivery to the
end-user
7
Project Metrics
Used during estimation
Used to monitor and control progress
The intent is twofold
Minimize the development schedule
Assess product quality on an ongoing
basis
Leads to a reduction in overall project
cost
8
Typical Project Metrics
1. Effort/time per software engineering
task
2. Errors uncovered per review hour
3. Scheduled vs. actual milestone dates
4. Changes (number) and their
characteristics
5. Distribution of effort on software
engineering tasks
9
Software Measurement
S/W measurement can be categorized in
two ways:
1. Direct measures of the s/w process (e.g., cost
and effort applied) and product (e.g., lines of
code (LOC) produced, etc.)
2. Indirect measures of the product (e.g.,
functionality, quality, complexity, etc.)
Requires normalization of both size- and
function-oriented metrics
10
1.Size-Oriented Metrics
11
Size-Oriented Metrics
Project LOC Effort $(000) Pp. doc. Errors Defects People
. . . . . . . .
. . . . . . . .
12
Size-Oriented Metrics
Controversy regarding use of LOC as a key measure
According to the proponents
LOC is an “artifact” of all s/w development projects
Many existing s/w estimation models use LOC or
KLOC as a key input
14
Function-Oriented Metrics
15
Information Domain
Number of external inputs – from user or another
application
Number of external outputs
Number of external inquiries – request from user that
generates an on-line output
Number of internal logical files (maintained by system)
Number of external interface files (provides data but not
maintained by system)
16
Computing Function Points
Analyze information
domain of the Establish count for input domain and
application system interfaces
and develop counts
18
Taking Complexity into
Account
Factors(Fi) are rated on a scale of 0 (not important)
to 5 (essential)
19
An Example of FP-Based
Estimation (3)
4 40
number of files X 7 10 15 =
28
number of ext.interfaces 4 X 5 7 10 =
count-total 308
21
Uses of Function Points(FP)
But how long will the project take and how
much will it cost?
If programmers in an organization produce average 12
function points per month. Thus . . .
415.8 FP divided by 12 = 34 months
0 1 2 3 4 5