Coded UI Test - Windows - Universal Apps

后端 未结 2 2010
南旧
南旧 2021-01-02 17:56

I am trying to automated testing of windows apps using coded-ui-test project using vs2013 ultimate edition.

I can see those templates for C# desktop applications und

相关标签:
2条回答
  • 2021-01-02 18:17

    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.

    0 讨论(0)
  • 2021-01-02 18:27

    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.

    0 讨论(0)
提交回复
热议问题