Coded UI Test - Windows - Universal Apps

末鹿安然 提交于 2019-11-30 14:28:09

I don't believe there is a CodedUI Test project for UWP. Since you're coding UI tests, you're test project should be targeting a specific device platform. There's CodedUI templates for Windows, and also Windows Phone. I would make two different CodeUI tests (one for Phone, one for Desktop), to make sure everything is working on either platform.

For testing common functionality, you can use unit tests.

Microsoft has not yet released support for recording step definitions for mobile or universal Windows apps. The recorder is there mainly to observe UI elements and to auto-generate code and assertions on elements that have been identified with automation ID's or point references which most of us wish to avoid. This is something I am currently dealing with an I'll update this question if and when I find solutions unless someone else beats me to it, which would be welcomed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!