Hi Team,
I updated the coded UI test from VS 2019 to VS2022 17.8. When i tried to run the the coded ui ordered test using visual studio 2022 test agent in an environment where both 2019 and 2022 test agents are available, I get the following error.
TestTypes\ec4800e8-40e5-4ab3-8510-b8bf29b1904d could not be loaded because the TIP could not be instantiated for the following reason(s): System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip, Version=17.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
I used the below command to execute the test cases in the test environment
cd "C:\Program Files (x86)\Microsoft Visual Studio\2022\TestAgent\Common7\IDE"
.\MSTEST.EXE /testcontainer:"C:\Bin\TestSuiteName.orderedtest" /testsettings:"C:\Bin\Local.testsettings"
Following are my questions
- Could you please recommend any suggestion how to execute the existing coded ui test cases with VS 2022 test agent successfully?
- Is it possible to use test dlls built in Visual studio 2022 enterprise and run them using 2019 visual studio test agent? I tried it and found the error the test was not found.
With best regards,
Piyusha