What is Test Metrics ?

1. What is Test Metrics?
As Per ISTQB
A measurement scale and the method used for measurement.
Centimeter, Meter etc
Gram, Kilogram

2. What is Test Metrics
We can not control what we can not measure.
We can not Improve what we can not measure.

3. Importance of Test Metrics
  • Metrics is used to improve the quality of products and services thus helps in achieving customer satisfaction.
  • Different metrics helps the teams to monitor the efficiency of the process and control them
  • It provides the scope of improvement for current process.
  • Helps in effective Decision Making
  • Evidence of Prediction

4. Types of Test Metrics 
1. Project Metric
  • Test Case Preparation Productivity
  • Test Execution Productivity
  • Test Case Passed
  • Test Case Failed

2. Product Metric
  • Defect Density
  • Defect Leakage

5. Project Metric
1.Test Case Preparation Productivity
Test Case Preparation Productivity=(Number of  TC prepared/Effort spent on TC preparation)
i.e. if Number of  TC prepared=240
      Effort spent on TC preparation=10
      Then,
      Test Case Preparation Productivity = 240/10= 24 TC/Hour

2.Test Execution Productivity
It determines number of TC that can be executed per Hour
Test Execution Productivity =(Number of  TC Executed/Effort spent for Execution of TC)
i.e. if Number of  TC Executed = 180
      Effort spent for Execution of TC =10
      Then,
      Test Execution Productivity = 180/10=18 TC/Hour

3.Test Case Passed
It is to Measure percentage number of TC passed
Test Case Passed = Total No. of TC passed/ Total No. TC Executed *100

4.Test Case Failed
It is to Measure percentage number of TC failed
Test Case Failed = Total No. of TC passed/ Total No. TC Executed *100

6.Product Metrics
1.Defect Density
It is defined as ratio of defects to requirements
Defect Density  =Total No. of Defect Identified /Actual Size( Req./Module)

2.Defect Leakage
It is used to review efficiency of Testing Process before UAT
Defect Leakage =(Total No. of Defect Identified in UAT/ No. of defect found before UAT) *100
If Total No. of Defect Identified in UAT = 20
    No. of defect     found before UAT=120
    Defect Leakage = 20/120*100 = 17

Comments