我的通用 windows 应用程序的 AutomationId 是什么?

What is the AutomationId of my universal windows app?

因此,我正在开发一个 Windows 10 应用程序或通用应用程序,并且除了我的单元测试之外还想 运行 一些 UI 测试。

我创建了一个 "Coded UI Test (Windows)" 类型的项目。然后我有我的测试方法,我想在我开始断言按钮存在等之前启动我的应用程序

我知道我应该使用 XamlWindow.Launch 但我应该传递给它什么?如何找到我的应用程序 ID?

您可以阅读此 post https://msdn.microsoft.com/en-us/library/dn747198.aspx 并在第 3 步的 "Create a coded UI test for windows phone app" 部分找到您想要的内容。