Quản Quản lý lý chất chấtlượng lượng phần phầnmềm mềm Software Quality Management Software Quality Management GV: Nguyễn Ngọc Tú GV: Nguyễn Ngọc Tú Email: [email protected]Email: [email protected]Are we building the right software for the need ? Are we building the software right ?
43
Embed
Chapter09-Defect Classification and Analysis-SQM@NNTu
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
– is human intensive, and should be performed by experts with thorough knowledge about the product, the development process, the application domain, and the general environment
Defect classification using Defect classification using ODCODC: : A comprehensive A comprehensive example example [3][3]
� Defect impact – “If this defect is not fixed, how will it impact the customer?”
– Pre-defined impact categories (possible answers) include
performance, reliability, etc.
� Defect trigger categories – closely resemble test scenario classes used for managing the
testing process for this product.
� Defect severity – can be 1 (critical problem), 2 (major problem), 3 (minor problem),
and 4 (minor inconvenience).
� The week – when the defect is detected, counted from the start of the project.
HoaSen University 31NNTu - SQM W2009
Defect classification using Defect classification using ODCODC: : A comprehensive A comprehensive example example [4][4]
� The information collected at defect fixing – pertains to the actions taken by the developers to
locate, identify and correct the faults that caused
detected failures:
� Fix type: fix to design, code, etc.
� Number of lines changed for the fixing.
� Fix action: adding, deleting, or changing to design or code.
� Some simple causal analyses– Defect source: vendor code, new code, base code, etc.
– The development phase when the defect was injected: previous
release or waterfall like development phases in the current
release.
HoaSen University 32NNTu - SQM W2009
Adapting Adapting ODCODC to analyze web to analyze web errorserrors
� For web-based applications,
– ODC-like defect classification can be defined and relevant defect data can be extracted from existing web server logs for analysis (Ma and Tian, 2003)
� data collection is always a big hurdle that
requires developers and testers to devote
substantial time to analyze the defects and
report the findings
HoaSen University 33NNTu - SQM W2009
Adapting Adapting ODCODC to analyze web to analyze web errors errors [2][2]
� Attributes
– Defect impact� corresponds to web error type, which indicates what problem was
experienced by web users. It can be analyzed directly based on
information extracted from the error logs or from response code used in
web access logs (Kallepalli and Tian, 2001).
– Defect trigger� corresponds to specific usage sequences or referrals that lead to
problems recorded in the error logs. It can be analyzed by examining the
referral pair information that can be extracted from the access logs (Ma
and Tian, 2003).
– Defect source� corresponds to specific files or file types that need to be changed,
added, or removed to fix problems recorded in the error logs. It can be
analyzed by examining both the specific errors and referral pairs.
HoaSen University 34NNTu - SQM W2009
Adapting Adapting ODCODC to analyze web to analyze web errors errors [3][3]
� Various other attributes
– can also be adopted or adapted from the original
ODC attributes through a close examination of the
web environment and data availability. Such
adaptation to different environments can help
people analyze problems or issues of concern to
them and fulfill different purposes.
HoaSen University 35NNTu - SQM W2009
DEFECT ANALYSIS FOR DEFECT ANALYSIS FOR CLASSIFIED DATACLASSIFIED DATA
� Various techniques
� most obvious and most straightforward analyses– are to apply defect distribution and trend analyses
� one-way analysis– examines one attribute at a time, either its overall distribution or its trend
over time
� Two-way analysis – can be used to examine the crossinteraction of two attributes (Bhandari
et al., 1993).
� Higher-order analysis is also possible, – such as using tree-based modeling on all the ODC attributes (Tian and
Henshaw, 1994).
HoaSen University 36NNTu - SQM W2009
expected defect profile
OneOne--way analysis: Analyzing a way analysis: Analyzing a single defect attributesingle defect attribute
� For each defect attribute,
– the overall distribution of its values can beexamined.
– distribution of defects among the differentdefect impact areas is very non-homogeneous
� When similar distribution data are available
over time or different development phases,
– can trace them to perform defect trend analysis
HoaSen University 37NNTu - SQM W2009
OneOne--way analysis: Analyzing a way analysis: Analyzing a single defect attributesingle defect attribute
HoaSen University 38NNTu - SQM W2009
OneOne--way analysis: Analyzing a way analysis: Analyzing a single defect attributesingle defect attribute
HoaSen University 39NNTu - SQM W2009
Figure 20.2 gives us the trend of type E errors for the SMU/SEAS web site over 26 days
TwoTwo--way and multiway and multi--way analysis: way analysis: Examining crossExamining cross--interactionsinteractions
� analysis examines the interaction between
two attributes, and can be applied to all
the attributes in pair-wise fashion
� simplest form
– is the conditional analysis of an individual
attribute under the condition of another attribute
taking a specific value.
HoaSen University 40NNTu - SQM W2009
TwoTwo--way and multiway and multi--way analysis: way analysis: Examining Examining crosscross--interactions interactions [2][2]
Impact Severity
1 2 3 4
Capability 2 12 13 1
Documentation 0 1 14 10
Installability 0 6 6 4
Maintainability 0 6 19 7
Migration 0 0 0 1
Performance 1 1 3 0
Reliability 27 96 66 7
Security 1 3 3 0
Service 0 0 4 4
Standards 0 1 2 1
Usability 0 10 44 19
HoaSen University 41NNTu - SQM W2009
ReferenceReference
� [1]Chapter 20
� [1]Chapter 13
� [3]Chapter 5
� [4]Chapter 04
� ODC - http://www.research.ibm.com/softeng/ODC/DETODC.HTM IBM