How do you choose quality metrics for a project?
Quality metrics are chosen from a goal, not from a popular list: under GQM the goal comes first, then the questions, and only then the metrics. Each metric has an owner, a threshold and an action when it is crossed, otherwise it is decoration. Values are read as a trend against the team's baseline, and lagging metrics (leakage) are combined with leading ones (waiting time in QA).
QA Fundamentals · Quality metrics
A dashboard shows twenty metrics and none says what to do. Where should the choice start?
A QA lead shows a manager a dashboard: one hundred forty-three open bugs, eighteen hundred test cases, code coverage 71%. The manager nods and asks: "And what of this is bad?". There is no answer: the numbers exist, but nobody agreed what counts as normal or what to do when they change. This lesson is about choosing metrics so that each answers a concrete question and triggers an action, and why you start from a goal and not from a list of "popular" metrics.
How it works and why. The GQM framework (Goal → Question → Metric) from software engineering (Basili) sets the order: first the goal, then the questions you must answer to know whether the goal is reached, and only then the metrics that answer those questions. The order matters for two reasons. A metric without a question has no interpretation: are "143 open bugs" many or few? It depends on what we want to know. And a metric without a goal easily survives when nobody needs it any more: it is collected because "Jira can do it".
From goal to metric: three steps
In a good set three more things are attached to a metric: an owner (who looks at it and answers for it), a threshold or expectation (what counts as normal) and an action (what we do when the threshold is crossed). Without an action a metric is decoration: people look at it, sigh and move on.
Example: from a list to GQM. The team's initial dashboard:
QA dashboard (everything Jira can count):
open bugs — 143
test cases — 1,870
tests executed per day — 212
average bug age — 41 days
bugs per tester — 18 / 11 / 7
code coverage — 71%
Every number is true, but none answers a question. "Bugs per tester" is also harmful: it encourages splitting bugs (a separate lesson covers this). Rebuilt from the goal it looks like this:
Goal: fewer defects reach users
Question: how many bugs do we let into production?
Metric: defect leakage in 30 days after release (Major+ only)
Owner: QA lead
Action: leakage > 10% twice in a row → analyse every escaped
bug: at which stage should it have been caught
Question: where exactly do we miss them?
Metric: prod bugs by module and by "stage where it could be found"
Owner: QA lead with the dev team lead
Action: a module with 3+ bugs per quarter → more API-level
tests and a review checklist
Now the dashboard has two metrics instead of six, and each has an owner and an action. The action fires when a threshold is crossed, not at "let's look next month". The other numbers did not disappear: they live in the tracker and are needed when you must understand why a metric is bad. But what reaches the dashboard is what answers the questions of the goal.
Limits and alternatives. GQM gives an order of reasoning but does not suggest thresholds: they must come from the team's history (the baseline) or from an agreement with stakeholders, not from internet articles about a "normal" percentage. Metrics are lagging (leakage is known only weeks after a release) or leading (waiting time in "Ready for QA" is visible today): it helps to have both, because the first says whether we reached the goal and the second whether we can still change something. Product quality metrics (defects, failures) are not the same as process metrics (fix time, reopen) and project metrics (progress, budget): ISTQB CTFL splits test metrics even finer (project and test progress, product quality, defects, risks, coverage, cost), and one question often needs metrics from several groups. Other approaches (OKR, DORA, SPACE) are other frames of the same idea: numbers exist for decisions. Measuring also costs: if data is collected by hand and brings no value, the metric should be removed.
Common mistakes.
- Taking metrics from a template or a previous project: they answer someone else's questions and move no decision on yours.
- Collecting everything the tracker can count: twenty numbers hide the one that matters, and maintaining the dashboard eats time.
- A metric with no threshold and no action: the first red value triggers nothing, and trust in the dashboard falls.
- Looking at one value instead of a trend: "leakage 12%" says little, while "it was 18%, now 12%, and the team added API tests" is already a story.
- Changing the way of counting without a warning: the trend breaks and the comparison with the previous quarter becomes false.
Check yourself
A manager asks to "add the automation coverage metric to the dashboard". Which question do you ask first and why?
Answer
Which decision should this number help make: automate more, drop manual regression, or show progress? Without a goal "coverage" can be pushed to 90% with trivial tests and bring nothing. The question about the goal decides which version of the metric is needed: the share of critical scenarios, the share of regression or the regression time.
You have a leakage metric and a rule: a value above 10% → analysis of the escaped bugs. It was 8%, 9%, 14%. What do you do and what do you not do yet?
Answer
The action attached to the threshold: I analyse the escaped bugs of the last release and look for a common cause (module, stage, type of requirement). I do not conclude from one value that quality "got worse" and I do not blame anyone for the number: I check whether something changed in the release (scope, mix of changes) and whether the next release confirms the trend.