# UWP and WinUI 3 apps: UI testing with MSTest

DevFeed: [UWP and WinUI 3 apps: UI testing with MSTest](<https://devfeed.tech/articles/uwp-and-winui-3-apps-ui-testing-with-mstest-65195.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/dotnet/testing-uwp-and-winui-3-apps-with-mstest/>)

Author: Amaury Levé

Published: 2026-10-05T17:05:00Z

Content type: tutorial

Language: en

Sources: [.NET Blog](<https://devfeed.tech/sources/net-blog.md>)

Topics: [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Windows UI Library (WinUI)](<https://devfeed.tech/topics/winui.md>), [Universal Windows Platform](<https://devfeed.tech/topics/uwp.md>), [mstest](<https://devfeed.tech/topics/mstest.md>)

Tags: [microsoft-testing-platform](<https://devfeed.tech/tags/microsoft-testing-platform.md>), [mstest](<https://devfeed.tech/tags/mstest.md>), [net](<https://devfeed.tech/tags/net.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ui](<https://devfeed.tech/tags/ui.md>), [uwp](<https://devfeed.tech/tags/uwp.md>), [windows-app-sdk](<https://devfeed.tech/tags/windows-app-sdk.md>), [winui](<https://devfeed.tech/tags/winui.md>), [winui-3](<https://devfeed.tech/tags/winui-3.md>), [xaml](<https://devfeed.tech/tags/xaml.md>)

## AI overview

The article explains how to run MSTest UI tests for UWP and WinUI 3 apps using Microsoft.Testing.Platform. It covers packaged and unpackaged launch models, hosting tests on the app's UI dispatcher, and checking the required machine setup on CI agents.

## Source excerpt

Learn how to test UWP and WinUI 3 apps with MSTest and Microsoft.Testing.Platform across packaged, unpackaged, and AppContainer hosts. The post UWP and WinUI 3 apps: UI testing with MSTest appeared first on .NET Blog.