The test execution was delegated to legacy TestPlatform runner.

PONNALA Divya 21 Reputation points
2022-02-07T11:28:50.997+00:00

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.

Thanks,
Divya.

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.
329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2022-02-08T07:53:50.233+00:00

    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.

    Sincerely,
    Anna
    *
    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.