SlideShare une entreprise Scribd logo
1  sur  46
1
Chapter 21
Software quality metrics
“You can’t control what you can’t measure”
Tom DeMarco
Software Quality metrics as tool for QA tools
2
 Measurement
◦ is the act of obtaining a measure
 Measure
◦ provides a quantitative indication of the size of some product or
process attribute, E.g., Number of errors
 Metric
◦ is a quantitative measure of the degree to which a system,
component, or process possesses a given attribute (IEEE
Software Engineering Standards 1993) : Software Quality - E.g.,
Number of errors found per person hours expended
3
Measurement, Measures, Metrics
IEEE definitions of
software quality metrics
(1) A quantitative measure of the degree to
which an item possesses a given quality
attribute.
(2) A function whose inputs are software
data and whose output is a single
numerical value that can be interpreted as
the degree to which the software
possesses a given quality attribute.
4
Objectives of quality measurement
1. Facilitate management control, planning and
managerial intervention.
Based on:
· Deviations of actual from planned performance.
· Deviations of actual timetable and budget
performance from planned.
2. Identify situations for development or maintenance
process improvement (preventive or corrective
actions). Based on:
· Accumulation of metrics information regarding the
performance of teams, units, etc.
5
Software quality
metrics — Requirements
General requirements
 Relevant
 Valid
 Reliable
 Comprehensive
 Mutually exclusive
Operative requirements
 Easy and simple
 Does not require independent data collection
 Immune to biased interventions by interested parties
6
• Process
Measure the efficacy of processes. What works, what
doesn't.
• Project
Assess the status of projects. Track risk. Identify problem
areas. Adjust work flow.
• Product
Measure predefined product attributes (generally related
to ISO9126 Software Characteristics)
7
What to measure
 Three kinds of Software Quality Metrics
◦ Product Metrics - describe the characteristics of product
 size, complexity, design features, performance, and quality level
◦ Process Metrics - used for improving software
development/maintenance process
 effectiveness of defect removal, pattern of testing defect arrival,
and response time of fixes
◦ Project Metrics - describe the project characteristics and
execution
 number of developers, cost, schedule, productivity, etc.
 fairly straight forward
8
Classification of software quality
metrics
Software size (volume) measures
 KLOC — classic metric that measures the
size of software by thousands of code lines.
 Number of function points (NFP) — a
measure of the development resources
(human resources) required to develop a
program, based on the functionality
specified for the software system
9
Process metrics
 S/W development process metrics fall into
one of the following categories:
1-Software process quality metrics
 Error density metrics
 Error severity metrics
 Error removal effectiveness metrics
2- Software process timetable metrics
3- Software process productivity metrics
10
Software process quality metrics
 Software process quality metrics may be
classified into two classes:
 Error density metrics
 Error severity metrics
 Error removal effectiveness metrics
11
Error density metrics
 Calculation of error density metrics involves two
measures:
1- Software volume measures. Some density metrics use
the number of lines of code while others apply function
points.
2- Errors counted measures. Some relate to the number
of errors(NCE) and others to the weighted number of
errors (WCE).
 this measure is classification of the detected errors into
severity classes, followed by weighting each class.
12
Example
 A software development department applies two alternative
measures, NCE and WCE, to the code errors detected in
its software development projects. Three classes of error
severity and their relative weights are also defined:
 there were 42 low severity errors, 17 medium severity
errors, and 11 high severity errors
13
Calculation of NCE and WCE
14
Code Name Calculation formula
CED Code Error Density NCE
CED = -----------
KLOC
DED Development Error Density NDE
DED = -----------
KLOC
WCED Weighted Code Error Density WCE
WCDE = ---------
KLOC
WDED Weighted Development Error Density WDE
WDED = ---------
KLOC
WCEF Weighted Code Errors per Function
Point
WCE
WCEF = ----------
NFP
WDEF Weighted Development Errors per
Function Point
WDE
WDEF = ----------
NFP
NCE = The number of code errors detected by code inspections and testing.
NDE = total number of development (design and code) errors) detected in the development
process.
WCE = weighted total code errors detected by code inspections and testing.
WDE = total weighted development (design and code) errors detected in development process.
Calculation Of
CED and WCED Example
•The unit determined the following indicators for unacceptable software
quality: CED > 2 and WCED > 4.
•The software system size is 40 KLOC. Calculation of the two metrics
resulted in the following:
Error severity metrics
 The metrics belonging to this group are
used to detect adverse situations of
increasing numbers of severe errors in
situations where errors and weighted
errors, as measured by error density
metrics, are generally decreasing.
 Two error severity metrics are presented as
follows:
Code Name Calculation formula
ASCE Average Severity of Code
Errors
WCE
ASCE = -----------
NCE
ASDE Average Severity of
Development Errors
WDE
ASDE = -----------
NDE
NCE = The number of code errors detected by code inspections and testing.
NDE = total number of development (design and code) errors detected in
the development process.
WCE = weighted total code errors detected by code inspections and testing.
WDE = total weighted development (design and code) errors detected in
development process.
Error removal
effectiveness metrics
• Software developers can measure the effectiveness of error
removal by the software quality assurance system after a
period of regular operation (usually 6 or 12 months) of the
system.
• The metrics combine the error records of the development
stage with the failures records compiled during the first year
(or any defined period) of regular operation. Two error
removal effectiveness metrics are as follows.
Code Name Calculation formula
DERE Development Errors Removal
Effectiveness
NDE
DERE = ----------------
NDE + NYF
DWERE Development Weighted
Errors Removal Effectiveness
WDE
DWERE = ------------------
WDE+WYF
NDE = total number of development (design and code) errors) detected in the
development process.
WCE = weighted total code errors detected by code inspections and testing.
WDE = total weighted development (design and code) errors detected in
development process.
NYF = number software failures detected during a year of maintenance service.
WYF = weighted number of software failures detected during a year of maintenance
service.
Software process
timetable metrics
• Software process timetable metrics may be based on
accounts of success (completion of milestones per schedule)
in addition to failure events (non-completion per schedule).
•An alternative approach calculates the average delay in
completion of milestones
•TTO and ADMC metrics are based on data for all relevant
milestones scheduled in the project plan. In other words, only
milestones that were designated for completion in the project
plan stage are considered in the metrics’ computation.
Therefore, these metrics can be applied throughout
development and need not wait for the project’s completion.
Code Name Calculation formula
TTO Time Table Observance MSOT
TTO = -----------
MS
ADMC Average Delay of Milestone
Completion
TCDAM
ADMC = -----------
MS
MSOT = Milestones completed on time.
MS = Total number of milestones.
TCDAM = Total Completion Delays (days, weeks, etc.) for all milestones.
Software process productivity metrics
 This group of metrics includes “direct”
metrics that deal with a project’s human
resources productivity as well as “indirect”
metrics that focus on the extent of software
reuse.
 Software reuse substantially affects
productivity and effectiveness.
Code Name Calculation
formula
DevP Development Productivity DevH
DevP = ----------
KLOC
FDevP Function point Development
Productivity
DevH
FDevP = ----------
NFP
CRe Code Reuse ReKLOC
Cre = --------------
KLOC
DocRe Documentation Reuse ReDoc
DocRe = -----------
NDoc
DevH = Total working hours invested in the development of the software system.
ReKLOC = Number of thousands of reused lines of code.
ReDoc = Number of reused pages of documentation.
NDoc = Number of pages of documentation.
Product metrics
 Product metrics refer to the software system’s operational
phase – years of regular use of the software system by
customers, whether “internal” or “external” customers,
 In most cases, the software developer is required to
provide customer service during the software’s operational
phase. Customer services are of two main types:
1-Help desk services (HD) – software support by instructing
customers regarding the method of application of the software
and solution of customer implementation problems.
2- Corrective maintenance services – correction of software
failures identified by customers/users or detected by the
customer service team prior to their discovery by customers.
The number of software failures and their density are directly
related to software development quality.
Product metrics
 HD metrics are based on all customer calls while corrective
maintenance metrics are based on failure reports.
 Product metrics generally rely on performance records compiled
during one year (or any other specified period of time). This policy
enables comparisons of successive years in addition to comparisons
between different units and software systems.
 The array of software product metrics presented here is
classified as follows:
■ HD quality metrics
■ HD productivity and effectiveness metrics
■ Corrective maintenance quality metrics
■ Corrective maintenance productivity and effectiveness metrics.
Product metrics
 It should be remembered that software maintenance activities
include:
■ Corrective maintenance – correction of software failures
detected during regular operation of the software.
■ Adaptive maintenance – adaptation of existing software to new
customers or new requirements.
■ Functional improvement maintenance – addition of new
functions to the existing software, improvement of reliability, etc.
 In the metrics presented here we limit our selection to those that
deal with corrective maintenance. For other components of
software maintenance, the metrics suggested for the software
development process (process metrics) can be used as is or
with minor adaptations.
HD quality metrics
 The types of HD quality metrics discussed here
deal with:
■ HD calls density metrics – the extent of customer
requests for HD services as measured by the
number of calls.
■ Metrics of the severity of the HD issues raised.
■ HD success metrics – the level of success in
responding to these calls. A success is achieved
by completing the required service within the time
determined in the service contract.
HD calls density metrics
 For the HD call density there are six different
types of metrics. Some relate to the number of the
errors and others to a weighted number of errors.
As for size/volume measures of the software,
some use number of lines of code while others
apply function points.
 The sources of data for these and the other
metrics in this group are HD reports. Three HD
calls density metrics for HD performance are
presented as follows:
Code Name Calculation Formula
HDD HD calls density NHYC
HDD = --------------
KLMC
WHDD Weighted HD calls density WHYC
WHYC = ------------
KLMC
WHDF Weighted HD calls per
function point
WHYC
WHDF = ------------
NMFP
NHYC = the number of HD calls during a year of service.
KLMC = Thousands of lines of maintained software code.
WHYC = weighted HD calls received during one year of service.
NMFP = number of function points to be maintained.
Severity of HD calls metrics
 The metrics belonging to this group of measures
aim at detecting one type of adverse situation:
increasingly severe HD calls.
 The computed results may contribute to
improvements in all or parts of the user interface
(its “user friendliness”) as well as the user manual
and integrated help menus.
 The Average Severity of HD Calls (ASHC):
refers to failures detected during a period of one
year.
Code Name Calculation Formula
ASHC Average severity of HD calls WHYC
ASHC = --------------
NHYC
NHYC = the number of HD calls during a year of service.
WHYC = weighted HD calls received during one year of service.
Success of the HD services
 The most common metric for the success of HD services is
the capacity to solve problems raised by customer calls
within the time determined in the service contract
(availability). Thus, the metric for success of HD services
compares the actual with the designated time for provision of
these services.
 For example, the availability of help desk (HD) services for an
inventory management software package is defined as
follows:
■ The HD service undertakes to solve any HD call within one
hour.
■ The probability that HD call solution time exceeds one hour
will not exceed 2%.
■ The probability that HD call solution time exceeds four
working hours will not exceed 0.5%.
Code Name Calculation Formula
HDS HD service success NHYOT
HDS = --------------
NHYC
NHYNOT = Number of yearly HD calls completed on time during one year of service.
NHYC = the number of HD calls during a year of service.
HD productivity and effectiveness
metrics
 Productivity metrics relate to the total of
resources invested during a specified
period, while effectiveness metrics relate to
the resources invested in responding to a
HD customer call.
HD productivity metrics
 HD productivity metrics makes use of the easy-to-
apply KLMC measure of maintained software
system’s size or according to function point
evaluation of the software system. Two HD
productivity metrics are presented as follows.
 HD effectiveness metrics
 The metrics in this group refer to the resources
invested in responding to customers’ HD calls.
Code Name Calculation Formula
HDP HD Productivity HDYH
HDP= --------------
KLMC
FHDP Function Point HD
Productivity
HDYH
FHDP = ----------
NMFP
HDE HD effectiveness HDYH
HDE = --------------
NHYC
HDYH = Total yearly working hours invested in HD servicing of the software system.
KLMC = Thousands of lines of maintained software code.
NMFP = number of function points to be maintained.
NHYC = the number of HD calls during a year of service.
Corrective maintenance quality
metrics
 Software corrective maintenance metrics deal
with several aspects of the quality of maintenance
services. A distinction is needed between
software system failures treated by the
maintenance teams and failures of the
maintenance service that refer to cases where the
maintenance failed to provide a repair that meets
the designated standards or contract
requirements. Thus, software maintenance
metrics are classified as follows:
Corrective maintenance quality
metrics
■ Software system failures density metrics – deal with the extent of
demand for corrective maintenance, based on the records of
failures identified during regular operation of the software system.
■ Software system failures severity metrics – deal with the severity
of software system failures attended to by the corrective
maintenance team.
■ Failures of maintenance services metrics – deal with cases where
maintenance services were unable to complete the failure
correction on time or that the correction performed failed.
■ Software system availability metrics – deal with the extent of
disturbances caused to the customer as realized by periods of time
where the services of the software system are unavailable or only
partly available.
Code Name Calculation Formula
SSFD Software System Failure Density NYF
SSFD = --------------
KLMC
WSSFD Weighted Software System Failure
Density
WYF
WFFFD = ---------
KLMC
WSSFF Weighted Software System Failures
per Function point
WYF
WSSFF = ----------
NMFP
NYF = number of software failures detected during a year of maintenance service.
WYF = weighted number of yearly software failures detected during one year of
maintenance service.
NMFP = number of function points designated for the maintained software.
KLMC = Thousands of lines of maintained software code.
Code Name Calculation Formula
ASSS
F
Average Severity of
Software System Failures
WYF
ASSSF = --------------
NYF
NYF = number of software failures detected during a year of maintenance service.
WYF = weighted number of yearly software failures detected during one year.
Code Name Calculation Formula
MRepF Maintenance Repeated
repair Failure metric -
RepYF
MRepF = --------------
NYF
NYF = number of software failures detected during a year of maintenance
service.
RepYF = Number of repeated software failure calls (service failures).
Software system availability metrics
 User metrics distinguish between:
■ Full availability – where all software system
functions perform properly
■ Vital availability – where no vital functions
fail (but non-vital functions may fail)
■ Total unavailability – where all software
system functions fail.
Code Name Calculation Formula
FA Full Availability
NYSerH - NYFH
FA = -----------------------
NYSerH
VitA Vital Availability
NYSerH - NYVitFH
VitA = -----------------------------
NYSerH
TUA Total Unavailability
NYTFH
TUA = ------------
NYSerH
NYSerH = Number of hours software system is in service during one year.
NYFH = Number of hours where at least one function is unavailable (failed) during one year,
including total failure of the software system.
NYVitFH = Number of hours when at least one vital function is unavailable (failed) during
one year, including total failure of the software system.
NYTFH = Number of hours of total failure (all system functions failed) during one year.
NYFH ≥ NYVitFH ≥ NYTFH.
1 – TUA ≥ VitA ≥FA
Limitations of software metrics
 Application of quality metrics is strewn with
obstacles. These can be grouped as follows:
■ Budget constraints in allocating the necessary
resources (manpower, funds, etc.) for
development of a quality metrics system and its
regular application.
■ Human factors, especially opposition of
employees to evaluation of their activities.
■ Uncertainty regarding the data’s validity, rooted in
partial and biased reporting.

Contenu connexe

Tendances

Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing BasicsBelal Raslan
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)Syed Muhammad Hammad
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software QualityAjeng Savitri
 
Software Testing
Software TestingSoftware Testing
Software TestingSengu Msc
 
Software design and Software engineering.pptx
Software design and Software engineering.pptxSoftware design and Software engineering.pptx
Software design and Software engineering.pptxDrTThendralCompSci
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software EngineeringManish Kumar
 
Sdlc (software development life cycle)
Sdlc (software development life cycle)Sdlc (software development life cycle)
Sdlc (software development life cycle)Nadeesha Thilakarathne
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and DesignHaitham El-Ghareeb
 
Ch 9 traceability and verification
Ch 9 traceability and verificationCh 9 traceability and verification
Ch 9 traceability and verificationKittitouch Suteeca
 
Requirement specification (SRS)
Requirement specification (SRS)Requirement specification (SRS)
Requirement specification (SRS)kunj desai
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing FundamentalsChankey Pathak
 

Tendances (20)

Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing Basics
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software Quality
 
Softwaretesting
SoftwaretestingSoftwaretesting
Softwaretesting
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Fagan Inspection
Fagan InspectionFagan Inspection
Fagan Inspection
 
Software design and Software engineering.pptx
Software design and Software engineering.pptxSoftware design and Software engineering.pptx
Software design and Software engineering.pptx
 
Design Pattern in Software Engineering
Design Pattern in Software EngineeringDesign Pattern in Software Engineering
Design Pattern in Software Engineering
 
Use Case Modeling
Use Case ModelingUse Case Modeling
Use Case Modeling
 
Requirements Engineering - Goals
Requirements Engineering - GoalsRequirements Engineering - Goals
Requirements Engineering - Goals
 
SOFTWARE TESTING.pptx
SOFTWARE TESTING.pptxSOFTWARE TESTING.pptx
SOFTWARE TESTING.pptx
 
Sdlc (software development life cycle)
Sdlc (software development life cycle)Sdlc (software development life cycle)
Sdlc (software development life cycle)
 
Object Oriented Analysis and Design
Object Oriented Analysis and DesignObject Oriented Analysis and Design
Object Oriented Analysis and Design
 
Ch 9 traceability and verification
Ch 9 traceability and verificationCh 9 traceability and verification
Ch 9 traceability and verification
 
PROCESS MODELS.ppt
PROCESS MODELS.pptPROCESS MODELS.ppt
PROCESS MODELS.ppt
 
Functional and non functional
Functional and non functionalFunctional and non functional
Functional and non functional
 
Requirement specification (SRS)
Requirement specification (SRS)Requirement specification (SRS)
Requirement specification (SRS)
 
Software Quality Metrics
Software Quality MetricsSoftware Quality Metrics
Software Quality Metrics
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 

Similaire à Software Quality Metrics Explained

Software engineering 12 process quality metrics
Software engineering 12 process quality metricsSoftware engineering 12 process quality metrics
Software engineering 12 process quality metricsVaibhav Khanna
 
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptx
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptxUNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptx
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptxLeahRachael
 
Software Metrics - Software Engineering
Software Metrics - Software EngineeringSoftware Metrics - Software Engineering
Software Metrics - Software EngineeringDrishti Bhalla
 
Cost estimation techniques
Cost estimation techniquesCost estimation techniques
Cost estimation techniqueslokareminakshi
 
16103271 software-testing-ppt
16103271 software-testing-ppt16103271 software-testing-ppt
16103271 software-testing-pptatish90
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.pptssuser3f82c9
 
ISTQB Advanced Study Guide - 2
ISTQB Advanced Study Guide - 2ISTQB Advanced Study Guide - 2
ISTQB Advanced Study Guide - 2Yogindernath Gupta
 
Software engineering 13 software product metrics
Software engineering 13 software product metricsSoftware engineering 13 software product metrics
Software engineering 13 software product metricsVaibhav Khanna
 
Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )eshtiyak
 
Testing material (1).docx
Testing material (1).docxTesting material (1).docx
Testing material (1).docxKVamshiKrishna5
 

Similaire à Software Quality Metrics Explained (20)

Software engineering 12 process quality metrics
Software engineering 12 process quality metricsSoftware engineering 12 process quality metrics
Software engineering 12 process quality metrics
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 
Software Engineering
Software EngineeringSoftware Engineering
Software Engineering
 
Software maintenance
Software maintenance Software maintenance
Software maintenance
 
Software engineer
Software engineerSoftware engineer
Software engineer
 
Software_Testing.pptx
Software_Testing.pptxSoftware_Testing.pptx
Software_Testing.pptx
 
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptx
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptxUNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptx
UNIT 2-APPLYING THE SOFTWARE COST ESTIMATION.pptx
 
Software Metrics - Software Engineering
Software Metrics - Software EngineeringSoftware Metrics - Software Engineering
Software Metrics - Software Engineering
 
software process
software process software process
software process
 
Cost estimation techniques
Cost estimation techniquesCost estimation techniques
Cost estimation techniques
 
Software Metrics
Software MetricsSoftware Metrics
Software Metrics
 
16103271 software-testing-ppt
16103271 software-testing-ppt16103271 software-testing-ppt
16103271 software-testing-ppt
 
Chapter 11 Metrics for process and projects.ppt
Chapter 11  Metrics for process and projects.pptChapter 11  Metrics for process and projects.ppt
Chapter 11 Metrics for process and projects.ppt
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
ISTQB Advanced Study Guide - 2
ISTQB Advanced Study Guide - 2ISTQB Advanced Study Guide - 2
ISTQB Advanced Study Guide - 2
 
Software engineering 13 software product metrics
Software engineering 13 software product metricsSoftware engineering 13 software product metrics
Software engineering 13 software product metrics
 
Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )Software Development Life Cycle (SDLC )
Software Development Life Cycle (SDLC )
 
software engineering
 software engineering software engineering
software engineering
 
Software maintenance
Software maintenanceSoftware maintenance
Software maintenance
 
Testing material (1).docx
Testing material (1).docxTesting material (1).docx
Testing material (1).docx
 

Plus de Prachi Sasankar

St all about test case-p3
St all about test case-p3St all about test case-p3
St all about test case-p3Prachi Sasankar
 
Importance of E- commerce
Importance of E- commerceImportance of E- commerce
Importance of E- commercePrachi Sasankar
 
Wireless application protocol
Wireless application protocolWireless application protocol
Wireless application protocolPrachi Sasankar
 
Ecomm-History and Overview
Ecomm-History and OverviewEcomm-History and Overview
Ecomm-History and OverviewPrachi Sasankar
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and eventsPrachi Sasankar
 
Unix shell programming intro-part-1
Unix shell programming intro-part-1Unix shell programming intro-part-1
Unix shell programming intro-part-1Prachi Sasankar
 
Ide and datatypes vb-net-u-ii-p2
Ide and datatypes  vb-net-u-ii-p2Ide and datatypes  vb-net-u-ii-p2
Ide and datatypes vb-net-u-ii-p2Prachi Sasankar
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3Prachi Sasankar
 
Types of software testing
Types of software testingTypes of software testing
Types of software testingPrachi Sasankar
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1Prachi Sasankar
 
Ty bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploadedTy bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploadedPrachi Sasankar
 
Software Engineering Overview
Software Engineering OverviewSoftware Engineering Overview
Software Engineering OverviewPrachi Sasankar
 

Plus de Prachi Sasankar (13)

St all about test case-p3
St all about test case-p3St all about test case-p3
St all about test case-p3
 
Importance of E- commerce
Importance of E- commerceImportance of E- commerce
Importance of E- commerce
 
Wireless application protocol
Wireless application protocolWireless application protocol
Wireless application protocol
 
Ecomm-History and Overview
Ecomm-History and OverviewEcomm-History and Overview
Ecomm-History and Overview
 
E-Comm-overview
E-Comm-overviewE-Comm-overview
E-Comm-overview
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
 
Unix shell programming intro-part-1
Unix shell programming intro-part-1Unix shell programming intro-part-1
Unix shell programming intro-part-1
 
Ide and datatypes vb-net-u-ii-p2
Ide and datatypes  vb-net-u-ii-p2Ide and datatypes  vb-net-u-ii-p2
Ide and datatypes vb-net-u-ii-p2
 
ST-All about Test Case-p3
ST-All about Test Case-p3ST-All about Test Case-p3
ST-All about Test Case-p3
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1
 
Ty bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploadedTy bca-sem-v-introduction to vb.net-i-uploaded
Ty bca-sem-v-introduction to vb.net-i-uploaded
 
Software Engineering Overview
Software Engineering OverviewSoftware Engineering Overview
Software Engineering Overview
 

Dernier

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Dernier (20)

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

Software Quality Metrics Explained

  • 2. “You can’t control what you can’t measure” Tom DeMarco Software Quality metrics as tool for QA tools 2
  • 3.  Measurement ◦ is the act of obtaining a measure  Measure ◦ provides a quantitative indication of the size of some product or process attribute, E.g., Number of errors  Metric ◦ is a quantitative measure of the degree to which a system, component, or process possesses a given attribute (IEEE Software Engineering Standards 1993) : Software Quality - E.g., Number of errors found per person hours expended 3 Measurement, Measures, Metrics
  • 4. IEEE definitions of software quality metrics (1) A quantitative measure of the degree to which an item possesses a given quality attribute. (2) A function whose inputs are software data and whose output is a single numerical value that can be interpreted as the degree to which the software possesses a given quality attribute. 4
  • 5. Objectives of quality measurement 1. Facilitate management control, planning and managerial intervention. Based on: · Deviations of actual from planned performance. · Deviations of actual timetable and budget performance from planned. 2. Identify situations for development or maintenance process improvement (preventive or corrective actions). Based on: · Accumulation of metrics information regarding the performance of teams, units, etc. 5
  • 6. Software quality metrics — Requirements General requirements  Relevant  Valid  Reliable  Comprehensive  Mutually exclusive Operative requirements  Easy and simple  Does not require independent data collection  Immune to biased interventions by interested parties 6
  • 7. • Process Measure the efficacy of processes. What works, what doesn't. • Project Assess the status of projects. Track risk. Identify problem areas. Adjust work flow. • Product Measure predefined product attributes (generally related to ISO9126 Software Characteristics) 7 What to measure
  • 8.  Three kinds of Software Quality Metrics ◦ Product Metrics - describe the characteristics of product  size, complexity, design features, performance, and quality level ◦ Process Metrics - used for improving software development/maintenance process  effectiveness of defect removal, pattern of testing defect arrival, and response time of fixes ◦ Project Metrics - describe the project characteristics and execution  number of developers, cost, schedule, productivity, etc.  fairly straight forward 8 Classification of software quality metrics
  • 9. Software size (volume) measures  KLOC — classic metric that measures the size of software by thousands of code lines.  Number of function points (NFP) — a measure of the development resources (human resources) required to develop a program, based on the functionality specified for the software system 9
  • 10. Process metrics  S/W development process metrics fall into one of the following categories: 1-Software process quality metrics  Error density metrics  Error severity metrics  Error removal effectiveness metrics 2- Software process timetable metrics 3- Software process productivity metrics 10
  • 11. Software process quality metrics  Software process quality metrics may be classified into two classes:  Error density metrics  Error severity metrics  Error removal effectiveness metrics 11
  • 12. Error density metrics  Calculation of error density metrics involves two measures: 1- Software volume measures. Some density metrics use the number of lines of code while others apply function points. 2- Errors counted measures. Some relate to the number of errors(NCE) and others to the weighted number of errors (WCE).  this measure is classification of the detected errors into severity classes, followed by weighting each class. 12
  • 13. Example  A software development department applies two alternative measures, NCE and WCE, to the code errors detected in its software development projects. Three classes of error severity and their relative weights are also defined:  there were 42 low severity errors, 17 medium severity errors, and 11 high severity errors 13
  • 14. Calculation of NCE and WCE 14
  • 15. Code Name Calculation formula CED Code Error Density NCE CED = ----------- KLOC DED Development Error Density NDE DED = ----------- KLOC WCED Weighted Code Error Density WCE WCDE = --------- KLOC WDED Weighted Development Error Density WDE WDED = --------- KLOC WCEF Weighted Code Errors per Function Point WCE WCEF = ---------- NFP WDEF Weighted Development Errors per Function Point WDE WDEF = ---------- NFP NCE = The number of code errors detected by code inspections and testing. NDE = total number of development (design and code) errors) detected in the development process. WCE = weighted total code errors detected by code inspections and testing. WDE = total weighted development (design and code) errors detected in development process.
  • 16. Calculation Of CED and WCED Example •The unit determined the following indicators for unacceptable software quality: CED > 2 and WCED > 4. •The software system size is 40 KLOC. Calculation of the two metrics resulted in the following:
  • 17. Error severity metrics  The metrics belonging to this group are used to detect adverse situations of increasing numbers of severe errors in situations where errors and weighted errors, as measured by error density metrics, are generally decreasing.  Two error severity metrics are presented as follows:
  • 18. Code Name Calculation formula ASCE Average Severity of Code Errors WCE ASCE = ----------- NCE ASDE Average Severity of Development Errors WDE ASDE = ----------- NDE NCE = The number of code errors detected by code inspections and testing. NDE = total number of development (design and code) errors detected in the development process. WCE = weighted total code errors detected by code inspections and testing. WDE = total weighted development (design and code) errors detected in development process.
  • 19. Error removal effectiveness metrics • Software developers can measure the effectiveness of error removal by the software quality assurance system after a period of regular operation (usually 6 or 12 months) of the system. • The metrics combine the error records of the development stage with the failures records compiled during the first year (or any defined period) of regular operation. Two error removal effectiveness metrics are as follows.
  • 20. Code Name Calculation formula DERE Development Errors Removal Effectiveness NDE DERE = ---------------- NDE + NYF DWERE Development Weighted Errors Removal Effectiveness WDE DWERE = ------------------ WDE+WYF NDE = total number of development (design and code) errors) detected in the development process. WCE = weighted total code errors detected by code inspections and testing. WDE = total weighted development (design and code) errors detected in development process. NYF = number software failures detected during a year of maintenance service. WYF = weighted number of software failures detected during a year of maintenance service.
  • 21. Software process timetable metrics • Software process timetable metrics may be based on accounts of success (completion of milestones per schedule) in addition to failure events (non-completion per schedule). •An alternative approach calculates the average delay in completion of milestones •TTO and ADMC metrics are based on data for all relevant milestones scheduled in the project plan. In other words, only milestones that were designated for completion in the project plan stage are considered in the metrics’ computation. Therefore, these metrics can be applied throughout development and need not wait for the project’s completion.
  • 22. Code Name Calculation formula TTO Time Table Observance MSOT TTO = ----------- MS ADMC Average Delay of Milestone Completion TCDAM ADMC = ----------- MS MSOT = Milestones completed on time. MS = Total number of milestones. TCDAM = Total Completion Delays (days, weeks, etc.) for all milestones.
  • 23. Software process productivity metrics  This group of metrics includes “direct” metrics that deal with a project’s human resources productivity as well as “indirect” metrics that focus on the extent of software reuse.  Software reuse substantially affects productivity and effectiveness.
  • 24. Code Name Calculation formula DevP Development Productivity DevH DevP = ---------- KLOC FDevP Function point Development Productivity DevH FDevP = ---------- NFP CRe Code Reuse ReKLOC Cre = -------------- KLOC DocRe Documentation Reuse ReDoc DocRe = ----------- NDoc DevH = Total working hours invested in the development of the software system. ReKLOC = Number of thousands of reused lines of code. ReDoc = Number of reused pages of documentation. NDoc = Number of pages of documentation.
  • 25. Product metrics  Product metrics refer to the software system’s operational phase – years of regular use of the software system by customers, whether “internal” or “external” customers,  In most cases, the software developer is required to provide customer service during the software’s operational phase. Customer services are of two main types: 1-Help desk services (HD) – software support by instructing customers regarding the method of application of the software and solution of customer implementation problems. 2- Corrective maintenance services – correction of software failures identified by customers/users or detected by the customer service team prior to their discovery by customers. The number of software failures and their density are directly related to software development quality.
  • 26. Product metrics  HD metrics are based on all customer calls while corrective maintenance metrics are based on failure reports.  Product metrics generally rely on performance records compiled during one year (or any other specified period of time). This policy enables comparisons of successive years in addition to comparisons between different units and software systems.  The array of software product metrics presented here is classified as follows: ■ HD quality metrics ■ HD productivity and effectiveness metrics ■ Corrective maintenance quality metrics ■ Corrective maintenance productivity and effectiveness metrics.
  • 27. Product metrics  It should be remembered that software maintenance activities include: ■ Corrective maintenance – correction of software failures detected during regular operation of the software. ■ Adaptive maintenance – adaptation of existing software to new customers or new requirements. ■ Functional improvement maintenance – addition of new functions to the existing software, improvement of reliability, etc.  In the metrics presented here we limit our selection to those that deal with corrective maintenance. For other components of software maintenance, the metrics suggested for the software development process (process metrics) can be used as is or with minor adaptations.
  • 28. HD quality metrics  The types of HD quality metrics discussed here deal with: ■ HD calls density metrics – the extent of customer requests for HD services as measured by the number of calls. ■ Metrics of the severity of the HD issues raised. ■ HD success metrics – the level of success in responding to these calls. A success is achieved by completing the required service within the time determined in the service contract.
  • 29. HD calls density metrics  For the HD call density there are six different types of metrics. Some relate to the number of the errors and others to a weighted number of errors. As for size/volume measures of the software, some use number of lines of code while others apply function points.  The sources of data for these and the other metrics in this group are HD reports. Three HD calls density metrics for HD performance are presented as follows:
  • 30. Code Name Calculation Formula HDD HD calls density NHYC HDD = -------------- KLMC WHDD Weighted HD calls density WHYC WHYC = ------------ KLMC WHDF Weighted HD calls per function point WHYC WHDF = ------------ NMFP NHYC = the number of HD calls during a year of service. KLMC = Thousands of lines of maintained software code. WHYC = weighted HD calls received during one year of service. NMFP = number of function points to be maintained.
  • 31. Severity of HD calls metrics  The metrics belonging to this group of measures aim at detecting one type of adverse situation: increasingly severe HD calls.  The computed results may contribute to improvements in all or parts of the user interface (its “user friendliness”) as well as the user manual and integrated help menus.  The Average Severity of HD Calls (ASHC): refers to failures detected during a period of one year.
  • 32. Code Name Calculation Formula ASHC Average severity of HD calls WHYC ASHC = -------------- NHYC NHYC = the number of HD calls during a year of service. WHYC = weighted HD calls received during one year of service.
  • 33. Success of the HD services  The most common metric for the success of HD services is the capacity to solve problems raised by customer calls within the time determined in the service contract (availability). Thus, the metric for success of HD services compares the actual with the designated time for provision of these services.  For example, the availability of help desk (HD) services for an inventory management software package is defined as follows: ■ The HD service undertakes to solve any HD call within one hour. ■ The probability that HD call solution time exceeds one hour will not exceed 2%. ■ The probability that HD call solution time exceeds four working hours will not exceed 0.5%.
  • 34. Code Name Calculation Formula HDS HD service success NHYOT HDS = -------------- NHYC NHYNOT = Number of yearly HD calls completed on time during one year of service. NHYC = the number of HD calls during a year of service.
  • 35. HD productivity and effectiveness metrics  Productivity metrics relate to the total of resources invested during a specified period, while effectiveness metrics relate to the resources invested in responding to a HD customer call.
  • 36. HD productivity metrics  HD productivity metrics makes use of the easy-to- apply KLMC measure of maintained software system’s size or according to function point evaluation of the software system. Two HD productivity metrics are presented as follows.  HD effectiveness metrics  The metrics in this group refer to the resources invested in responding to customers’ HD calls.
  • 37. Code Name Calculation Formula HDP HD Productivity HDYH HDP= -------------- KLMC FHDP Function Point HD Productivity HDYH FHDP = ---------- NMFP HDE HD effectiveness HDYH HDE = -------------- NHYC HDYH = Total yearly working hours invested in HD servicing of the software system. KLMC = Thousands of lines of maintained software code. NMFP = number of function points to be maintained. NHYC = the number of HD calls during a year of service.
  • 38. Corrective maintenance quality metrics  Software corrective maintenance metrics deal with several aspects of the quality of maintenance services. A distinction is needed between software system failures treated by the maintenance teams and failures of the maintenance service that refer to cases where the maintenance failed to provide a repair that meets the designated standards or contract requirements. Thus, software maintenance metrics are classified as follows:
  • 39. Corrective maintenance quality metrics ■ Software system failures density metrics – deal with the extent of demand for corrective maintenance, based on the records of failures identified during regular operation of the software system. ■ Software system failures severity metrics – deal with the severity of software system failures attended to by the corrective maintenance team. ■ Failures of maintenance services metrics – deal with cases where maintenance services were unable to complete the failure correction on time or that the correction performed failed. ■ Software system availability metrics – deal with the extent of disturbances caused to the customer as realized by periods of time where the services of the software system are unavailable or only partly available.
  • 40. Code Name Calculation Formula SSFD Software System Failure Density NYF SSFD = -------------- KLMC WSSFD Weighted Software System Failure Density WYF WFFFD = --------- KLMC WSSFF Weighted Software System Failures per Function point WYF WSSFF = ---------- NMFP NYF = number of software failures detected during a year of maintenance service. WYF = weighted number of yearly software failures detected during one year of maintenance service. NMFP = number of function points designated for the maintained software. KLMC = Thousands of lines of maintained software code.
  • 41. Code Name Calculation Formula ASSS F Average Severity of Software System Failures WYF ASSSF = -------------- NYF NYF = number of software failures detected during a year of maintenance service. WYF = weighted number of yearly software failures detected during one year.
  • 42. Code Name Calculation Formula MRepF Maintenance Repeated repair Failure metric - RepYF MRepF = -------------- NYF NYF = number of software failures detected during a year of maintenance service. RepYF = Number of repeated software failure calls (service failures).
  • 43. Software system availability metrics  User metrics distinguish between: ■ Full availability – where all software system functions perform properly ■ Vital availability – where no vital functions fail (but non-vital functions may fail) ■ Total unavailability – where all software system functions fail.
  • 44. Code Name Calculation Formula FA Full Availability NYSerH - NYFH FA = ----------------------- NYSerH VitA Vital Availability NYSerH - NYVitFH VitA = ----------------------------- NYSerH TUA Total Unavailability NYTFH TUA = ------------ NYSerH NYSerH = Number of hours software system is in service during one year. NYFH = Number of hours where at least one function is unavailable (failed) during one year, including total failure of the software system. NYVitFH = Number of hours when at least one vital function is unavailable (failed) during one year, including total failure of the software system. NYTFH = Number of hours of total failure (all system functions failed) during one year. NYFH ≥ NYVitFH ≥ NYTFH. 1 – TUA ≥ VitA ≥FA
  • 45.
  • 46. Limitations of software metrics  Application of quality metrics is strewn with obstacles. These can be grouped as follows: ■ Budget constraints in allocating the necessary resources (manpower, funds, etc.) for development of a quality metrics system and its regular application. ■ Human factors, especially opposition of employees to evaluation of their activities. ■ Uncertainty regarding the data’s validity, rooted in partial and biased reporting.