Associating a TFS test case with a test method
Association creates a linkage between a TFS test case and a test method in Visual Studio. You can link any unit test, coded UI test, or generic test to an TFS test case.
In this example, a coded UI test project (CUIT) is linked to a TFS test case by means of the following steps:
Start Microsoft Visual Studio.
Open your project, created in the previous topic, and then choose a test method.
Check in your test method on the TFS server.
Build/rebuild your project to compile all project files and components that have changed since the most recent build.
Associate the test method with the test case.
Once the association is complete, in the Associated Automation tab of the TFS test case, you see the following:
- The Automation status field changes from Not Automated to Automated.
- The Automation test name, Automated test storage, and Automated test type boxes include information pertaining to the associated test method.