Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Tools

Software Test Metrics


3. Track the Metrics

Tracking test metrics throughout the test effort is extremely important because it allows the project team to see developing trends and provides an historical perspective at the end of the project. Tracking metrics requires effort, but that effort can be minimized through the simple automation of the run log (by using a spreadsheet or simple database) or through customized reports from a test management or defect tracking system. This underscores the "keep it simple" step -- the metrics should be simple to track and simple to understand. The process of tracking test metrics should not create a burden on the test team or test lead.

There are several types of metrics to track including base metrics, calculated metrics and S-curves:

Base Metrics

Base metrics constitute the raw data gathered by a test analyst throughout the testing effort. These metrics are used to provide project status reports to the test lead and project manager, and also feed into the formulas used to derive calculated metrics. Every project should track the test metrics in Table 1.

[Click image to view at full size]
Table 1

There are other base metrics that can and should be tracked, but this list is sufficient for most test teams that are starting a metrics program.

Calculated Metrics

Calculated metrics convert the base metrics data into more useful information. These types of metrics are generally the responsibility of the test lead and can be tracked at many different levels (by module, tester, or project). The calculated metrics in Table 2 are recommended for implementation in all test efforts.

[Click image to view at full size]
Table 2

The S-Curve

When charting cumulative test case passes and defects, the graph commonly takes on an "S" shape. (The reason test results are normally S-shaped is a natural function of the testing process which: Starts out slowly during the start of test execution because of environment, application and data setup issues; picks up pace as testing continues, fewer issues are discovered and more fixes are released to test; and finishes slowly when the most difficult defects are fixed and lower priority test cases are executed.)

[Click image to view at full size]
Figure 1

Test execution starts out slowly, picks up toward the middle of the test effort and then finishes slowly. It is useful to include the S-curve as part of a test metrics program because it gives immediate visual feedback on the progress of the test effort and illustrates the risks involved in releasing the application to production. It is helpful to develop two separate graphs, each displaying a theoretical curve to compare against the actual curve. The first graph is used to track test case passes and charts the progress of the test effort (Figure 1). The other graph is used to track defects, and charts the risk of release (Figure 2). The degree to which the actual test curve complies with the theoretical curve becomes the basis for measuring test progress and risk of release.

[Click image to view at full size]
Figure 2


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.