Chapter 4 - Management Components of Software Quality
Chapter 4 - Management Components of Software Quality
3 4 5 Standards
1 2 Life cycle
Infrastructure Management and
Overview components
components components Organizing
7
6 8 Test 9
Dynamic
Static tesing management Tools
testing
SQA Architecture
Slide 2
1
3/21/2022
Learning objectives
Explain the objectives of project progress control, software
quality metrics, costs of software quality measurements
Explain the components of project progress control
Classify software quality metrics
Compare the classic model to the extended cost model of
software quality
Slide 3
References
Galin (2004). Software Quality Assurance from theory to
implementation. Pearson Education Limited
Ian Sommerville (2011). Software engineering. Ninth
Edition. Addison-Wesley
Slide 4
2
3/21/2022
Slide 5
1 2 3 4 5
Contents
6 7 8 9
Slide 6
3
3/21/2022
Slide 7
4
3/21/2022
Slide 9
Slide 10
5
3/21/2022
Slide 11
Slide 12
6
3/21/2022
7
3/21/2022
Slide 15
1 2 3 4 5
Contents
6 7 8 9
Slide 16
8
3/21/2022
Slide 17
Slide 18
9
3/21/2022
19
Slide 20
10
3/21/2022
Process metrics
Categories
1. Software process quality metrics
error density metrics
error severity metrics
2. Software process timetable metrics
3. Software process error removal effectiveness metrics
4. Software process productivity metrics
22
11
3/21/2022
Process metrics
1. Quality metrics: Error density metrics
Code Name Calculation formula
NCE
CED Code Error Density CED = -----------
KLOC
NDE
DED Development Error Density DED = -----------
KLOC
WCE
WCED Weighted Code Error Density WCDE = ---------
KLOC
WDE
WDED Weighted Development Error Density WDED = ---------
KLOC
WCE
WCEF Weighted Code Errors per Function Point WCEF = ----------
NFP
Weighted Development Errors per WDE
WDEF Function Point 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.
Slide 23
WDE = total weighted development (design and code) errors detected in development process.
Process metrics
1. Quality metrics: Error density metrics
Example:
NCE 70 --
WCE -- 192
KLOC 40 40
12
3/21/2022
Process metrics
1. Quality metrics: Error density metrics
The concept of indicator
A software development department may apply two
alternative metrics for calculation of code error density: CED
and WCED
25
Process metrics
1. Quality metrics: Error severity metrics
Code Name Calculation formula
ASCE Average Severity of Code WCE
ASCE = -----------
Errors NCE
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
Slide 26
13
3/21/2022
Process metrics
2. Timetable metrics
Code Name Calculation formula
MSOT
TTO Time Table Observance TTO = -----------
MS
Slide 27
Process metrics
3. Error removal effectiveness metrics
Code Name Calculation formula
Development Errors Removal NDE
DERE Effectiveness
DERE = ----------------
NDE + NYF
Development Weighted WDE
DWERE Errors Removal Effectiveness DWERE = ------------------
WDE+WYF
14
3/21/2022
Process metrics
4. Productivity metrics
Code Name Calculation formula
DevH
DevP Development Productivity DevP = ----------
KLOC
Function point DevH
FDevP Development Productivity FDevP = ----------
NFP
ReKLOC
CRe Code Reuse Cre = --------------
KLOC
ReDoc
DocRe Documentation Reuse 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. 29
Product metrics
Slide 30
15
3/21/2022
Product metrics
Categories
1. HD quality metrics:
HD calls density metrics - measured by the number of calls
HD calls severity metrics - the severity of the HD issues raised
HD success metrics – the level of success in responding to HD calls
2. HD productivity and effectiveness metrics
3. Corrective maintenance quality metrics
software system failures density metrics
software system failures severity metrics
failures of maintenance services metrics
software system availability metrics
4. Corrective maintenance productivity and effectiveness
metrics
Slide 31
Product metrics
1. HD quality metrics: HD calls density metrics
Code Name Calculation Formula
NHYC
HDD HD calls density HDD = --------------
KLMC
WHYC
WHDD Weighted HD calls density WHYC = ------------
KLMC
16
3/21/2022
Product metrics
1. HD quality metrics: Severity of HD calls metrics
Slide 33
Product metrics
1. HD quality metrics: HD success metrics
The capacity to solve problems raised by customer calls
within the time determined in the service contract
Code Name Calculation Formula
NHYOT
HDS HD service success HDS = --------------
NHYC
Slide 34
17
3/21/2022
Product metrics
2. HD productivity and effectiveness metrics
Code Name Calculation Formula
HDYH
HDP HD Productivity HDP= --------------
KLNC
HDYH
FHDP Function Point HD Productivity FHDP = ----------
NMFP
HDYH
HDE HD effectiveness HDE = --------------
NHYC
Product metrics
3. Corrective maintenance quality metrics
Software system failures density metrics
Code Name Calculation Formula
NYF
SSFD Software System Failure Density SSFD = --------------
KLMC
WYF
WSSFD
Weighted Software System Failure WFFFD = ---------
Density KLMC
WYF
WSSFF
Weighted Software System Failures WSSFF = ----------
per Function point 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.
Slide 36
18
3/21/2022
Product metrics
3. Corrective maintenance quality metrics
Software system failure severity metrics
Slide 37
Product metrics
3. Corrective maintenance quality metrics
Failures of maintenance services metrics
Slide 38
19
3/21/2022
Product metrics
3. Corrective maintenance quality metrics
Software system availability metrics
Code Name Calculation Formula
NYSerH - NYFH
FA Full Availability FA = -----------------------
NYSerH
NYSerH - NYVitFH
VitA Vital Availability VitA = -----------------------------
NYSerH
NYTFH
TUA Total Unavailability 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 Slide 39
Product metrics
4. Software corrective maintenance productivity and
effectiveness metrics
CMaiYH = Total yearly working hours invested in the corrective maintenance of the
software system.
NYF = number of software failures detected during a year of maintenance service.
NMFP = number of function points designated for the maintained software.
KLMC = Thousands of lines of maintained software code.
Slide 40
20
3/21/2022
1 2 3 4 5
Contents
6 7 8 9
Slide 41
Slide 42
21
3/21/2022
Slide 43
22
3/21/2022
Costs of control
Prevention costs
Investments in development of new or improved SQA infrastructure
procedures and work instructions
support devices: templates, checklists etc
so ware configura on management system
software quality metrics
Regular implementation of SQA preventive activities:
instruction of new employees in SQA subjects
certification of employees
consultations on SQA issues to team leaders and others
Control of the SQA system through performance of:
internal quality reviews
external quality audits by customers and SQA system certification
organizations
management quality reviews
Slide 45
Costs of control
Appraisal costs
Costs of reviews:
formal design reviews (DRs)
peer reviews (inspections and walkthroughs)
expert reviews
Costs of software testing:
unit, integration and software system tests
acceptance tests (carried out by customers)
Costs of assuring quality of external participants
subcontractors, suppliers of COTS software systems and
reusable software modules, customers
Slide 46
23
3/21/2022
Slide 47
Slide 48
24
3/21/2022
Slide 49
Costs of
Control Appraisal costs
costs
Managerial
Cost of preparations and
software control costs
quality
Internal failure
Costs of costs
Failure of External failure
control costs
costs
Managerial
failure costs
Slide 50
25
3/21/2022
Slide 51
26
3/21/2022
Application of a cost of
software quality system
Definition of a cost of software quality model and
specification of cost items
Definition of the method of data collection for each cost
item
Implementation of a cost of software quality system,
including thorough follow up
Actions taken in response to the findings
Slide 53
Slide 54
27
3/21/2022
Slide 55
28