Presentation is loading. Please wait.

Presentation is loading. Please wait.

These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.

Similar presentations


Presentation on theme: "These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by."— Presentation transcript:

1 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 1 Software Engineering: A Practitioner’s Approach, 6/e Chapter 22 Process and Project Metrics Software Engineering: A Practitioner’s Approach, 6/e Chapter 22 Process and Project Metrics copyright © 1996, 2001, 2005 R.S. Pressman & Associates, Inc. For University Use Only May be reproduced ONLY for student use at the university level when used in conjunction with Software Engineering: A Practitioner's Approach. Any other reproduction or use is expressly prohibited.

2 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 2 Software Process and Project Metrics A quantitative measures that enable software people to gain insight into the efficiency of the software project A quantitative measures that enable software people to gain insight into the efficiency of the software project Data are collected and analyzed, compared against past averages, and assessed to determine whether quality or productivity improvements have occurred Data are collected and analyzed, compared against past averages, and assessed to determine whether quality or productivity improvements have occurred Metrics are also used to pinpoint problem areas so that remedies can be developed and the software process can be improved Metrics are also used to pinpoint problem areas so that remedies can be developed and the software process can be improved

3 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 3 Measurement & Metrics... collecting metrics is too hard... it's too time-consuming... it's too political... it won't prove anything... Anything that you need to quantify can be measured in some way that is superior to not measuring it at all.. Tom Gilb 1988

4 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 4 A Good Manager Measures measurement What do we use as a basis? size? size? function? function? project metrics process metrics process product product metrics

5 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 5 Why Do We Measure? assess the status of an ongoing project track potential risks uncover problem areas before they go “critical,” adjust work flow or tasks, evaluate the project team’s ability to control quality of software work products.

6 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 6 Process Measurement We measure the efficacy of a software process indirectly. That is, we derive a set of metrics based on the outcomes that can be derived from the process. We measure the efficacy of a software process indirectly. That is, we derive a set of metrics based on the outcomes that can be derived from the process. measures of errors uncovered before release of the software measures of errors uncovered before release of the software defects delivered to and reported by end-users defects delivered to and reported by end-users work products delivered (productivity) work products delivered (productivity) human effort expended human effort expended calendar time expended calendar time expended schedule conformance schedule conformance other measures other measures We also derive process metrics by measuring the characteristics of specific software engineering tasks. We also derive process metrics by measuring the characteristics of specific software engineering tasks.

7 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 7 Process Metrics Guidelines Use common sense and organizational sensitivity when interpreting metrics data. Use common sense and organizational sensitivity when interpreting metrics data. Provide regular feedback to the individuals and teams who collect measures and metrics. Provide regular feedback to the individuals and teams who collect measures and metrics. Don’t use metrics to appraise individuals. Don’t use metrics to appraise individuals. Work with practitioners and teams to set clear goals and metrics that will be used to achieve them. Work with practitioners and teams to set clear goals and metrics that will be used to achieve them. Never use metrics to threaten individuals or teams. Never use metrics to threaten individuals or teams. Metrics data that indicate a problem area should not be considered “negative.” These data are merely an indicator for process improvement. Metrics data that indicate a problem area should not be considered “negative.” These data are merely an indicator for process improvement. Don’t obsess on a single metric to the exclusion of other important metrics. Don’t obsess on a single metric to the exclusion of other important metrics.

8 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 8 Software Process Improvement SPI Process model Improvement goals Process metrics Process improvement recommendations

9 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 9 Process Metrics Quality-related: focus on quality of work products and deliverables Quality-related: focus on quality of work products and deliverables Productivity-related: production of work-products related to effort expended Productivity-related: production of work-products related to effort expended Statistical SQA data: error categorization & analysis Statistical SQA data: error categorization & analysis Defect removal efficiency: propagation of errors from process activity to activity Defect removal efficiency: propagation of errors from process activity to activity Reuse data: the number of components produced and their degree of reusability Reuse data: the number of components produced and their degree of reusability

10 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 10 Project Metrics used to minimize the development schedule by making the adjustments necessary to avoid delays and mitigate potential problems and risks used to minimize the development schedule by making the adjustments necessary to avoid delays and mitigate potential problems and risks used to assess product quality on an ongoing basis and, when necessary, modify the technical approach to improve quality. used to assess product quality on an ongoing basis and, when necessary, modify the technical approach to improve quality. every project should measure: every project should measure: inputs—measures of the resources (e.g., people, tools) required to do the work. inputs—measures of the resources (e.g., people, tools) required to do the work. outputs—measures of the deliverables or work products created during the software engineering process. outputs—measures of the deliverables or work products created during the software engineering process. results—measures that indicate the effectiveness of the deliverables. results—measures that indicate the effectiveness of the deliverables.

11 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 11 Typical Project Metrics Effort / time per software engineering task Effort / time per software engineering task Errors uncovered per review hour Errors uncovered per review hour Scheduled vs. actual milestone dates Scheduled vs. actual milestone dates Changes (number) and their characteristics Changes (number) and their characteristics Distribution of effort on software engineering tasks Distribution of effort on software engineering tasks

12 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 12 Typical Size-Oriented Metrics errors per KLOC (thousand lines of code) errors per KLOC (thousand lines of code) defects per KLOC defects per KLOC $ per LOC $ per LOC pages of documentation per KLOC pages of documentation per KLOC errors per person-month errors per person-month Errors per review hour Errors per review hour LOC per person-month LOC per person-month $ per page of documentation $ per page of documentation

13 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 13 Typical Function-Oriented Metrics errors per FP (thousand lines of code) errors per FP (thousand lines of code) defects per FP defects per FP $ per FP $ per FP pages of documentation per FP pages of documentation per FP FP per person-month FP per person-month

14 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 14 Comparing LOC and FP Representative values developed by QSM Programming Language LOC per Function Point Avg.MedianLowHigh Ada154-104205 Assembler33731591694 C16210933704 C++665329178 COBOL77 14400 Java635377- JavaScript58634275 Perl60--- PL/1786722263 Powerbuilder323111105 SAS40413349 Smalltalk26191055 SQL40377110 Visual Basic474216158 Representative values developed by QSM 2002

15 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 15 Why Opt for FP? Programming language independent Programming language independent Used readily countable characteristics that are determined early in the software process Used readily countable characteristics that are determined early in the software process Does not “penalize” inventive (short) implementations that use fewer LOC that other more clumsy versions Does not “penalize” inventive (short) implementations that use fewer LOC that other more clumsy versions Makes it easier to measure the impact of reusable components Makes it easier to measure the impact of reusable components

16 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 16 Object-Oriented Metrics Number of scenario scripts (use-cases) Number of scenario scripts (use-cases) Number of support classes ( Number of support classes (required to implement the system but are not immediately related to the problem domain) Average number of support classes per key class (analysis class) Number of subsystems (an aggregation of classes that support a function that is visible to the end-user of a system)

17 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 17 WebE Project Metrics Number of static Web pages (the end-user has no control over the content displayed on the page) Number of dynamic Web pages (end-user actions result in customized content displayed on the page) Number of internal page links (internal page links are pointers that provide a hyperlink to some other Web page within the WebApp) Number of persistent data objects Number of external systems interfaced Number of static content objects Number of dynamic content objects Number of executable functions

18 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 18 Measuring Quality Correctness — the degree to which a program operates according to specification Correctness — the degree to which a program operates according to specification Maintainability—the degree to which a program is amenable to change Maintainability—the degree to which a program is amenable to change Integrity—the degree to which a program is impervious to outside attack Integrity—the degree to which a program is impervious to outside attack Usability—the degree to which a program is easy to use Usability—the degree to which a program is easy to use

19 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 19 Defect Removal Efficiency DRE = E /(E + D)  E is the number of errors found before delivery of the software to the end-user  D is the number of defects found after delivery.

20 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 20 Metrics for Small Organizations time (hours or days) elapsed from the time a request is made until evaluation is complete, t queue effort (person-hours) to perform the evaluation, W eval time (hours or days) elapsed from completion of evaluation to assignment of change order to personnel, t eval effort (person-hours) required to make the change, W change time required (hours or days) to make the change, t change errors uncovered during work to make change, E change defects uncovered after change is released to the customer base, D change

21 These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by R.S. Pressman & Associates, Inc., copyright © 1996, 2001, 2005 21 Establishing a Metrics Program Identify your business goals. Identify what you want to know or learn. Identify your subgoals. Identify the entities and attributes related to your subgoals. Formalize your measurement goals. Identify quantifiable questions and the related indicators that you will use to help you achieve your measurement goals. Identify the data elements that you will collect to construct the indicators that help answer your questions. Define the measures to be used, and make these definitions operational. Identify the actions that you will take to implement the measures. Prepare a plan for implementing the measures.


Download ppt "These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by."

Similar presentations


Ads by Google