windows-desktop-e2e - 使用 UI Automation 测试 Windows 桌面应用
通过 pywinauto 和 Windows UI Automation 为 Windows 原生桌面应用提供基于 pytest 的端到端测试。
标签
更新于: 2026-11-08能力
典型输入
典型输出
该技能可以做什么
- 编写 pywinauto 端到端测试
- 运行桌面 pytest 测试
- 检查 UIA 元素树
- 按 AutomationId 定位控件
- 捕获失败截图
- 诊断不稳定的自动化测试
输入
- 目标应用程序可执行文件
- 应用程序窗口标题
- 测试场景
- UIA 控件元数据
- 测试配置值
输出
- pytest 测试结果
- HTML 测试报告
- 失败截图
- 测试产物
- 应用测试状态
要求
- Windows 操作系统
- Python 3.8 或更高版本
- pywinauto 包
- pytest 包
- pytest-html 包
- Pillow 包
- pytest-timeout 包
- Windows UI Automation 可用
