The test execution was delegated to legacy TestPlatform runner.

PONNALA Divya 21 Reputation points

Hi ,

I have installed the visual studio 2022 latest version on the virtual machine and trying to execute CodedUI tests from vstest.console.exe but I'm seeing the warning message as

The test execution was delegated to legacy TestPlatform runner. You are seeing this message most likely because you are running MSTest v1 tests with a testsettings file, Generic tests, Ordered tests or CodedUI tests. All of those test types, and the legacy TestPlatform runner are legacy. It is recommended that you migrate to MSTest v2 but though my testcases are running

Since MSTest v2 doesn't support CodedUI tests but I would like to know if we can do any changes to .csproj to avoid this message showing up everytime while running tests.


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 a test as a means of analysis or diagnosis.
269 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AnnaXiu-MSFT 12,936 Reputation points

    Hi @PONNALA Divya ,

    Welcome to Microsoft Q&A!

    For your requirement, I suppose it is impossible to disable the warning through .csproj.
    It is disappeared after you migrate to MSTest v2.

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.