SlideShare a Scribd company logo
1 of 10
Software Testing
Metrics
By David O’ Connor
What are Software Testing Metrics?
 The definition of a Metric as stated by SoftwareTestingHelp. (2013) is a
quantitative measure of the degree to which a system, system component, or
process possesses a given attribute. Metrics is defined as Standards of
Measurements.
 SoftwareTestingHelp. (2013) states that software metrics are used to measure
the overall quality of the software project. In simply terms metric is a unit
used for describing an attribute, and is a scale for measurement.
 Definition of Software Metrics given by Paul Goodman: - Software Metrics is
a Measurement Based Technique which is applied to processes, products and
services to supply engineering and management information and working on
the information supplied to improve processes, products and services, if
required.
Importance of Metrics
The importance of software testing metrics are stated below taken from Lokesh
Gulechha. (2009):
 Metrics is used to improve the quality and productivity of products and
services and therefore will lead to achieving User Satisfaction.
 Metrics makes it easy for software management to digest one number and
drill down, if required.
 Different Metric(s) trend act as monitor when the process is going out-of-
control.
 Metrics provides improvement for current process.
Defect Density Metric
 Defect Density is defined as stated by STF. (2010) as the number of confirmed
defects which have been detected by the software tester in the particular
software/component during a defined period of the development or operation
divided by the overall size of the software application or component.
The ‘defects’ are:
 Confirmed and agreed upon by the software testers and are not just reported.
 Any defects which are dropped during the process are not counted.
The period can be defined as one of the following:
 For a time over a duration for example such as the first month, the quarter,
or even the year.
 For each phase of the life cycle of the software.
 For the overall life cycle of the software.
Defect Density Metric continued
 The size can be measured in either Function Points (FP) or by Source Lines of
Code.
 The number of errors found in test cases versus test cases developed and
executed
 (Deflective Test cases/Total Test cases) * 100
 Example: The total number of test cases developed is 1250, total test cases
executed is 1150, total number of test cases passed is 1065, and total number
of scripts failed is 190.
 So Test case Deflect Density is: (190x100)/1150 = 16.5%
 This 16.5% can therefore be called a Test Case Efficiency % which depends
upon the total number of Test cases which were found to be deflective.
 The Defect Density metric is used by testers for comparing the number of
relative defects in the various aspects of software components so that these
high-risk components can be easily identified and the main resources can
therefore be focused towards on these deflects.
 The Defect Density Metric should be gathered by the software tester because
it gives a total percentage of the defective parts in the overall software
component and therefore resources can therefore focus on the critical
deflective parts of the component.
Requirement Volatility Metric
 The requirement volatility of software testing has a marked effect on the
overall deliverables of any software product development effort.
 There the requirement volatility metric as stated by P.M.Venkatesh Babu.
(2009) is in place to ensure that the requirements of the software procedure
are normalized or defined properly while estimating the total number of
requirements agreed versus the number of requirements that were changed.
 The Requirement Volatility Metric formula is defined as the following:
 (Number of requirements Added + Deleted + Modified) * 100 / No of original
requirements
 An example of this formula being used as demonstrated by P.M.Venkatesh
Babu. (2009): SVN 1.3 release has 67 requirements initially, later 7 new
requirements are added, 3 requirements are deleted from initial
requirements and modified 11 requirements
 Hence Requirement volatility is calculated as:
(7 + 3 + 11) X 100 / 67 = 31.34 %
 P.M.Venkatesh Babu. (2009) stated that this result means that almost 1/3 of
the requirements changed after the initial identification of requirements.
Requirement Volatility Metric
continued
 Requirements metrics such as the requirement volatility metric, traceability,
size and completeness are used by software testers in order to accurately
measure requirements engineering phase of software development so that
this will therefore give the software tester a clear indication of how the
product is performing under the various tests being carried out during the
testing phase in order to ensure the end product is up to the specifications
set out by the client and therefore this metric should be gathered to ensure
requirements are up to standard.
Test Execution Productivity (TEP)
 The Test Execution Productivity metric as stated by Lokesh Gulechha. (2009)
gives the test cases execution productivity which on further analysis can give
conclusive result.
 Test Execution Productivity =
 ((Total No. of TC executed (Te)/Execution Efforts (hours))*8))
Execution(s)/Day
 Where Te is calculated as,
Te = Base Test Case + ((T(0.33)*0.33)+(T(0.66)*0.66)+(T(1)*1))
 Where,
Base Test Case = No. of TC executed at least once.
T (1) = No. of TC Retested with 71% to 100% of Total TC steps
T (0.66) = No. of TC Retested with 41% to 70% of Total TC steps
T (0.33) = No. of TC Retested with 1% to 40% of Total TC steps
Test Efficiency (TE)
 The Test Efficiency metric as stated by Lokesh Gulechha. (2009) is performed to
determine the overall efficiency of the software testing team in identifying the
defective components of the software.
 The Test Efficiency metric is also used to indicate the number of defects which
were missed out during testing phase and which migrated to the next testing
phase.
 The Test Efficiency of the testing process is calculated by the following formula:
Test Efficiency = DT/(DT+DU)*100%
 Where,
DT = The overall number of valid defects identified during the testing process.
DU = The number of valid defects which have been identified by test user after
the release of software application. In other words, post-testing defect
 The Test Efficiency metric should be gathered by the software tester because it
gives a total percentage of the defective parts which were missed by the tester in
the testing process for the software component and therefore this process will
lead to better efficiency by the software tester when testing future software
components.
References
 Lokesh Gulechha. (2009). Software Testing Metrics. Software Testing Metrics.
1 (1), 7-8.
 P.M.Venkatesh Babu. (2009). Software Testing Metrics. Available:
http://www.slideshare.net/pmvenkateshbabu/testing-metrics. Last accessed
20th April 2015.
 SoftwareTestingHelp. (2013). Important Software Test Metrics and
Measurements – Explained with Examples and Graphs. Available:
http://www.softwaretestinghelp.com/software-test-metrics-and-
measurements/. Last accessed 09th Apr 2015.
 STF. (2010). Defect Density Fundamentals. Available:
http://softwaretestingfundamentals.com/defect-density/. Last accessed 18th
April 2015.

More Related Content

What's hot

Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
suhasreddy1
 
How to Design a Successful Test Automation Strategy
How to Design a Successful Test Automation Strategy How to Design a Successful Test Automation Strategy
How to Design a Successful Test Automation Strategy
Impetus Technologies
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
Raghu Kiran
 

What's hot (20)

Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
Bug reporting and tracking
Bug reporting and trackingBug reporting and tracking
Bug reporting and tracking
 
Bug life cycle
Bug life cycleBug life cycle
Bug life cycle
 
Regression testing
Regression testingRegression testing
Regression testing
 
Software test life cycle
Software test life cycleSoftware test life cycle
Software test life cycle
 
STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)STLC (Software Testing Life Cycle)
STLC (Software Testing Life Cycle)
 
What is Test Plan? Edureka
What is Test Plan? EdurekaWhat is Test Plan? Edureka
What is Test Plan? Edureka
 
Unit testing
Unit testing Unit testing
Unit testing
 
Integration testing
Integration testingIntegration testing
Integration testing
 
Manual testing
Manual testingManual testing
Manual testing
 
How to Design a Successful Test Automation Strategy
How to Design a Successful Test Automation Strategy How to Design a Successful Test Automation Strategy
How to Design a Successful Test Automation Strategy
 
Software Testing Basics
Software Testing BasicsSoftware Testing Basics
Software Testing Basics
 
Manual testing concepts course 1
Manual testing concepts course 1Manual testing concepts course 1
Manual testing concepts course 1
 
Automated Testing vs Manual Testing
Automated Testing vs Manual TestingAutomated Testing vs Manual Testing
Automated Testing vs Manual Testing
 
Software testing
Software testingSoftware testing
Software testing
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
Software Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing TrendsSoftware Testing Process, Testing Automation and Software Testing Trends
Software Testing Process, Testing Automation and Software Testing Trends
 

Viewers also liked

Testing metrics
Testing metricsTesting metrics
Testing metrics
prats12345
 
HCLT Whitepaper: Landmines of Software Testing Metrics
HCLT Whitepaper: Landmines of Software Testing MetricsHCLT Whitepaper: Landmines of Software Testing Metrics
HCLT Whitepaper: Landmines of Software Testing Metrics
HCL Technologies
 
Quality Assurance Comparison in Traditional and Agile Methodologies
Quality Assurance Comparison in Traditional and Agile MethodologiesQuality Assurance Comparison in Traditional and Agile Methodologies
Quality Assurance Comparison in Traditional and Agile Methodologies
coolbreeze130
 

Viewers also liked (20)

Unit 8 software quality and matrices
Unit 8 software quality and matricesUnit 8 software quality and matrices
Unit 8 software quality and matrices
 
13 software metrics
13 software metrics13 software metrics
13 software metrics
 
Using Productivity Metrics
Using Productivity MetricsUsing Productivity Metrics
Using Productivity Metrics
 
Metrics Sirisha
Metrics  SirishaMetrics  Sirisha
Metrics Sirisha
 
Testing metrics
Testing metricsTesting metrics
Testing metrics
 
HCLT Whitepaper: Landmines of Software Testing Metrics
HCLT Whitepaper: Landmines of Software Testing MetricsHCLT Whitepaper: Landmines of Software Testing Metrics
HCLT Whitepaper: Landmines of Software Testing Metrics
 
Critical Analysis of SW Development tool/methodology
Critical Analysis of SW Development tool/methodologyCritical Analysis of SW Development tool/methodology
Critical Analysis of SW Development tool/methodology
 
Software Development Life Cycle: Traditional and Agile- A Comparative Study
Software Development Life Cycle: Traditional and Agile- A Comparative StudySoftware Development Life Cycle: Traditional and Agile- A Comparative Study
Software Development Life Cycle: Traditional and Agile- A Comparative Study
 
Golf Management System
Golf Management SystemGolf Management System
Golf Management System
 
Data modelling
Data modellingData modelling
Data modelling
 
Chapter01
Chapter01Chapter01
Chapter01
 
Unit iv-testing-pune-university-sres-coe
Unit iv-testing-pune-university-sres-coeUnit iv-testing-pune-university-sres-coe
Unit iv-testing-pune-university-sres-coe
 
Banking System Presentation - David O' Connor
Banking System Presentation - David O' ConnorBanking System Presentation - David O' Connor
Banking System Presentation - David O' Connor
 
Quality Assurance Comparison in Traditional and Agile Methodologies
Quality Assurance Comparison in Traditional and Agile MethodologiesQuality Assurance Comparison in Traditional and Agile Methodologies
Quality Assurance Comparison in Traditional and Agile Methodologies
 
Automated testing web application
Automated testing web applicationAutomated testing web application
Automated testing web application
 
Testing Metrics and why Managers like them
Testing Metrics and why Managers like themTesting Metrics and why Managers like them
Testing Metrics and why Managers like them
 
software project management Assumption about conventional model
software project management Assumption about conventional modelsoftware project management Assumption about conventional model
software project management Assumption about conventional model
 
Usability evaluation of the RunKeeper Application
Usability evaluation of the RunKeeper Application Usability evaluation of the RunKeeper Application
Usability evaluation of the RunKeeper Application
 
Web Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional SoftwareWeb Engineering - Web Applications versus Conventional Software
Web Engineering - Web Applications versus Conventional Software
 
Software Testing Metrics with qTest Insights - QASymphony Webinar
Software Testing Metrics with qTest Insights  - QASymphony WebinarSoftware Testing Metrics with qTest Insights  - QASymphony Webinar
Software Testing Metrics with qTest Insights - QASymphony Webinar
 

Similar to Software testing metrics

Learn software testing with tech partnerz 2
Learn software testing with tech partnerz 2Learn software testing with tech partnerz 2
Learn software testing with tech partnerz 2
Techpartnerz
 
softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1
FAIZALSAIYED
 

Similar to Software testing metrics (20)

Sw quality metrics
Sw quality metricsSw quality metrics
Sw quality metrics
 
SE-Lecture-7.pptx
SE-Lecture-7.pptxSE-Lecture-7.pptx
SE-Lecture-7.pptx
 
Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)Test case-point-analysis (whitepaper)
Test case-point-analysis (whitepaper)
 
What is Test Matrix?
What is Test Matrix?What is Test Matrix?
What is Test Matrix?
 
Basic Guide to Manual Testing
Basic Guide to Manual TestingBasic Guide to Manual Testing
Basic Guide to Manual Testing
 
QACampus PPT (STLC)
QACampus PPT (STLC)QACampus PPT (STLC)
QACampus PPT (STLC)
 
Smef2008 Van Heeringen Outsourcing Testing Activities – How To Prove Cost R...
Smef2008 Van Heeringen   Outsourcing Testing Activities – How To Prove Cost R...Smef2008 Van Heeringen   Outsourcing Testing Activities – How To Prove Cost R...
Smef2008 Van Heeringen Outsourcing Testing Activities – How To Prove Cost R...
 
Lecture3
Lecture3Lecture3
Lecture3
 
Testing software development
Testing software developmentTesting software development
Testing software development
 
Software Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s GuideSoftware Testing Life Cycle – A Beginner’s Guide
Software Testing Life Cycle – A Beginner’s Guide
 
software testing aplikasi
software testing aplikasisoftware testing aplikasi
software testing aplikasi
 
What is (tcoe) testing center of excellence
What is (tcoe) testing center of excellenceWhat is (tcoe) testing center of excellence
What is (tcoe) testing center of excellence
 
Software testing basic
Software testing basicSoftware testing basic
Software testing basic
 
Learn software testing with tech partnerz 2
Learn software testing with tech partnerz 2Learn software testing with tech partnerz 2
Learn software testing with tech partnerz 2
 
softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1softwaretestingppt-FINAL-PPT-1
softwaretestingppt-FINAL-PPT-1
 
Software Testing Concepts
Software Testing  ConceptsSoftware Testing  Concepts
Software Testing Concepts
 
Istqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparationIstqb intro with question answer for exam preparation
Istqb intro with question answer for exam preparation
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
Principles and Goals of Software Testing
Principles and Goals of Software Testing Principles and Goals of Software Testing
Principles and Goals of Software Testing
 
11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot11 steps of testing process - By Harshil Barot
11 steps of testing process - By Harshil Barot
 

Recently uploaded

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Recently uploaded (20)

%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
%in Hazyview+277-882-255-28 abortion pills for sale in Hazyview
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban%in Durban+277-882-255-28 abortion pills for sale in Durban
%in Durban+277-882-255-28 abortion pills for sale in Durban
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 

Software testing metrics

  • 2. What are Software Testing Metrics?  The definition of a Metric as stated by SoftwareTestingHelp. (2013) is a quantitative measure of the degree to which a system, system component, or process possesses a given attribute. Metrics is defined as Standards of Measurements.  SoftwareTestingHelp. (2013) states that software metrics are used to measure the overall quality of the software project. In simply terms metric is a unit used for describing an attribute, and is a scale for measurement.  Definition of Software Metrics given by Paul Goodman: - Software Metrics is a Measurement Based Technique which is applied to processes, products and services to supply engineering and management information and working on the information supplied to improve processes, products and services, if required.
  • 3. Importance of Metrics The importance of software testing metrics are stated below taken from Lokesh Gulechha. (2009):  Metrics is used to improve the quality and productivity of products and services and therefore will lead to achieving User Satisfaction.  Metrics makes it easy for software management to digest one number and drill down, if required.  Different Metric(s) trend act as monitor when the process is going out-of- control.  Metrics provides improvement for current process.
  • 4. Defect Density Metric  Defect Density is defined as stated by STF. (2010) as the number of confirmed defects which have been detected by the software tester in the particular software/component during a defined period of the development or operation divided by the overall size of the software application or component. The ‘defects’ are:  Confirmed and agreed upon by the software testers and are not just reported.  Any defects which are dropped during the process are not counted. The period can be defined as one of the following:  For a time over a duration for example such as the first month, the quarter, or even the year.  For each phase of the life cycle of the software.  For the overall life cycle of the software.
  • 5. Defect Density Metric continued  The size can be measured in either Function Points (FP) or by Source Lines of Code.  The number of errors found in test cases versus test cases developed and executed  (Deflective Test cases/Total Test cases) * 100  Example: The total number of test cases developed is 1250, total test cases executed is 1150, total number of test cases passed is 1065, and total number of scripts failed is 190.  So Test case Deflect Density is: (190x100)/1150 = 16.5%  This 16.5% can therefore be called a Test Case Efficiency % which depends upon the total number of Test cases which were found to be deflective.  The Defect Density metric is used by testers for comparing the number of relative defects in the various aspects of software components so that these high-risk components can be easily identified and the main resources can therefore be focused towards on these deflects.  The Defect Density Metric should be gathered by the software tester because it gives a total percentage of the defective parts in the overall software component and therefore resources can therefore focus on the critical deflective parts of the component.
  • 6. Requirement Volatility Metric  The requirement volatility of software testing has a marked effect on the overall deliverables of any software product development effort.  There the requirement volatility metric as stated by P.M.Venkatesh Babu. (2009) is in place to ensure that the requirements of the software procedure are normalized or defined properly while estimating the total number of requirements agreed versus the number of requirements that were changed.  The Requirement Volatility Metric formula is defined as the following:  (Number of requirements Added + Deleted + Modified) * 100 / No of original requirements  An example of this formula being used as demonstrated by P.M.Venkatesh Babu. (2009): SVN 1.3 release has 67 requirements initially, later 7 new requirements are added, 3 requirements are deleted from initial requirements and modified 11 requirements  Hence Requirement volatility is calculated as: (7 + 3 + 11) X 100 / 67 = 31.34 %  P.M.Venkatesh Babu. (2009) stated that this result means that almost 1/3 of the requirements changed after the initial identification of requirements.
  • 7. Requirement Volatility Metric continued  Requirements metrics such as the requirement volatility metric, traceability, size and completeness are used by software testers in order to accurately measure requirements engineering phase of software development so that this will therefore give the software tester a clear indication of how the product is performing under the various tests being carried out during the testing phase in order to ensure the end product is up to the specifications set out by the client and therefore this metric should be gathered to ensure requirements are up to standard.
  • 8. Test Execution Productivity (TEP)  The Test Execution Productivity metric as stated by Lokesh Gulechha. (2009) gives the test cases execution productivity which on further analysis can give conclusive result.  Test Execution Productivity =  ((Total No. of TC executed (Te)/Execution Efforts (hours))*8)) Execution(s)/Day  Where Te is calculated as, Te = Base Test Case + ((T(0.33)*0.33)+(T(0.66)*0.66)+(T(1)*1))  Where, Base Test Case = No. of TC executed at least once. T (1) = No. of TC Retested with 71% to 100% of Total TC steps T (0.66) = No. of TC Retested with 41% to 70% of Total TC steps T (0.33) = No. of TC Retested with 1% to 40% of Total TC steps
  • 9. Test Efficiency (TE)  The Test Efficiency metric as stated by Lokesh Gulechha. (2009) is performed to determine the overall efficiency of the software testing team in identifying the defective components of the software.  The Test Efficiency metric is also used to indicate the number of defects which were missed out during testing phase and which migrated to the next testing phase.  The Test Efficiency of the testing process is calculated by the following formula: Test Efficiency = DT/(DT+DU)*100%  Where, DT = The overall number of valid defects identified during the testing process. DU = The number of valid defects which have been identified by test user after the release of software application. In other words, post-testing defect  The Test Efficiency metric should be gathered by the software tester because it gives a total percentage of the defective parts which were missed by the tester in the testing process for the software component and therefore this process will lead to better efficiency by the software tester when testing future software components.
  • 10. References  Lokesh Gulechha. (2009). Software Testing Metrics. Software Testing Metrics. 1 (1), 7-8.  P.M.Venkatesh Babu. (2009). Software Testing Metrics. Available: http://www.slideshare.net/pmvenkateshbabu/testing-metrics. Last accessed 20th April 2015.  SoftwareTestingHelp. (2013). Important Software Test Metrics and Measurements – Explained with Examples and Graphs. Available: http://www.softwaretestinghelp.com/software-test-metrics-and- measurements/. Last accessed 09th Apr 2015.  STF. (2010). Defect Density Fundamentals. Available: http://softwaretestingfundamentals.com/defect-density/. Last accessed 18th April 2015.