有没有好的 AWT GUI 自动化测试框架?
有没有好的 AWT GUI 自动化测试框架?
与 JUnit 集成将是一个优势。
Are there any good frameworks for automated testing of AWT GUIs?
Integration with JUnit would be a plus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
尝试马拉松或方丈。我过去使用过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.