Estimating Defect Density. True genius resides in the capacity for evaluation of uncertain, hazardous and conflicting information Winston Churchill.

Slides:



Advertisements
Similar presentations
Susan Vocea & Mereoni Ketewai SPC - SOPAC. Applications Early warning Hazard, Vulnerability and Risk Assessments Damage assessment Identification of safe.
Advertisements

Unit 1, Lesson 4 Software Development Cycle AOIT Introduction to Programming Copyright © 2009–2012 National Academy Foundation. All rights reserved.
1 Estimating Software Development Using Project Metrics.
Metrics for Process and Projects
Metrics for Process and Projects
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 In-Process Metrics for Software Testing Kan Ch 10 Steve Chenoweth, RHIT Left – In materials testing, the goal always is to break it! That’s how you know.
Cocomo II Constructive Cost Model [Boehm] Sybren Deelstra.
SE 450 Software Processes & Product Metrics Software Metrics Overview.
SE 450 Software Processes & Product Metrics Activity Metrics.
Testing Metrics Software Reliability
SE is not like other projects. l The project is intangible. l There is no standardized solution process. l New projects may have little or no relationship.
1 Software Testing and Quality Assurance Lecture 1 Software Verification & Validation.
3. Software product quality metrics The quality of a product: -the “totality of characteristics that bear on its ability to satisfy stated or implied needs”.
Stoimen Stoimenov QA Engineer QA Engineer SitefinityLeads,SitefinityTeam6 Telerik QA Academy Telerik QA Academy.
12 Steps to Useful Software Metrics
University of Toronto Department of Computer Science © 2001, Steve Easterbrook CSC444 Lec22 1 Lecture 22: Software Measurement Basics of software measurement.
1 Measurement Theory Ch 3 in Kan Steve Chenoweth, RHIT.
Test Organization and Management
Testing – A Methodology of Science and Art. Agenda To show, A global Test Process which work Like a solution Black Box for an Software Implementation.
Software Estimation and Function Point Analysis Presented by Craig Myers MBA 731 November 12, 2007.
Software Engineering Software Process and Project Metrics.
CS 350, slide set 6 M. Overstreet Old Dominion University Spring 2005.
Identifying and Using a Project’s Key Subprocess Metrics Jeff S. Holmes BTS Fort Worth.
Software Measurement & Metrics
Team Assignment 15 Team 04 Class K15T2. Agenda 1. Introduction 2. Measurement process 3. GQM 4. Strength Weakness of metrics.
Chapter 19: Quality Models and Measurements  Types of Quality Assessment Models  Data Requirements and Measurement  Comparing Quality Assessment Models.
Software Engineering Modern Approaches Eric Braude and Michael Bernstein 1.
Software Testing. What is Testing? The process consisting of all life cycle activities, both static and dynamic, concerned with planning, preparation.
Software Metrics – part 2 Mehran Rezaei. Software Metrics Objectives – Provide State-of-art measurement of software products, processes and projects Why.
Factors Impacting the Effort Required to Fix Security Vulnerabilities
TOKYO ELECTRON SOFTWARE TECHNOLOGIES 1/5 IWFST Testing & Quality – Issues on implementation quality in our project Nov 8, 2005 Tokyo Electron Software.
From Quality Control to Quality Assurance…and Beyond Alan Page Microsoft.
CHAPTER 9 INSPECTIONS AS AN UP-FRONT QUALITY TECHNIQUE
Formal Methods in Software Engineering
Software Metrics Cmpe 550 Fall Software Metrics.
SOFTWARE METRICS. Software Process Revisited The Software Process has a common process framework containing: u framework activities - for all software.
Chapter 3: Software Project Management Metrics
SOFTWARE PROCESS AND PROJECT METRICS. Topic Covered  Metrics in the process and project domains  Process, project and measurement  Process Metrics.
Team Skill 6: Building the Right System Assessing Requirements Quality (29)
This material is approved for public release. Distribution is limited by the Software Engineering Institute to attendees. Sponsored by the U.S. Department.
Mistakes, Errors and Defects. 12/7/2015Mistakes, Errors, Defects, Copyright M. Smith, ECE, University of Calgary, Canada 2 Basic Concepts  You are building.
SOFTWARE METRICS Software Metrics :Roadmap Norman E Fenton and Martin Neil Presented by Santhosh Kumar Grandai.
Carnegie Mellon Software Engineering Institute © 2006 by Carnegie Mellon University Software Process Performance Measures James Over Software Engineering.
1 Experience from Studies of Software Maintenance and Evolution Parastoo Mohagheghi Post doc, NTNU-IDI SEVO Seminar, 16 March 2006.
1 Software Quality Engineering. 2 Quality Management Models –Tools for helping to monitor and manage the quality of software when it is under development.
Joy Shafer October, 2011  Why am I here?  Why are you here?
Chapter 22 Metrics for Process and Projects Software Engineering: A Practitioner’s Approach 6 th Edition Roger S. Pressman.
“100 down 900 to go!” An approach to patient evaluation Anna Middlemiss, Public Health Consultant Wakefield Council Gaynor Endeacott, Project Manager Healthwatch.
This chapter is extracted from Sommerville’s slides. Textbook chapter 22 1 Chapter 8 Validation and Verification 1.
CS223: Software Engineering Lecture 21: Unit Testing Metric.
DevCOP: A Software Certificate Management System for Eclipse Mark Sherriff and Laurie Williams North Carolina State University ISSRE ’06 November 10, 2006.
Software Development. The Software Life Cycle Encompasses all activities from initial analysis until obsolescence Analysis of problem or request Analysis.
Software Test Metrics When you can measure what you are speaking about and express it in numbers, you know something about it; but when you cannot measure,
Software Development.
Metrics That Matter Real Measures to Improve Software Development
Why Metrics in Software Testing?
Dilbert Scott Adams Manage It! Your Guide to Modern, Pragmatic Project Management. Johanna Rothman.
Architecture & System Performance
Architecture & System Performance
Chapter 8 – Software Testing
Product reliability Measuring
Verifying – Evaluating Software Estimates
12 Steps to Useful Software Metrics
Why Do We Measure? assess the status of an ongoing project
Software Inspections and Testing
Why Do We Measure? assess the status of an ongoing project
Metrics for Process and Projects
Mistakes, Errors and Defects
Монголын даатгалын зах зээлийн бодлогын асуудлууд
Presentation transcript:

Estimating Defect Density

True genius resides in the capacity for evaluation of uncertain, hazardous and conflicting information Winston Churchill

Challenges in Testing How many defects did the development team inject? How do we know we have found enough defects? When do we stop testing?

Is this Theory or Practical! Pragmatic managers think defect density is for theorists Managers believe number of defects in software cannot be estimated up front So we tested the theory in real life Why don’t you test if estimating defect density will work –Will not take more than a an hour of effort –Will open your eyes to applicability of EDD –CAVEAT: Development projects only

Try this at work! (with the help of experts) Identify a completed software development project Use a code counting tool to count SLOC (Source Lines of Code) in application e.g. 48,500 SLOC or 48.5 KLOC Check how many defects (total) have been logged by the testing team e.g. 900 Defects / KLOC = Defect Density e.g. 900/48.5 = Go on. Do it now and find out if the prediction works on projects in your organization!

So how does this work? Developers typically inject 20 defects for every 1000 lines of code ~6/KLOC will be found in reviews ~6/KLOC will be found in Unit Testing ~2/KLOC will be found in Integration Testing ~ 4/KLOC will be found in System Testing ~1/KLOC will be leaked to customer Customers might or might not find all the defects leaked to them! 20 Defects Code Reviewed Unit Tested Integration Tested System Tested Code Developed 14 Defects 8 Defects 6 Defects 1 Defect

The Chakkilam Crystal Ball Projects with poor code reviews and unit tests had more than 15 defects per KLOC found in the System Testing Phase –How well are you doing in your organization? Projects with code reviews and unit tests found less than 10 defects per KLOC –How well are you doing in your organization? Early warning system to predict testing effort based on code growth of the project Testers know how many more defects are likely to be found based on code size, development team, process followed Improve specific process like static testing, unit testing, integration testing based on data

When will it not work? Small projects – sub 5,000 lines of code Very large projects – more than 500 KLOC Projects with one or two developers –This is an average for a team Package implementation or maintenance projects

Thank You Thank You