#1 India's Top IT Training Institute
×

About Uncodemy

Know more about who we are and what we stand for.

About Us

About Us

Discover our mission to equip individuals with essential IT skills and industry expertise.

Read More →
UnCodeMy Gallery

UnCodeMy Gallery

Explore highlights from our IT training sessions and success stories.

Read More →
Mentors

Mentors

Meet the industry experts who train and guide you through your course.

Read More →
Free Resources

Free Resources

Free tutorials, interview questions, tools and calculators to help you learn.

Explore →
×

Free Resources

Learn, practice and plan your career — bilkul free.

Tutorials

Tutorials

Step-by-step written tutorials to learn any technology at your own pace.

Read More →
Free Counselling

Free Counselling

Book a free video counselling session and pick the right course for you.

Read More →
Online Compiler

Online Compiler

Write, run and test your code online — no setup required.

Read More →
Test Metrics

Types of Test Metrics

Common Categories of Test Metrics

Process Metrics

Measure the efficiency of the testing process itself, such as test case execution rate, defect detection percentage, and effort variance.

Product Metrics

Measure the quality of the software product, such as defect density, defect severity distribution, and mean time between failures.

Project Metrics

Measure overall project health, such as schedule variance, cost variance, and resource utilisation.

Examples of Specific Test Metrics

  • Test Case Execution Rate: Percentage of planned test cases executed.
  • Defect Density: Number of defects per unit size (e.g., per KLOC or per module).
  • Defect Removal Efficiency: Percentage of defects found before release versus after.
  • Test Coverage: Percentage of requirements or code covered by tests.

Base Metrics and Derived Metrics

Every metric starts with raw counts collected during testing, known as base metrics: test cases planned, executed, passed, failed and blocked, defects found, defects fixed and effort spent. Derived metrics are ratios built from these counts. They are what managers actually read, because a ratio allows comparison across releases while a raw count does not.

Worked Example With Formulas

Imagine a release of a billing module with the following numbers, invented purely for practice: 200 test cases planned, 170 executed, 153 passed, 48 valid defects found by the team before release, 2 defects reported by users after release, 6 defect reports rejected as invalid, and a module size of 12 KLOC.

MetricFormulaResult
Test execution rateExecuted / Planned × 100170 / 200 = 85%
Pass ratePassed / Executed × 100153 / 170 = 90%
Defect densityDefects / Size48 / 12 = 4 per KLOC
Defect removal efficiencyPre-release defects / (Pre-release + Post-release) × 10048 / 50 = 96%
Defect leakagePost-release defects / Total defects × 1002 / 50 = 4%
Defect rejection ratioRejected reports / Total reports × 1006 / 54 ≈ 11%

Reading them together tells a story. Execution at 85% means 30 cases have not run yet, so the pass rate might still change. A high removal efficiency is encouraging, while an 11% rejection ratio suggests some bug reports need clearer steps or a better understanding of requirements.

Picking Metrics That Answer Real Questions

Collecting dozens of numbers wastes time. A simple method is to start with a goal, turn it into a question, and only then choose a metric:

  1. Goal: release with fewer customer complaints.
  2. Question: how many defects escape our testing?
  3. Metric: defect leakage per release, tracked over several releases.

Other useful pairings include blocked test cases for spotting environment problems, average defect age for checking fix speed, and requirement coverage for confirming that nothing in scope was forgotten.

How Metrics Get Misused

  • Ranking testers by defect count. People start logging trivial or duplicate bugs, and the rejection ratio climbs.
  • Celebrating a 100% pass rate. If only easy cases were executed, the number hides risk. Always show it next to execution rate and coverage.
  • Comparing defect density across very different modules. A complex payment engine and a static help page should not be judged on the same scale.
  • Reporting numbers without trend. One value says little. Show the last few builds or releases so improvement or decline is visible.
  • Changing definitions mid-project. If "executed" sometimes includes blocked cases and sometimes does not, the trend becomes meaningless.

A compact daily test report

  • Execution progress against plan
  • Pass, fail and blocked counts
  • Open defects by severity
  • Top risks and blockers in one or two lines

Ready to master real-world software testing?

Learn manual and automation testing hands-on with mentor-led sessions.

Explore Course