Hi B,
I would agree that this is a little confusing. As you already figured out in order to build a relation between a work item and a test result you need to add an actual link in the Work Item to the test result (similar to how you would like other work items or changesets).
The Associated Work Items attribute is not something that is being published to the server at least in the current version. It is something that you can use just so that you can see in the code that this test case is sort of related to that work item.
There are three different ways you can create the link in the Work Item to the test result so that you can see that relationship in the Warehouse:
1. You can open an existing work item and add a link to a test result.
2. From your test result window you can right click on a test result and say create work item. This will create a new work item linked to your test result.
3. If you are thinking on an automatic way of creating new work items for new failures I think that already happens if you have your tests being run as part of a Build but if you are using other tools you can use the TFS public APIs in order to do that.
Thanks.
Federico |