SlideShare a Scribd company logo
Software Metrics
• Software metrics can be classified into three
categories −
• Product metrics − Describes the characteristics of
the product such as size, complexity, design
features, performance, and quality level.
• Process metrics − These characteristics can be used
to improve the development and maintenance
activities of the software.
• Project metrics − This metrics describe the project
characteristics and execution. Examples include the
number of software developers, the staffing
pattern over the life cycle of the software, cost,
schedule, and productivity.
Metrics for the Process & Project
domains:
• Project Metrics enable a s/w project manager
to:
• 1.Assess the status of an on going project
• 2.Find the potential risks
• 3.Uncover the problem areas before they go
critical
• 4.adjust work flow and work tasks
• 5.Evaluate the ability of project teams to control
quality of work products.
Software Measurement
Software is measured for many reasons:
• 1. To indicate the quality of the product.
• 2.To assess the benefits derived from new s/w
engineering methods and tools.
• 3.To assess the productivity of the people who
produce the product.
• 4.To form a baseline for estimation.
Measurements in the physical world can be
estimated in two ways:
• 1.Direct Measurement(Ex: Length of Bolt)
• 2.Indirect Measurement(Ex: Quality of the
Bolt produced)
• Direct Measures of the s/w engineering
process include cost of effort, DM of the
product includes lines of code, Execution
Speed, Memory Size and defects reported
etc..
• Indirect Measures of the product include
functionality, quality, complexity, efficiency,
reliability, maintainability etc…
• Software Metrics can be categorized into :
• 1.Size Oriented Metrics
• 2.Functioned Oriented Metrics
• 3.Human Oriented Metrics
Software Metrics (Testing)
Software Metrics (Testing)
Software Metrics (Testing)
Size Oriented Metrics
• Productivity=KLOC/Person-months
• Quality=Defects/KLOC
• Cost=$(000)?KLOC
• Documentation=Pages Per documentation/KLOC
Software Metrics (Testing)
Software Metrics (Testing)
Software Metrics (Testing)
Function Oriented Metrics
• Productivity=FP/Person-month
• Quality=Defects/FP
• Cost=$(000)/FP
• Document=Ppdoc/FP
Software Metrics (Testing)
Software Metrics (Testing)
Software Metrics (Testing)
Software Metrics (Testing)
Example for Cause Effect
• Now let’s try to implement this technique
with some example.
• 1. Draw a cause and effect graph based on a
requirement/situation
2. Cause and Effect graph is given, draw a
decision table based on it to draw the test
case.
• Let’s see both of them one by one.
• The “Print message” is software that read two
characters and, depending on their values,
messages must be printed.
• The first character must be an “A” or a “B”.
• The second character must be a digit.
• If the first character is an “A” or “B” and the
second character is a digit, the file must be
updated.
• If the first character is incorrect (not an “A” or
“B”), the message X must be printed.
• If the second character is incorrect (not a digit),
the message Y must be printed.
• Solution:
• The causes for this situation are:
C1 – First character is A
C2 – First character is B
C3 – the Second character is a digit
• The effects (results) for this situation are
E1 – Update the file
E2 – Print message “X”
E3 – Print message “Y”
First, draw the causes and effects as shown below:
• In this example, let’s start with Effect E1.
• Effect E1 is to update the file. The file is
updated when
– The first character is “A” and the second
character is a digit
– The first character is “B” and the second
character is a digit
– The first character can either be “A” or “B”
and cannot be both.
• Now let’s put these 3 points in symbolic form:
• For E1 to be true – following are the causes:
– C1 and C3 should be true
– C2 and C3 should be true
– C1 and C2 cannot be true together. This
means C1 and C2 are mutually exclusive.
So as per the above diagram, for E1 to be true the condition is
(C1 C2) C3
•The circle in the middle is just an interpretation of the
middle point to make the graph less messy.
There is a third condition where C1 and C2 are mutually
exclusive. So the final graph for effect E1 to be true is
shown below:
• Let’s move to Effect E2:
E2 states to print message “X”. Message X will
be printed when the First character is neither
A nor B.
Which means Effect E2 will hold true when
either C1 OR C2 is invalid. So the graph for
Effect E2 is shown as (In blue line)
• For Effect E3.
E3 states to print message “Y”. Message Y will
be printed when Second character is incorrect.
Which means Effect E3 will hold true when C3
is invalid. So the graph for Effect E3 is shown
as (In Green line).

More Related Content

PPTX
Data and Operators
PPT
Software testing - EXAMPLE
PPTX
data structure & algorithm chapter1.pptx
PDF
CHAPTER II 2.pdfhhhjjjjjjhrrtujiiiuyrrtjj
PPTX
Effort Estimation: Meaning, Problems with Estimation, Basis, Estimation Techn...
PDF
EDA_Assignment_Sourabh S Hubballi.pdf
PPTX
Software project plannings
PPTX
Software project plannings
Data and Operators
Software testing - EXAMPLE
data structure & algorithm chapter1.pptx
CHAPTER II 2.pdfhhhjjjjjjhrrtujiiiuyrrtjj
Effort Estimation: Meaning, Problems with Estimation, Basis, Estimation Techn...
EDA_Assignment_Sourabh S Hubballi.pdf
Software project plannings
Software project plannings

Similar to Software Metrics (Testing) (20)

DOC
Programming in c notes
DOCX
Coursework Assignment Design of a taxi meter .docx
PPT
OOSE Unit 2 PPT.ppt
PPTX
COCOMO Modal In Software Engineering By NADEEM AHMED
PPT
OOSE Unit 2 power point presentation developed by Dr.P.Visu
PPTX
3. Lect 29_ 30_ 32 Project Planning.pptx
PPT
Project Matrix and Measuring S/W
PPT
Managing software project, software engineering
PPTX
intro to differnt oper.pptx
PPTX
Software estimation techniques
PDF
55 sample chapter
PDF
55 sample chapter
PPTX
Software Measurement and Metrics.pptx
PDF
A WEB BASED APPLICATION FOR RESUME PARSER USING NATURAL LANGUAGE PROCESSING T...
PPTX
COCOMO FP COST ESTIMATION TECHNIQUES:NUMERIC
PPTX
COCOMO FP COST ESTIMATION TECHNIQUES:NUMERIC
PPTX
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
PDF
DDI - Assignment 1.pdf hjhjjhhjkh jkhkjhkj hkljhk h
PPTX
Fundamentals of computers - C Programming
Programming in c notes
Coursework Assignment Design of a taxi meter .docx
OOSE Unit 2 PPT.ppt
COCOMO Modal In Software Engineering By NADEEM AHMED
OOSE Unit 2 power point presentation developed by Dr.P.Visu
3. Lect 29_ 30_ 32 Project Planning.pptx
Project Matrix and Measuring S/W
Managing software project, software engineering
intro to differnt oper.pptx
Software estimation techniques
55 sample chapter
55 sample chapter
Software Measurement and Metrics.pptx
A WEB BASED APPLICATION FOR RESUME PARSER USING NATURAL LANGUAGE PROCESSING T...
COCOMO FP COST ESTIMATION TECHNIQUES:NUMERIC
COCOMO FP COST ESTIMATION TECHNIQUES:NUMERIC
SOFTWARE ESTIMATION COCOMO AND FP CALCULATION
DDI - Assignment 1.pdf hjhjjhhjkh jkhkjhkj hkljhk h
Fundamentals of computers - C Programming
Ad

More from TharuniDiddekunta (17)

PDF
String class
PDF
Exception handling basic
PDF
Creating your own exception
PDF
Built in exceptions
PDF
Packages access protection, importing packages
PDF
Interfaces in java
PDF
Inheritance used in java
PDF
Operators, control statements represented in java
PDF
Classes, objects, methods, constructors, this keyword in java
PDF
Arrays in java
PPTX
unit 3 Design 1
PPTX
Unit 4 testing
PPTX
risk managment and quality
PPTX
PPT
Network layer
PPTX
Transport layer and Application layer
PPT
Congection control and Internet working
String class
Exception handling basic
Creating your own exception
Built in exceptions
Packages access protection, importing packages
Interfaces in java
Inheritance used in java
Operators, control statements represented in java
Classes, objects, methods, constructors, this keyword in java
Arrays in java
unit 3 Design 1
Unit 4 testing
risk managment and quality
Network layer
Transport layer and Application layer
Congection control and Internet working
Ad

Recently uploaded (20)

PPTX
Lesson notes of climatology university.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Complications of Minimal Access Surgery at WLH
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
master seminar digital applications in india
PDF
Sports Quiz easy sports quiz sports quiz
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Institutional Correction lecture only . . .
Lesson notes of climatology university.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Basic Mud Logging Guide for educational purpose
Final Presentation General Medicine 03-08-2024.pptx
Renaissance Architecture: A Journey from Faith to Humanism
Complications of Minimal Access Surgery at WLH
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
master seminar digital applications in india
Sports Quiz easy sports quiz sports quiz
O5-L3 Freight Transport Ops (International) V1.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
O7-L3 Supply Chain Operations - ICLT Program
TR - Agricultural Crops Production NC III.pdf
PPH.pptx obstetrics and gynecology in nursing
Institutional Correction lecture only . . .

Software Metrics (Testing)

  • 2. • Software metrics can be classified into three categories − • Product metrics − Describes the characteristics of the product such as size, complexity, design features, performance, and quality level. • Process metrics − These characteristics can be used to improve the development and maintenance activities of the software. • Project metrics − This metrics describe the project characteristics and execution. Examples include the number of software developers, the staffing pattern over the life cycle of the software, cost, schedule, and productivity.
  • 3. Metrics for the Process & Project domains: • Project Metrics enable a s/w project manager to: • 1.Assess the status of an on going project • 2.Find the potential risks • 3.Uncover the problem areas before they go critical • 4.adjust work flow and work tasks • 5.Evaluate the ability of project teams to control quality of work products.
  • 4. Software Measurement Software is measured for many reasons: • 1. To indicate the quality of the product. • 2.To assess the benefits derived from new s/w engineering methods and tools. • 3.To assess the productivity of the people who produce the product. • 4.To form a baseline for estimation.
  • 5. Measurements in the physical world can be estimated in two ways: • 1.Direct Measurement(Ex: Length of Bolt) • 2.Indirect Measurement(Ex: Quality of the Bolt produced) • Direct Measures of the s/w engineering process include cost of effort, DM of the product includes lines of code, Execution Speed, Memory Size and defects reported etc..
  • 6. • Indirect Measures of the product include functionality, quality, complexity, efficiency, reliability, maintainability etc… • Software Metrics can be categorized into : • 1.Size Oriented Metrics • 2.Functioned Oriented Metrics • 3.Human Oriented Metrics
  • 10. Size Oriented Metrics • Productivity=KLOC/Person-months • Quality=Defects/KLOC • Cost=$(000)?KLOC • Documentation=Pages Per documentation/KLOC
  • 14. Function Oriented Metrics • Productivity=FP/Person-month • Quality=Defects/FP • Cost=$(000)/FP • Document=Ppdoc/FP
  • 20. • Now let’s try to implement this technique with some example. • 1. Draw a cause and effect graph based on a requirement/situation 2. Cause and Effect graph is given, draw a decision table based on it to draw the test case. • Let’s see both of them one by one.
  • 21. • The “Print message” is software that read two characters and, depending on their values, messages must be printed. • The first character must be an “A” or a “B”. • The second character must be a digit. • If the first character is an “A” or “B” and the second character is a digit, the file must be updated. • If the first character is incorrect (not an “A” or “B”), the message X must be printed. • If the second character is incorrect (not a digit), the message Y must be printed.
  • 22. • Solution: • The causes for this situation are: C1 – First character is A C2 – First character is B C3 – the Second character is a digit • The effects (results) for this situation are E1 – Update the file E2 – Print message “X” E3 – Print message “Y”
  • 23. First, draw the causes and effects as shown below:
  • 24. • In this example, let’s start with Effect E1. • Effect E1 is to update the file. The file is updated when – The first character is “A” and the second character is a digit – The first character is “B” and the second character is a digit – The first character can either be “A” or “B” and cannot be both.
  • 25. • Now let’s put these 3 points in symbolic form: • For E1 to be true – following are the causes: – C1 and C3 should be true – C2 and C3 should be true – C1 and C2 cannot be true together. This means C1 and C2 are mutually exclusive.
  • 26. So as per the above diagram, for E1 to be true the condition is (C1 C2) C3
  • 27. •The circle in the middle is just an interpretation of the middle point to make the graph less messy. There is a third condition where C1 and C2 are mutually exclusive. So the final graph for effect E1 to be true is shown below:
  • 28. • Let’s move to Effect E2: E2 states to print message “X”. Message X will be printed when the First character is neither A nor B. Which means Effect E2 will hold true when either C1 OR C2 is invalid. So the graph for Effect E2 is shown as (In blue line)
  • 29. • For Effect E3. E3 states to print message “Y”. Message Y will be printed when Second character is incorrect. Which means Effect E3 will hold true when C3 is invalid. So the graph for Effect E3 is shown as (In Green line).