9.product Metrics
9.product Metrics
Product Metrics
• The working product is developed at the end of each successive phase.
• Metrics are developed for these products so that they can indicate whether
a product is developed according to the user requirements.
The product metrics assess the internal product attributes in order to know the efficiency of
the following.
• Metrics for design model: These allow software engineers to assess the quality of design
and include architectural design metrics, component-level design metrics, and so on.
• Metrics for source code: These assess source code complexity, maintainability, and other
characteristics.
• Metrics for testing: These help to design efficient and effective test cases and also
evaluate the effectiveness of testing.
• Metrics for maintenance: These assess the stability of the software product.
Metrics for the Requirements Model
• The function point (FP) metric can be used effectively as a means for measuring
the functionality delivered by a system.
• Estimate the cost or effort required to design, code, and test the
software.
Information
Number of external inquiries (EQs). Domain Values
Number of internal logical files (ILFs).
• Number of external outputs (Eos). Each external output is derived from data within the application that
provides information to the user. In this context, external output refers to reports, screens, error messages,
etc. Individual data items within a report are not counted separately.
• Number of external inquiries (EQs). An external inquiry is defined as an online input that results in the
generation of some immediate software response in the form of an online output (often retrieved from an ILF).
• Number of Each internal logical file is a logical grouping of data that resides within the application’s boundary
and is maintained via external inputs.
• Number of external interface files (EIFs). Each external interface file is a logical grouping of data that
resides external to the application but provides information that may be of use to the application.
Function-Based Metrics Cont’d
• The Information Domain Values have also been categorized into 2
types.
• Transactional Functional type
Other Applications
User
ILF ILF ILF
Application Boundary
Step1: Calculate the Count total (or) UFP CAF- Complexity Adjustment Factor
Example
Function-Based Metrics Cont’d
Step 2:
• Calculate the Complexity Adjustment Factor
1 - Incidental
2 - Moderate
3 - Average
4 - Significant
5 - Essential
Function-Based Metrics Cont’d
Step 2 Cont’d: The Value adjustment factors
1. Does the system require reliable backup and recovery?
2. Are specialized data communications required to transfer information to or from the application?
3. Are there distributed processing functions?
4. Is performance critical?
5. Will the system run in an existing, heavily utilized operational environment?
6. Does the system require online data entry?
7. Does the online data entry require the input transaction to be built over multiple screens or operations?
8. Are the ILFs updated online?
9. Are the inputs, outputs, files, or inquiries complex?
10. Is the internal processing complex?
11. Is the code designed to be reusable?
12. Are conversion and installation included in the design?
13. Is the system designed for multiple installations in different organizations?
14. Is the application designed to facilitate change and ease of use by the user?
Function-Based Metrics Cont’d
Step 2 Cont’d:
For Example, let us consider All Factors are average, then ∑(Fi ) = 14*3 = 42
CAF = 0.65+(.01*42)
=1.07
FP = 50*1.07
= 53.5
Shortcomings of Function Point Metric
• Subjective Evaluations: It needs subjective evaluation with a lot of judgment involved.
• Conversion need: Many efforts and models are based on LOC, and a function point needs to
be converted.
• Less Researched Data: Less research data is available on function point as compared to LOC.
• Long learning curve: As the learning curve is quite long it's not easy to gain proficiency.
Cost = $ / FP
Quality = Errors / FP
Productivity = FP / person-month
Metrics for Specification Quality
The quality of the requirements model and the corresponding requirements
specification
• Scope to trace
• Scope of completeness
• Scope to interpret
• Scope of consistency
• Scope to understand
• Scope of accuracy
• Scope to test
• Scope to modify
• Scope to verify
• Scope to rank
• Scope to validate
Metrics for Specification Quality
where nui is the number of requirements for which all reviewers had identical
interpretations. The closer the value of Q to 1, the lower is the ambiguity of
the specification.
Completeness of Functional Requirements
• The completeness of functional requirements can be determined
by computing the ratio