CSE 8314 - SW Metrics and Quality Engineering Copyright © 1995-2001, Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 1 SMU CSE 8314 /

Slides:



Advertisements
Similar presentations
Chapter 4 Quality Assurance in Context
Advertisements

Copyright , Dennis J. Frailey CSE7315 – Software Project Management CSE7315 M30 - Version 9.01 SMU CSE 7315 Planning and Managing a Software Project.
Computer Engineering 203 R Smith Project Tracking 12/ Project Tracking Why do we want to track a project? What is the projects MOV? – Why is tracking.
1 Exponential Distribution and Reliability Growth Models Kan Ch 8 Steve Chenoweth, RHIT Right: Wait – I always thought “exponential growth” was like this!
Software Quality Engineering Roadmap
Overview Lesson 10,11 - Software Quality Assurance
SE 450 Software Processes & Product Metrics Reliability: An Introduction.
Swami NatarajanJune 17, 2015 RIT Software Engineering Reliability Engineering.
SE 450 Software Processes & Product Metrics Reliability Engineering.
RIT Software Engineering
SE 450 Software Processes & Product Metrics 1 Defect Removal.
Software Defect Modeling at JPL John N. Spagnuolo Jr. and John D. Powell 19th International Forum on COCOMO and Software Cost Modeling 10/27/2004.
EXAMPLES OF METRICS PROGRAMS
Software Process and Product Metrics
12 Steps to Useful Software Metrics
Capability Maturity Model
Software Project Management
Pop Quiz How does fix response time and fix quality impact Customer Satisfaction? What is a Risk Exposure calculation? What’s a Scatter Diagram and why.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 24 Slide 1 Critical Systems Validation 1.
 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Chapter 7 Quality and Innovation in Product and Process Design.
Quality Planning & Defect Estimation
CLEANROOM SOFTWARE ENGINEERING.
N By: Md Rezaul Huda Reza n
Object-Oriented Software Engineering Practical Software Development using UML and Java Chapter 10: Testing and Inspecting to Ensure High Quality Part 4:
By: Md Rezaul Huda Reza 5Ps for SE Process Project Product People Problem.
1 Software Quality CIS 375 Bruce R. Maxim UM-Dearborn.
Software Engineering Software Process and Project Metrics.
Quality Control Project Management Unit Credit Value : 4 Essential
Disciplined Software Engineering Lecture #6 Software Engineering Institute Carnegie Mellon University Pittsburgh, PA Sponsored by the U.S. Department.
Software Quality Assurance SE Software Quality Assurance What is “quality”?
Software Measurement & Metrics
Software Engineering Modern Approaches Eric Braude and Michael Bernstein 1.
Software Project Management Lecture # 11. Outline Quality Management (chapter 26 - Pressman)  What is quality?  Meaning of Quality in Various Context.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M10 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 07 - Software Development Plans Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M07 Slide.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M01 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 15 - Introduction to Effort Estimation Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M15.
Carnegie Mellon Software Engineering Institute © 2006 by Carnegie Mellon University Software Process Performance Measures James Over Software Engineering.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M15 version 5.09Slide 1 SMU CSE.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M14 version 3.09Slide 1 SMU CSE.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M31 version 5.09Slide 1 SMU CSE.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M29 8/20/2001Slide 1 SMU CSE 8314 /
January 20, 2000 CSE SW Project Management / Chapter 15 – Course Summary Copyright © , Dennis J. Frailey, All Rights Reserved Slide # 1.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M37 8/20/2001Slide 1 SMU CSE 8314 /
Copyright , Dennis J. Frailey CSE Software Measurement and Quality Engineering CSE8314 M00 - Version 7.09 SMU CSE 8314 Software Measurement.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M18 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 30 - Managing with Earned Value / Measurement Issues Copyright © , Dennis J. Frailey, All Rights Reserved.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M12 8/20/2001Slide 1 SMU CSE 8314 /
Copyright , Dennis J. Frailey CSE Software Measurement and Quality Engineering CSE8314 M31 - Version 7.09 SMU CSE 8314 Software Measurement.
Testing Overview Software Reliability Techniques Testing Concepts CEN 4010 Class 24 – 11/17.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M11 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 27 - Project Tracking and Oversight Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M27.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M24 version 3.09Slide 1 SMU CSE.
Chapter 05 Quality Planning SaigonTech – Engineering Division Software Project Management in Practice By Pankaj Jalote © 2003 by Addison Wesley.
CSE SW Project Management / Module 18 - Introduction to Effort Estimating Models Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M18.
CSE SW Measurement and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M11 version 5.09Slide 1 SMU CSE.
1 Software Testing and Quality Assurance Lecture 38 – Software Quality Assurance.
CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M33 8/20/2001Slide 1 SMU CSE 8314 /
CSE SW Project Management / Module 33 - Software Quality Control Copyright © , Dennis J. Frailey, All Rights Reserved CSE7315M33 Slide.
Overview Definition Measurements of process capability control
Chapter 18 Maintaining Information Systems
12 Steps to Useful Software Metrics
Manfred Huber Based on an earlier presentation by Mike O’Dell, UTA
Software Quality Engineering
Software Reliability Models.
Test Planning Mike O’Dell (some edits by Vassilis Athitsos)
Critical Systems Validation
Capability Maturity Model
Capability Maturity Model
Presentation transcript:

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 1 SMU CSE 8314 / NTU SE 762-N Software Metrics and Quality Engineering Module 13 Software Reliability Models - Part 1

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 2 Contents Seeding and Tagging Weibull Distribution Rayleigh Distribution IEEE SW Reliability Standard Summary

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 3 Seeding and Tagging

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 4 Seeding and Tagging Introduce a given number of errors into the software -- say E of them Run standard tests, detecting D of them Compute D/E = % of errors detected Suppose D 2 = number of other errors detected Then you assume the total number of errors in the software is D 2 *E/D

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 5 Example of Seeding and Tagging 200 defects found so far Inject 20 defects Find 12 of them Therefore, assume total defects = 200 * 20 / 12 = 4000 / 12 = 333 => = 133 defects remaining By performing this analysis from time to time, you can estimate your defect density over time.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 6 Distributions Other than Exponential Weibull Distribution Rayleigh Distribution

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 7 Weibull Distribution  (shape parameter) allows reliability to increase  or to decrease   makes it equal to the exponential distribution (t)  =   t  -1 This is a useful model for trying to fit lots of different data sets, because it allows both increases and decreases.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 8 Rayleigh Distribution: Same as Weibull with  = 2 (t)  =  t  -2 Some researchers have found that this distribution fits certain software cases.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 9 IEEE Reliability Standards

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 10 The Real Need A way to manage reliability throughout the life cycle of the software This is the basis for the IEEE software reliability standard: “IEEE STD Software Reliability Metrics” & IEEE Guide (also see: IEEE STD Software Quality Assurance)

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 11 IEEE Software Reliability Standard 39 Measures applicability (1) Dobbins, James H., “SW Reliability Management,” in Handbook of SW Quality Assurance, Chapter 19.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 12 IEEE Standard Metrics Following are available for each metric – Description of use – Identification & definition of primitives – How it is implemented – How results are to be integrated – Special considerations – Special training or experience required – Specific example – Summary of benefits – Experience history – Published References

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 13 Factors Contributing to Selection of IEEE Metrics Ease of collection of primitive data Relationship between results & reliability Ease of interpretation of results Usefulness of results in management of the aspect being measured Need for measurements in each aspect of each life cycle phase Ease of implementation Cost of implementation

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 14 Three Basic Phases Predict Reliability Estimate Reliability Measure Reliability Start Coding Release Software Requirements Design Code Test Maintain Support

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 15 Some of the IEEE Metrics Unless otherwise specified, all of these are measured during development to help you assess, predict, estimate and/or control defect levels in your software.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 16 Fault Density Total Faults per 1000 Lines of Code Used to – Predict remaining faults – Assess testing sufficiency – Establish historical data You can also track this after releasing the software

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 17 Data Used to Measure Fault Density i = failure number n i = number of faults per failure N T =  n i = total faults found n f = fault density

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 18 Fault Density Formula or n f = N T / KSLOC n f =  n i / KSLOC

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 19 Graph of Fault Density

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 20 Use of Fault Density You can use fault density to estimate how close you are to finding all of the faults, and thus make decisions about whether to release software to the next development phase (or to the customer) After software release, you can continue to measure (to see how well you estimated defects remaining)

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 21 Additional Data Used to Categorize Faults d i = date of failure S i = severity of failure CL i = class of failure C i = type of fault These can help you determine which faults to focus on You may measure density separately for different classes or types or severity levels

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 22 Faults Detected (per time period) This can give you some idea of how well you are finding defects and thus how many defects are left in the software

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 23 Faults Detected Per Week

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 24 Defect Density (pre-release) This is similar to fault density, but is usually normalized by the size of the software It tells you how your software compares with other software, so you have an idea of whether yours meets your norms or expectations You can also track this after releasing the software

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 25 Defect Density Definitions (pre-release) A defect is a problem found during an inspection of the design, requirements, code, etc. i = inspection number D i = total defects found in ith inspection n = number of inspections Defect density is the total defects, normalized by the size of the software

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 26 Defect Density Equation (pre-release) n DD =  D i / KSLOC i=1

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 27 Using Defect Density To use defect density, you should track how many you find before you release the product to the next phase Over time, you can determine typical behaviors and thus meet goals or predict defect levels

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 28 Defect Density Requirements Analysis

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 29 Defect Density Software Design

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 30 Defect Density Code and Unit Test

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 31 Requirements Traceability Goals: – Identify missing requirements – Identify features that are not required Also known as “gold plating” – Measure progress in design and coding phases

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 32 Requirements Traceability Equation RT = R1 / R2 * 100% Data needed to compute this: – R1 = number of requirements traceable to specific design or code elements – R2 = total number of requirements

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 33 Requirements Traceability Variants and Usage Additional variants: – Trace to test cases – Trace from code/design/tests to requirements Usage notes: – This type of measure can be hard to keep up with and of limited utility if requirements change frequently. It works best if requirements are stable and defined.

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 34 Defect Index (for each phase) Goal: – Provide an estimate of the relative correctness of the software Primitive Data: i = phase number N i = no of defects found in phase i Further Refinement: S i = # of serious defects found in phase i M i = # of medium defects found in phase i T i = # of trivial defects found in phase i

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 35 Weighting for Defect Importance W S (typically 10) = weighting factor for serious defects W M (typically 3) = weighting factor for medium defects W T (typically 1) = weighting factor for trivial defects

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 36 Phase Defect Index W S * S i W M * M i W T * T i Pi =______ +______ + ______ N i N i N i

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 37 Use of Phase Defect Index This indicates the defect level of each phase It can be used to see if a given phase is generating too many defects and, if so, whether they are important ones

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 38 Overall Defect Index  i * P i DI =______ KSLOC

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 39 Software Maturity Index Goal: – Help determine if we are ready for delivery Primitive Data: M T = # of functions in current release F c = # of functions changed since prior release F a = # of functions added since prior release F d = # of functions deleted from prior release

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 40 Software Maturity Measure No 1: – For the most recently delivered software, count F c – For the next release, count F a, F d, M T M T - (F a + F c + F d ) MI =_______________ M T

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 41 Software Maturity Measure No 2: M T - F c SMI =_______ M T

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 42 Notes on IEEE Metrics These are indicators, not absolute measures They must be calibrated to your data in order to be of most use Despite the fact that they are over ten years old, not very many practicing software organizations have used them – Cost – Not invented here – Fear of metrics

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 43 Summary Simple models such as “seed and test” can give some concept of reliability More complex distribution models may give better results if they match the behavior of the specific type of software IEEE metrics represent one set of possible metrics for estimating and managing reliability

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 44 References IEEE STD 982.1, Software Reliability Metrics & IEEE Guide New York, Institute of Electrical and Electronics Engineers, Inc. Lyu, Michael R., Handbook of Software Reliability Engineering, IEEE, 1996, Catalog # RS ISBN

CSE SW Metrics and Quality Engineering Copyright © , Dennis J. Frailey, All Rights Reserved CSE8314M13 8/20/2001Slide 45 END OF MODULE 13