windows 应用程序(非移动设备)是否有与 Appium 等效的工具?

Is there an equivalent tool to Appium for windows Application (not mobile)?

我曾经使用 Appium 进行移动自动化,现在我想使用与 Appium 相同的逻辑,但用于 windows 桌面应用程序。 是否有类似于 Appium 的自动化工具,但可以测试桌面 windows 应用程序? (除了 RIDE 和 AutoIt)我在 Sikuli 库中使用 ride,但我发现它不如 Appium 好,Appium 通过名称、ID、xpath 提供许多位置策略……没有好的策略来定位元素仅通过使用 SikuliLibrary 的图像或使用 AutoItLibrary 的鼠标单击位置,这样如果我从 Windows 7 更改为 10,图像将不会响应我们的脚本....

Sikuli 和 Appium 是两种不同类型的应用程序和测试方法。这远远超出了 SO 的范围,我敦促您到别处寻找此类信息。

在 Robot Framework 社区中,存在许多 official/common 库。这些是众所周知的并且很容易找到。但是,还有一大群库未在 Python 存储库中找到,但可在(示例)GitHub 上免费获得。最重要的是可以直接导入的普通 Python 模块,然后可以将其方法用作关键字。如果您喜欢的应用程序有 Python 接口或模块,那么创建机器人框架库并不困难。

考虑到 Windows 使用 Robot Framework 进行桌面应用程序测试的特定主题,我的第一个搜索结果将我带到官方 Python Testing Tools Taxonomy Page for testing and it's GUI testing section. From this list the PyWinAuto project shows most promise as it supports windows and is open source. A Robot Framework Library robotframework-winbot 存在,并且仍然有效,但有一段时间没有更新了。

正如你提到的 Appium,我也看过那里,虽然 Robot Framework Library keyword documentation doesn't seems to support Windows application, Appium itself has recently released some support for Windows Application UI Testing. This is based on the fairly new Microsoft Windows Application Driver. Python sypport is available, as there are Python examples in the Python Samples 部分,但没有具体的机器人框架库。

可能还有其他选择,但我建议您先尝试这些,遇到问题时提出具体问题。