How to: Enable Reporting of Test Results

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The reporting mechanism of Team Foundation Server generates reports of various kinds. Several tasks are associated with enabling the generation of test-results data reports. Although only the last step, publishing to the database for the team project collection, is required for reporting, some reports may be uninteresting without the first two steps.

Associate a test with one or more work items. For more information, see How to: Associate a Work Item with a Test.

  1. Set the test's Project Area and Iteration properties. This is described in Setting Properties.

    Note

    To edit these properties, you must have Team Explorer installed. For more information, see Installation Overview for Team Foundation Server.

  2. Publish test result data to the database for the team project collection. For more information, see How to: Publish Test Results.

    Note

    The order of these steps is important. If you associate the test with work items or set the test's properties after you publish test results, the changes you made will not be reflected in the published test results.

You can also link a test result to a work item. To do this, you must also publish test results. You will be prompted to publish your test results if you have not already done so.

The Project Area and Iteration Properties

In the following procedure, you can associate a test with a specific iteration and project area for your team project. Both properties refer to concepts that are used when you manage the components and features of team projects, by using Team Foundation Server.

  • Project Area. You can associate a test with the area of a team project that it tests.

  • Iteration. You can associate a test with a specific iteration of your team project. For example, if your test applies to the Beta 1 iteration, you can select Beta 1 for the iteration field.

For more information, see Setting Initial Project Areas or Iterations.

Setting Properties

To set the project area and iteration properties

  1. Connect to a Team Foundation Server computer. For more information, see How to: Connect to a Team Project in Team Foundation Server.

  2. Click View and then click Team Explorer.

    The Team Explorer window appears. It displays the hierarchy of your team project.

  3. Click the Team Foundation Server project in which your software is being developed.

  4. In the Test List Editor or the Test View window, click the test for which you want to publish results and press F4 to open the Properties window.

  5. In the Properties window, click Project Area.

  6. In the values column of the Project Area row, click the ellipsis (…) button.

    The Project Area dialog box is displayed.

  7. Click the down arrow in the Node in Project Area drop-down box.

  8. Select a node and then click OK.

  9. In the Properties window, click Iteration.

  10. In the values column of the Iteration row, click the ellipsis (…) button.

    The Iteration dialog box is displayed.

  11. Click the down arrow in the Node in Iteration drop-down box.

  12. Select an iteration, or the ProjectLifecycle node, and then click OK.

    The iteration is displayed in the Iteration row of the Properties window, in the following format:

    \<project name>\ProjectLifecycle\Iteration <iteration number>

    After you run this test and publish its results, they will be available as data for reports generated in Team Foundation Server.

See Also

Tasks

How to: Publish Test Results

How to: Associate a Work Item with a Test

Other Resources

How to: Connect to a Team Project in Team Foundation Server

Installation Overview for Team Foundation Server