Software Testing Metrics: What is, Types & Example

Software Testing Metrics

Software Testing Metrics are the quantitative measures used to estimate the progress, quality, productivity and health of the software testing process. The goal of software testing metrics is to improve the efficiency and effectiveness in the software testing process and to help make better decisions for further testing process by providing reliable data about the testing process.

A Metric defines in quantitative terms the degree to which a system, system component, or process possesses a given attribute. The ideal example to understand metrics would be a weekly mileage of a car compared to its ideal mileage recommended by the manufacturer.

Software Testing Metrics: Complete Tutorial

Software testing metrics - Improves the efficiency and effectiveness of a software testing process.

Software testing metrics or software test measurement is the quantitative indication of extent, capacity, dimension, amount or size of some attribute of a process or product.

Example for software test measurement: Total number of defects

In this tutorial, you will learn-

Why Test Metrics are Important?

"We cannot improve what we cannot measure" and Test Metrics helps us to do exactly the same.

Read more about its Importance of Test Metrics

Types of Test Metrics

Software Testing Metrics: Complete Tutorial

Identification of correct testing metrics is very important. Few things need to be considered before identifying the test metrics

Manual Test Metrics

In Software Engineering, Manual test metrics are classified into two classes

Software Testing Metrics: Complete Tutorial

Base metrics is the raw data collected by Test Analyst during the test case development and execution (# of test cases executed, # of test cases). While calculated metrics are derived from the data collected in base metrics. Calculated metrics is usually followed by the test manager for test reporting purpose (% Complete, % Test Coverage).

Depending on the project or business model some of the important metrics are

Test Metrics Life Cycle

Different stages of Metrics life cycle Steps during each stage
  • Analysis
  • Identification of the Metrics
  • Define the identified QA Metrics
  • Communicate
  • Explain the need for metric to stakeholder and testing team
  • Educate the testing team about the data points to need to be captured for processing the metric
  • Evaluation
  • Capture and verify the data
  • Calculating the metrics value using the data captured
  • Report
  • Develop the report with an effective conclusion
  • Distribute the report to the stakeholder and respective representative
  • Take feedback from stakeholder

How to calculate Test Metric

Sr# Steps to test metrics Example
1 Identify the key software testing processes to be measured
  • Testing progress tracking process
2 In this Step, the tester uses the data as a baseline to define the metrics
  • The number of test cases planned to be executed per day
3 Determination of the information to be followed, a frequency of tracking and the person responsible
  • The actual test execution per day will be captured by the test manager at the end of the day
4 Effective calculation, management, and interpretation of the defined metrics
  • The actual test cases executed per day
5 Identify the areas of improvement depending on the interpretation of defined metrics
  • The Test Case execution falls below the goal set, we need to investigate the reason and suggest the improvement measures

Example of Test Metric

To understand how to calculate the test metrics, we will see an example of a percentage test case executed.

To obtain the execution status of the test cases in percentage, we use the formula.

Percentage test cases executed= (No of test cases executed/ Total no of test cases written) X 100

Likewise, you can calculate for other parameters like test cases not executed, test cases passed, test cases failed, test cases blocked, etc.

Test Metrics Glossary

 

YOU MIGHT LIKE: