1 / 22

Software Quality Measurement and Metrics

Software Quality Assurance. Software Quality Measurement and Metrics. Outline. Basic Terminologies Project Indicators Classification of Software Metrics Software Quality Metrics Software Defects Classification. Software Metrics.

frisco
Download Presentation

Software Quality Measurement and Metrics

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Software Quality Assurance Software Quality Measurement and Metrics

  2. Outline • Basic Terminologies • Project Indicators • Classification of Software Metrics • Software Quality Metrics • Software Defects Classification Software Quality Measurement and Metrics

  3. Software Metrics “Software Metrics let you know when to laugh and when to cry” (Tom Glib) Software Quality Measurement and Metrics

  4. Basic Terminologies • Measure – a quantitative indication of some attribute of a product or process. For example, 5 errors, 1200 LOC etc • Measurement – the act of determining a measure. • Metric – a quantitative measure of the degree to which a product or process possesses a given attribute. For example, 5 defects / KLOC. Metric is, basically, a ratio of two related measures. Software Quality Measurement and Metrics

  5. Why Measurement ? • There are four reasons for measuring software processes, products and resources: • To Characterize • To Evaluate • To Predict • To Improve Software Quality Measurement and Metrics

  6. Types of Measurements • Direct Measures • Easily and directly measurable. For example, LOC, Effort, Cost etc. • Indirect Measures • Not easy to measure. • Indirectly measured from direct measures etc. • For example, complexity, quality etc. Software Quality Measurement and Metrics

  7. Indicators • Indicator – is a metric or combination of metrics that provide insight into the software process, product or project. For example, two teams using two different review approaches give an indicator of the better approach. • Indicators are of two types: • Process Indicators • Project Indicators Software Quality Measurement and Metrics

  8. Indicators • Process Indicators • Used to gain the insight into the efficacy of the existing process. • These are collected across all projects and over a long periods of time. • Project Indicators • Used to asses the status of the project. • Track potential risks. • Uncover problems areas before they occur. • Adjust the work flow and tasks accordingly. • Evaluate project’s team ability to control software quality. • For example, EVA etc. Software Quality Measurement and Metrics

  9. Classification of Metrics Software Quality Measurement and Metrics

  10. Quality Metrics • Provide indicators to improve the quality of the product. • There are many quality attributes such as maintainability, usability, integrity and correctness etc. (see McCall’s Quality Model) Software Quality Measurement and Metrics

  11. Mean Time to Failure a= Mean Time to Failure + Mean Time to Repair Availability • Availability is concerned with system failure and its associated consequences. • The availability of a system is the probability that it will be operational when it is needed. This is typically defined as: • From this come terms like 99.9% availability, or a 0.1% probability that the system will not be operational when needed. Software Quality Measurement and Metrics

  12. Maintainability • Maintainability is the degree of easiness with which a program can be corrected if an error is encountered or changed if user requirement changed. • Mean Time To Change (MTTC) is the indirect measure to measure the maintainability. • MTTC is the mean time to fulfill a change request. • Lower MTTC means high maintainability. Software Quality Measurement and Metrics

  13. No. of Defects reported by the user DD= Size of the program in KLOC Correctness • Correctness is the degree to which the software performs its required function. • A common way to measure the correctness is Defect Density (DD) Software Quality Measurement and Metrics

  14. Usability • Usability is concerned with how easy it is for the user to accomplish a desired task and the kind of user support the system provides. • It be broken down into: • Learning system features • Using a system efficiently • Minimizing the impact of errors • Adapting the system to user needs • Increasing confidence and satisfaction Software Quality Measurement and Metrics

  15. Integrity • Ability of the system to withstand attacks on its security. • Integrity is measured in terms of threat and security. • Threat – probability that an attack of specific type will occur within a given time. • Security – probability thatan attack of specific type will be repelled. . Integrity = ∑ [ (1- threat) * (1 – security) ] Software Quality Measurement and Metrics

  16. Performance • Performance is concerned with how long it takes the system to respond when an event occurs. • The response of the system to an event can be characterized by: • Latency = response time – event occurrence time. • Throughput = the number of transactions the system can process in a second . • The Jitter of Response = the variation in latency • The number of events not processed because the system was too busy to respond Software Quality Measurement and Metrics

  17. Software Quality Assurance Defects Classification

  18. Defects Classification • Error • Errors are human mistakes. • For example, spell mistakes or syntactic errors etc. • Defects • Defects are improper program conditions that generally results from errors, but not always. • For example, documentation errors do no result in defects. And • Incorrect Packaging or exception handling Software Quality Measurement and Metrics

  19. Defects Classification • Bugs / Fault • It is a program defect that is encountered in operation (alpha testing, beta testing or software operation) • All defects do not cause bugs. • For example, Y2K • Failure • A failure is a malfunction of user’s installation. • It may result from a • Bug • Incorrect installation • Communication line hit • Hardware failure etc. Software Quality Measurement and Metrics

  20. Defects Classification • Problems • Problems are user encountered difficulties. • Problems are human events whereas Failures are system events. • A problem may result from: • Failure • Misuse • misunderstandings Software Quality Measurement and Metrics

  21. Software Quality Assurance Feel free to ask! Thanks!

  22. Software Quality Assurance Software Quality Measurement and Metrics

More Related