3 A goal-based framework for software measurement


A. Törn - Contents - - Previous chapter - Next chapter - - Previous page - Next page

3.2 Determining what to measure

Measurement is not performed for fun but with some specific purpose. Of course what your mesure is dependent of this purpose.

The Goal- Question- Metric approach (GQM) to process and metrics, first suggested by Basili and his colleagues, has proven to be a particularly effective approach to selecting and implementing metics.

The GQM approach provides a framework involving three steps:

  1. List major goals of the development or maintenance project.
  2. Derive from each goal the question that must be answered to determine if the goals are being met.
  3. Decide what must be measured in order to be able to answer the queations adequately.
For an example see Fig. 3.2 and Table 3.3. The GQM tree or table must be supplemented by one or more models that express the relationships among the metrics if these must be combined to answer the question (eg. coder productivity may be measured in terms of effort per line of code).

To aid in generating the goals, questions, and metrics, Basili and Rombach provides a series of templates:

Templates for goal definition