Share via


How to: Add a Test Result to a Work Item

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

After you run tests and obtain test results, you can create a work item directly from a test result, using the Test Results window. If the test result has already been published, it is automatically linked to the work item. If the test result has not yet been published, you will be prompted to publish it.

If you choose not to publish the test result, you can add it to the work item after the fact, as described in the following procedure.

Important

The work item database resides on a Team Foundation Server computer. This means that you can create work items, including bugs, only if you have Team Explorer installed, and your Visual Studio user session is connected to a Team Foundation Server computer. For more information, see How to: Connect and Access Team Projects in Team Foundation Server.

To add a test result to a work item

  1. Run tests, obtain test results, and create a work item from the test results. For more information, see How to: Create a Work Item from a Test Result.

  2. Click View, and then click Team Explorer.

  3. In Team Explorer, open the work item.

  4. Click the Links tab.

  5. Click Add.

    The Add Link dialog box is displayed.

  6. Click the down arrow in the Link type box.

  7. Click Test Result.

  8. Click Browse.

    The Choose Test Result dialog box is displayed.

  9. Locate the published test result, select it, and then click OK.

  10. (Optional) Type a comment for this link.

  11. In the Add Link dialog box, click OK.

    The link to the test result appears under the Links tab of the work item.

See Also

Tasks

How to: Create a Work Item from a Test Result