编码的 UI 测试 - Windows - 通用应用 [英] Coded UI Test - Windows - Universal Apps

查看:22
本文介绍了编码的 UI 测试 - Windows - 通用应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 vs2013 终极版使用 coded-ui-test 项目自动测试 Windows 应用程序.

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

我可以看到测试类别下的 C# 桌面应用程序和 windows 手机类别下的手机应用程序的模板.

I can see those templates for C# desktop applications under test category and for phone application under windows phone category.

我看不到这样的 Windows 通用应用模板.

I cannot see such template for Windows Universal Apps.

如何自动化通用应用?

如果我选择 Store Apps -> Coded UI Test Project (Windows) 类别下可用的编码 ui 模板

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

项目创建后,记录器给我一条消息Windows Store 应用程序不支持记录操作步骤"

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

推荐答案

Microsoft 尚未发布对移动或通用 Windows 应用程序的记录步骤定义的支持.记录器主要用于观察 UI 元素并自动生成代码和断言,这些元素已被我们大多数人希望避免的自动化 ID 或点引用标识.这是我目前正在处理的事情,如果我找到解决方案,除非其他人打败我,否则我会在找到解决方案时更新这个问题,这将是受欢迎的.

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.

这篇关于编码的 UI 测试 - Windows - 通用应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆