Also known as GQL (Goal, Question, Learning) Board
The essentials
Sheet 1/4
What it is
What it solves
How do you choose metrics that actually inform a decision, instead of collecting large amounts of data that nobody can interpret?
When to use it
Use it when setting up a measurement programme, when a team collects metrics nobody uses, when evaluating a process change such as a new testing practice, or when stakeholders disagree on what 'better' means.
Where it comes from
GQM grew out of work at the University of Maryland and the Software Engineering Laboratory at NASA Goddard, after Basili supervised David Weiss's PhD on collecting valid software engineering data; Weiss drew on Albert Endres at IBM Germany. Basili and Weiss published the methodology in IEEE Transactions on Software Engineering in November 1984. Basili, Caldiera and Rombach later wrote the standard GQM description, and Basili and Fraunhofer researchers extended it to GQM+Strategies for business alignment.
Gianluigi Caldiera, H. Dieter Rombach and Victor R. Basili · 1984
Sheet 2/4
How it works
Measurement only has meaning relative to a goal. GQM therefore starts with a precise goal template: analyse an object, for a purpose, with respect to a quality focus, from a viewpoint, in a context. Questions translate the goal into things that can be answered, often with hypotheses about expected values. Metrics are then chosen for each question; one metric may serve several questions. The structure works top-down for definition and bottom-up for interpretation: data rolls up to answers, and answers roll up to a judgement on the goal.
You need
Business or project goals, stakeholders and their viewpoints, process descriptions, available data sources, and time for goal-setting interviews.
You get
A GQM plan: documented goals, the questions and hypotheses for each, the metrics that answer them, a data collection plan and an analysis plan.
Sheet 3/4
Case
Illustrative case
Quillon Bank's 30-developer mobile team adopts code review and wants to know if it helps. Goal: analyse the review process to evaluate its effect on defects from the release manager's viewpoint. Questions: Do fewer defects reach production? Does review slow delivery? Metrics: production defects per release, defects found in review, and lead time from commit to release. Over six releases, production defects fall from 14 to 6 per release while lead time grows from 3.1 to 3.6 days. The team keeps review and caps reviews at 24 hours to contain the delay.
A fictional company used to explain the model.
Sheet 4/4
Caution
When to avoid it
Avoid it for a quick one-off check where the metric is obvious, or when goals are still unknown and the team needs exploratory analysis first.
It also adds overhead for tiny teams without a measurement need.
Common mistakes
Writing vague goals without object, purpose and viewpoint.
Starting from available metrics and inventing goals afterwards.
Defining too many questions.
Skipping interpretation, so data is gathered but never rolled up to the goal.
Known weaknesses
Defining goals and plans takes effort up front.
Original form does not link to business strategy; GQM+Strategies was added for that.
Can produce large plans if scope is not limited.
Less known outside software engineering.
How to apply it in 6 steps
How to apply it
Goal Question Metric (GQM)
6 steps
01of 6
Step 1 of 6: Set measurement goals
Write each goal with object, purpose, quality focus, viewpoint and context.
01
02of 6
Step 2 of 6: Derive questions
Interview stakeholders and list questions, with hypotheses, that show whether each goal is met.
02
03of 6
Step 3 of 6: Define metrics
Select objective and subjective metrics that answer each question and check them for completeness.
03
04of 6
Step 4 of 6: Plan data collection
Specify who collects which data, when and how, in a GQM and measurement plan.
04
05of 6
Step 5 of 6: Collect and validate
Gather data and check its quality as the project runs.
05
06of 6
Step 6 of 6: Interpret bottom-up
Roll metrics up to answers and answers up to conclusions on the goals, then act.
06
Click to unfold
Use the arrow keys to move between steps, Home and End for the first and last, and Enter to fold or unfold the booklet.
View all 6 steps
01
Set measurement goals
Write each goal with object, purpose, quality focus, viewpoint and context.
02
Derive questions
Interview stakeholders and list questions, with hypotheses, that show whether each goal is met.
03
Define metrics
Select objective and subjective metrics that answer each question and check them for completeness.
04
Plan data collection
Specify who collects which data, when and how, in a GQM and measurement plan.
05
Collect and validate
Gather data and check its quality as the project runs.
06
Interpret bottom-up
Roll metrics up to answers and answers up to conclusions on the goals, then act.
Which decisions it helps with
Decision profile
A phased process to take action.
Keyboard: Tab to the sheet, use the arrows to explore the assessments and their questions, and press Escape to close the note.
IIdentity
Type of tool
Phased processpossible
The questionWhat kind of tool is it?Assessment · Phased process · 57 %
Decision stage
Plan the work, roles and deadlineslikely
The questionWhat stage of the decision are you at?Assessment · Plan the work, roles and deadlines · 65 %
Discipline
Agile and software developmentvery likely
The questionWhich discipline does it come from?Assessment · Agile and software development · 86 %
What it produces
A sequence of phases completed in orderpossible
The questionWhat kind of tool is it?Assessment · A sequence of phases completed in order · 57 %
IIIResources required
TimeWeeks or monthsThe questionHow much time can you spend on this?Assessment · Weeks or months · confidence 62 %
PeopleBetween “a small group (2 to 8)” and “a large workshop (12 or more)”The questionHow many people will take part?Assessment · Between “a small group (2 to 8)” and “a large workshop (12 or more)” · confidence 47 %
DataData collected for the purposeThe questionWhat data do you have available?Assessment · Data collected for the purpose · confidence 50 %
ExpertiseWorks best with a facilitatorThe questionDoes anyone have experience with methods like these?Assessment · Works best with a facilitator · confidence 92 %
Time horizonA few monthsThe questionHow far ahead do you need to plan?Assessment · A few months · confidence 93 %
ScopeOne teamThe questionWho will this decision affect?Assessment · One team · confidence 82 %
FrequencyOccasionallyThe questionIs this a one-off decision or something you expect to repeat?Assessment · Occasionally · confidence 86 %
The team’s own knowledge is enoughThe questionCan you speak to customers, users or people outside your organisation?Assessment · The team’s own knowledge is enough
IITen axes
The dot shows which end the model favours. A hollow dot means no clear preference.
DirectionmixedExecutionThe questionAre you setting direction or improving day-to-day operations?Assessment · no clear preference (probability is spread across several levels)
Top-downBottom-upThe questionShould leadership set the direction, or should the answer come from the people doing the work?Assessment · Both equally · confidence 68 %
PeopleProcessesThe questionIs this mainly a people problem or a process problem?Assessment · Mostly processes · confidence 83 %
Generate optionsNarrow down optionsThe questionDo you need to generate more options or narrow them down?Assessment · Mostly narrow down options · confidence 73 %
Step-by-step analysisIntuition and experienceThe questionWould you rather work through the evidence step by step or draw on the group’s experience?Assessment · Step-by-step analysis · confidence 83 %
A strict sequence of stepsA flexible frameworkThe questionWould you prefer a precise set of steps or a framework you can adapt?Assessment · Mostly prescribed steps · confidence 72 %
Protect what we haveTake a riskThe questionDo you need to protect what you have or take a chance on something new?Assessment · Mostly protect · confidence 55 %
Improve what we haveFundamental changeThe questionDo you want to improve what you have or change it fundamentally?Assessment · Mostly incremental improvements · confidence 39 %
Inside the organisationOutside the organisationThe questionWhere do you expect to find the answer, inside your organisation or in the market?Assessment · Inside the organisation · confidence 92 %
Understand firstAct nowThe questionDo you need to understand the situation first or act now and learn as you go?Assessment · Mostly understand first · confidence 62 %
IVUseful when
Applicable traits
How it supports actionSet measurable targets and track progressThe questionWhat do you need in order to act?Assessment · Set measurable targets and track progress · 64 %
How was this profile calculated?
An automated system reads each model card and answers the same questions for every model. This profile has answers for 77 of 77. No answers are entered by hand.
A very high probability counts as “yes” and a very low one as “no”. Intermediate answers are hidden.
On the axes, mixed means the model favours neither end.
Basili, V. R. and Weiss, D. M. (1984). A Methodology for Collecting Valid Software Engineering Data. IEEE Transactions on Software Engineering, SE-10(6).The paper Wikipedia cites as the origin of GQM. Crossref metadata confirms title, authors Basili and Weiss and November 1984 in IEEE TSE; the DOI resolves to IEEE Xplore.View source: A Methodology for Collecting Valid Software Engineering Data (opens in a new tab) ↗
Key development
Basili, V. R., Caldiera, G. and Rombach, H. D. (n.d.). The Goal Question Metric Approach. University of Maryland / Universitat Kaiserslautern (encyclopedia chapter).The standard description of GQM. The PDF shows title and authors and defines the conceptual (goal), operational (question) and quantitative (metric) levels and the goal template; the PDF itself does not state a publication year.View source: The Goal Question Metric Approach (opens in a new tab) ↗
Solingen, R. v., Basili, V., Caldiera, G. and Rombach, H. D. (2002). Goal Question Metric (GQM) Approach. Encyclopedia of Software Engineering, Wiley.Updated reference entry on GQM; Crossref lists the title, the four authors and January 2002 in Wiley's Encyclopedia of Software Engineering.View source: Goal Question Metric (GQM) Approach (opens in a new tab) ↗
Critique
Berander, P. and Jönsson, P. (2006). A goal question metric based approach for efficient measurement framework definition. Proceedings of the 2006 ACM/IEEE International Symposium on Empirical Software Engineering (ISESE).Argues GQM solves only part of the over-measurement problem: goals and questions still generate too many metrics, so it needs an added prioritisation step (tested in two industrial case studies).View source: A goal question metric based approach for efficient measurement framework definition (opens in a new tab) ↗