macos 用于 Mac OS X (Cocoa) 应用程序自动化 UI 测试的工具

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6120406/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:04:51  来源:igfitidea点击:

Tool for automated UI testing for Mac OS X (Cocoa) apps

cocoamacosui-automation

提问by soguy

Is there any open-source free tool for automated UI testing for Mac OS X (Cocoa) apps? So far I've seen commercial tools such as [Squish] and [EggPlant]. The only free tools I've read about are using UIAutomationor Automator. Does anyone have any experience with these tools? any other options I should consider?

是否有任何开源免费工具可用于 Mac OS X (Cocoa) 应用程序的自动化 UI 测试?到目前为止,我已经看到了诸如 [Squish] 和 [EggPlant] 之类的商业工具。我读过的唯一免费工具是使用UIAutomationAutomator。有没有人有使用这些工具的经验?我应该考虑任何其他选择吗?

Thanks in advance.

提前致谢。

采纳答案by pi3

Have a look at http://sikuli.org/- that lets you automize your OS X GUI tests (for free).

看看http://sikuli.org/- 它可以让你自动化你的 OS X GUI 测试(免费)。

回答by jtatum

I created an open source Python package that uses the Apple Accessibility API among others to create a classic GUI automation library, giving you visibility into and interaction with Cocoa GUIs. PyATOM home pageand GitHub repo

我创建了一个开源 Python 包,它使用 Apple Accessibility API 等来创建一个经典的 GUI 自动化库,让您可以了解 Cocoa GUI 并与之交互。PyATOM 主页GitHub 存储库

回答by justin

AppleScript is another option for simple ui simulation.

AppleScript 是用于简单 ui 模拟的另一种选择。

(no, you do not need to create a scripting definition to perform basic tasks)

(不,您不需要创建脚本定义来执行基本任务)