安装的软件:
1、WinAppDriver
github : https://github.com/microsoft/winappdriver
上面有些 demo。Application Driver直接安装地址:https://github.com/Microsoft/WinAppDriver/releases
安装完成后,默认在系统的:C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe
这个工具的作用是你写的测试工程,通过本地 localhost(127.0.0.1)以 json 方式与 WinAppDriver 进行通信,使 WinAppDriver调用 win32 api来模拟屏幕操作,如果鼠标点击、拖拽、触屏手势等,后续据说会支持 xbox 手柄、hololens 等操作。
2、 inspect.exe
这个工具是用来查看运行软件(uwp、win32、win form、wpf)的 UI 元素的 Name、ID、Text 等等。包含在 Windows SDK 中。
安装完 Visual Studio2015后,可以在 C盘下找到:C:\Program Files (x86)\Windows Kits\10\bin\x64\inspect.exe
具体案例请看转载处原文:https://www.cnblogs.com/hebeiDGL/p/7210293.html
本文介绍WinAppDriver和Inspect两个工具的安装与使用。WinAppDriver通过JSON与测试工程通信,模拟屏幕操作;Inspect用于查看UWP、Win32等应用的UI元素属性,辅助自动化测试。
903

被折叠的 条评论
为什么被折叠?



