GQM stands for Goal, Question, Metric. It is a method for determining useful metrics for a project or process. GQM is commonly used in software development, but can be used for any type of process or project. I've seen several different attributions for the origin of GQM but they all include Victor Basili of the University of Maryland. GQM is simple, but used well can be very powerful. First you determine a Goal. Next, you find a Question that lets you know how you are doing with regard to meeting the goal. Finally, you use the question to determine what to measure (the Metric) to answer the question.
For example:
- Goal
- Finish a given software project in three weeks.
- Question
- How close are we to completion?
- Metric
- Number of completed (coded and tested) features
There are a couple of key things to think about when setting the goal. As with any time you are setting a goal, you want to make sure it is a SMART (Specific, Measurable, Achievable, Reasonable and on a Timeline) goal, although one of the advantages of GQM is that if you don't it will become obvious as you go on to define the question and metric. More importantly, you want to make sure you are setting the right goal. A goal that is only meaningful to the programmers may be perfect if you are setting goals for the programming department, but probably isn't a good choice if you are setting goals for the entire company.
In the book Software Measurement Laird and Brennan discuss an extension to GCM, GCM2 that involves adding the additional term Mechanism. Mechanism refers to when the metric will be gathered and reported, who is responsible and what resources will be needed. For our earlier example, we could add:
- Mechanism
- Collected in the existing test management system by the testers on a daily basis and reported by the head tester at the end of the day. The head tester is responsible and it will take approximately 15 minutes total of the testers time daily.
GQM is a simple way to get started doing metrics and is very versatile, it can work equally well for an individual trying to keep track of their own work or a whole company and anywhere in between as long as the goal is appropriate to the entity being tracked.
Learn more about GQM and other sofware measurement topics in Software Measurement and Estimation: A Practical Approach. Available at Amazon.com

















