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.
  • Visual Studio 2015.
  • Visual Studio 2013.
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.