wpf 使用 Microsoft 的 Visual UI Automation 验证
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36012954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using Microsoft's Visual UI Automation Verify
提问by Talg
I'm doing my first steps in automated QA, doing a UI automation for a WPF app. After a long research I figured the best tool for the task is TestStack.White. I'm stuck at the stage of identifying the type of ui element on which I want to perform. Some were easy to find and some weren't. I've read about a tool by MS, Visual UIA Verify, which should be a part of Windows SDK. I have SDK installed, but I don't have VUIAV. So my questions are:
我正在做自动化 QA 的第一步,为 WPF 应用程序执行 UI 自动化。经过长时间的研究,我认为完成这项任务的最佳工具是 TestStack.White。我陷入了确定要执行的 ui 元素类型的阶段。有些很容易找到,有些则不然。我读过 MS 的一个工具 Visual UIA Verify,它应该是 Windows SDK 的一部分。我安装了 SDK,但我没有 VUIAV。所以我的问题是:
- Is UIA verify indeed the right tool for the job?
- How should I use it? I tried downloading from this link, but still couldn't get it to work. I did a lot of googling before posting, with no real answer.
- UIA 验证确实是适合这项工作的工具吗?
- 我应该如何使用它?我尝试从此链接下载,但仍然无法正常工作。我在发帖之前做了很多谷歌搜索,没有真正的答案。
I'm working with VS 2015, on a machine running Win7 pro 64bit, if it matters.
如果重要的话,我正在运行 64 位 Win7 pro 的机器上使用 VS 2015。
Thanks,
谢谢,
Tal
塔尔
回答by Alas
I recomend using Inspect.exe (also part of Windows SDK) instead of VUIAV, it is faster and has more options, like using ms accesibility not only automation (ss attached)
我推荐使用 Inspect.exe(也是 Windows SDK 的一部分)而不是 VUIAV,它更快并且有更多的选择,比如使用 ms accesibility 而不仅仅是自动化(ss 附加)
the path in my installation is C:\Program Files (x86)\Windows Kits\8.1\bin\x64\inspect.exe
我的安装路径是 C:\Program Files (x86)\Windows Kits\8.1\bin\x64\inspect.exe
回答by unickq
1) Yes UIA verify is ok for this.
1) 是的,UIA 验证对此没问题。
UIA Verify 1.0and UISpyuse the original managed API.
UIA 验证 1.0和UISpy使用原始托管 API。
UIA Verify 2.0uses the newer native COM UIA library that was released in the UIA 3.0 update alongside Windows 7.
UIA 验证 2.0使用更新的本机 COM UIA 库,该库在 UIA 3.0 更新中与 Windows 7 一起发布。
回答by Denis Koreyba
As was said above it comes together with Windows SDK. And personally for me the path to it is:
如上所述,它与 Windows SDK 一起出现。就我个人而言,它的路径是:
C:\Program Files (x86)\Windows Kits\bin\x64\UIAVerify\VisualUIAVerifyNative.exe
Also I can find it here:
我也可以在这里找到它:
C:\Program Files (x86)\Windows Kits\bin\x64\inspect.exe
But it's a little bit different tool.
但它是一个有点不同的工具。


