Use Coded UI tests to test your code

Coded UI tests (CUITs) drive your application through its user interface (UI). These tests include functional testing of the UI controls. They let you verify that the whole application, including its user interface, is functioning correctly. Coded UI tests are useful where there is validation or other logic in the user interface, for example in a web page. They are also frequently used to automate an existing manual test.

For the most current documentation, see Use Coded UI tests to test your code.


Coded UI Test for automated UI-driven functional testing is deprecated. Visual Studio 2019 is the last version where Coded UI Test will be fully available. We recommend using Playwright for testing web apps and Appium with WinAppDriver for testing desktop and UWP apps. Consider Xamarin.UITest for testing iOS and Android apps using the NUnit test framework. To reduce the impact on users, some minimum support will still be available in Visual Studio 2022. In Visual Studio 2022, users can run existing CodedUI tests, but not record new tests because Coded UI Test Editor is not available.


  • Visual Studio Enterprise 2019*
  • Coded UI test component


* Visual Studio 2019 is the last version to provide test creation via the recorder. Only basic minimal support for Coded UI Test is available in Visual Studio 2022.