UIAUTOMATION UIA Inspect.exe UIspy.exe 自动化测试 使用备忘

 

百度搜索Inspect.exe  :

1、WinAppDriver+inspect.exe    资料多点

2、UIA  微软  UI automation简写 +inspect.exe     太老了,不好用,资料少

3、Appium + WinAppDriver 调试经典Windows程序(非UWP)

4、win10使用WinAppDriver实现UI自动化

 

WinAppDriver and Desktop UI Test Automation (microsoft.com)

桌面自动化winappdriver、uiautomation、win32、pyautogui

 

我的需求是不通过鼠标也能实现点击等操作 就像浏览器脚本一样  可以不用鼠标,可以在自动化脚本运行时我们能做其他的事,但是经过上时间的发掘,我没发现这些库能较好地实现这样的需求

 

 

一、安装inspect.exe的官网地址: 

自动化测试

方式1:下载下面的sdk安装。

 Windows SDK - Windows 应用开发 | Microsoft Developer

方式2:visual studio 安装。

选择在 Visual Studio 2022 安装程序的可选组件中选择“Windows 11 SDK (10.0.22621.0) 

 

在 Visual Studio 2022 安装程序的可选组件中选择“Windows 11 SDK (10.0.22621.0) 

 

百度 using System.Windows.Automation;

 

 二、样例

https://learn.microsoft.com/en-us/archive/msdn-magazine/2009/march/test-run-automating-ui-tests-in-wpf-applications

 https://github.com/microsoft/WinAppDriver

 

erwa.cn

整理备忘

 

posted @   二娃网  阅读(643)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
www.erwa.cn 二娃备忘
点击右上角即可分享
微信分享提示