windows-desktop-e2e - 对 Windows 原生桌面应用进行端到端测试
使用 pywinauto 和 Windows UI Automation 为 WPF、WinForms、Win32/MFC 及 Qt 桌面应用创建、运行、诊断并集成端到端测试。
标签
更新于: 2026-11-08能力
典型输入
典型输出
该技能可以做什么
- 创建桌面端到端测试
- 启动目标应用
- 定位 UIA 控件
- 操作用户界面控件
- 等待界面状态
- 检查 UIA 元素树
- 捕获失败截图
- 生成 HTML 测试报告
- 集成 CI/CD 测试
- 诊断不稳定自动化测试
输入
- Windows 桌面应用可执行文件
- 主窗口标题
- 应用测试凭据
- AutomationId 值
- 测试数据
- 环境变量设置
输出
- 测试结果
- HTML 测试报告
- 失败截图
- 按需截图
- 屏幕录制文件
- 测试日志
- 应用界面状态变化
要求
- Windows 操作系统
- Python 3.8 或更高版本
- 支持 UIA 后端的 pywinauto
- pytest
- pytest-html
- Pillow
- pytest-timeout
- Windows UI Automation 支持
- Accessibility Insights for Windows
- 用于屏幕录制的 ffmpeg
