使用System.Windows.Automation和Microsoft.VisualStudio.TestTools.UITesting进行WPF UI测试自动化有什么区别? [英] What is the difference between using System.Windows.Automation and Microsoft.VisualStudio.TestTools.UITesting for WPF UI Test automation?

查看:140
本文介绍了使用System.Windows.Automation和Microsoft.VisualStudio.TestTools.UITesting进行WPF UI测试自动化有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用System.Windows.Automation(通常称为UIA)API和Microsoft.VisualStudio.TestTools.UITesting(在后台的已编码UI测试中使用)实现WPF的UI测试自动化之间有什么区别

What is the difference between using System.Windows.Automation (commonly known as UIA) API and Microsoft.VisualStudio.TestTools.UITesting (one that is used in Coded UI Test behind the scene) for implementing UI Test automation of a WPF application programatically?

是否有任何特定的方案,限制或优点/缺点?

Is there any specific scenarios, restrictions or advantages/disadvantages?

推荐答案

实际上,答案在您的问题中。 UIA用于自动化,而UITesting用于...测试。

In fact, the answer is in your question. UIA is used for automation, while UITesting is used for... testing.

MSDN摘录:


UI自动化为桌面上的大多数用户界面(UI)
元素提供了编程式
访问权限,从而使
辅助技术产品(例如
屏幕阅读器)能够向最终用户提供有关UI的信息
,并通过
标准输入以外的其他方式来
操纵UI。 UI自动化
还允许
自动测试脚本与UI交互。

UI Automation provides programmatic access to most user interface (UI) elements on the desktop, enabling assistive technology products such as screen readers to provide information about the UI to end users and to manipulate the UI by means other than standard input. UI Automation also allows automated test scripts to interact with the UI.

因此,可以使用UIA用于-但不限于-UITesting。

Thus, UIA can be used for - but isn't limited to - UITesting.

这篇关于使用System.Windows.Automation和Microsoft.VisualStudio.TestTools.UITesting进行WPF UI测试自动化有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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