有没有好的 AWT GUI 自动化测试框架?

发布于 2024-09-24 22:17:04 字数 55 浏览 0 评论 0原文

有没有好的 AWT GUI 自动化测试框架?

与 JUnit 集成将是一个优势。

Are there any good frameworks for automated testing of AWT GUIs?

Integration with JUnit would be a plus.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

久夏青 2024-10-01 22:17:04

FEST 是您最好的选择。

从本质上讲,它是一个 JUnit/Test-NG 风格的测试框架;其主要功能是围绕 Robot 类提供流畅的接口。

虽然它旨在测试 Swing 应用程序,但我相信您也可以 用它测试 AWT 应用程序

此外,由于其根源和历史,它与 xUnit 风格的测试非常相似,因此与 JUnit 的集成应该很容易。它还具有适用于 Netbeans 和 Eclipse IDE 的插件,允许您在开发环境中运行单元测试。

但主要缺点是您无法“记录”测试用例,而某些测试工具/框架允许您这样做。您必须对测试用例进行编码。

FEST is your best bet.

It is, at its heart, a JUnit/ Test-NG style test framework; and its key feature is fluent interfaces around the Robot class.

While it is intended for testing Swing applications, I believe you can also test AWT applications with it.

Also, due to its roots and history, it is very much similar to xUnit style testing, so integration with JUnit should be easy. It also has plugins for both Netbeans and Eclipse IDEs, allowing you to run unit tests within your development environment.

The main drawback though, is that you cannot "record" test cases, as some test tools/ frameworks allow you to. You will have to code the test cases.

臻嫒无言 2024-10-01 22:17:04

尝试马拉松方丈。我过去使用过abbot,但马拉松似乎发展得更加积极,而abbot似乎相当陈旧。

Try marathon or abbot. I used abbot in the past but marathon seems to be developed more actively and abbot seems to be quite stale.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文