User Guide
Integration with third-party tools
Team Foundation Server integration
Setting up the integration environment for on-premises Team Foundation Server
Installing and configuring Microsoft components for on-premises Team Foundation Server
Automating a test case in Microsoft Test Manager 
The requested page is not available for selected version.
Creating a test method
To automate a TFS test case, you must link it to 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 topic, for a quick demonstration, a test method of a coded UI test project (CUIT) is presented.
Please refer to Microsoft’s instructions on creating a simple CUIT project.
Suppose that you’ve created a working CUIT project. Your project contains test methods that may resemble the following image:
In the following topic, these test methods are associated with TFS test cases.