Coded UI Test - Windows - Universal Apps
Asked Answered
I

2

7

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 under test category and for phone application under windows phone category.

I cannot see such template for Windows Universal Apps.

How to automate universal apps?

If I choose the coded ui template available under category Store Apps -> Coded UI Test Project (Windows)

Project Template

After project creation, recorder gives me a message "recording action steps is not supported for windows store apps"

Indispose answered 16/9, 2014 at 14:53 Comment(0)
S
0

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.

Suitcase answered 12/8, 2015 at 14:24 Comment(0)
A
0

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.

Anhydrous answered 17/2, 2016 at 17:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.