How to fix coded UI test run issue in Visual studio 2022 test agent

Piyusha Mohapatra 20 Reputation points
2024-02-15T10:57:15.31+00:00

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

  1. Could you please recommend any suggestion how to execute the existing coded ui test cases with VS 2022 test agent successfully?
  2. 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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,827 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
336 questions
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 27,641 Reputation points Microsoft Vendor
    2024-02-19T09:51:17.4933333+00:00

    Hello, the assembly ‘Microsoft.VisualStudio.QualityTools.Tips.OrderedTest.Tip’ seems be related to Ordered tests. But Ordered Tests is not supported with MSTest V2.

    You can see: MSTestV1 features that aren't supported in MSTestV2.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more