How to: Create a hyperlink to view test results from an email
If you are using Microsoft Test Manager to run your tests, you might want to send out a status e-mail with a hyperlink to the latest test results. You can construct a hyperlink with a URL that contains the necessary information about your Team Foundation Server and team project and the ID of your test run. This way, the test results can be accessed immediately. You will not have to search for them in Microsoft Test Manager.
Note
You must have Microsoft Test Manager installed on the computer that you use to access this URL.
To Create a Hyperlink to View Test Results From an Email
To create a hyperlink, you will need the following information about your team project:
The name of your Team Foundation Server
The name of your team project collection
The name of your team project
Important
To obtain this information, you can copy the URL for the test plan that contains the test run. You can then edit this URL to the format shown in the following steps. Replace connect with open and add the ID of the test run. For information about how to copy the URL for a test plan, see How to: Switch between Test Plans Using URLs.
To access the correct test run, you need the test run ID. This ID is displayed in the Analyze Test Runs view in the Test activity center.
Create a hyperlink in your e-mail. Use the following format for the URL for the hyperlink:
mtm://<Team Foundation Server Name>:<port number>/tfs/<team project collection name>/p:<team project name>/Testing/testrun/open?id=<test run id>
For example:
mtm://contoso:8080/tfs/DefaultCollection/p:DinnerNow/Testing/testrun/open?id=40