The associated test case is not included in Visual Studio

I have a unit test project and I wrote my test methods there. I want to link automation scripts to test cases. But when I go to the Validate Study tab and right click, it displays Link to Test Case, but it is disabled. Can anyone help me with this?

+4


source to share


2 answers


I had the same problem ("Link to Test Case" disabled) due to using MSTest V2 in my project (default in VS 2017).

To enable "Link to Test Case" simply change MSTest V2 to MSTest V1 in your project links:

MSTest V2: Microsoft.VisualStudio.TestPlatform.TestFramework



MSTest V1: Microsoft.VisualStudio.QualityTools.UnitTestFramework

enter image description here

+1


source


Make sure you are connected to DevOps / TFS (in Team Explorer, Connect)



0


source







All Articles