Are there any good frameworks for automated testing of AWT GUIs?
Are there any good frameworks for automated testing of AWT GUIs?
Integration with JUnit woul开发者_JS百科d be a plus.
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.
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.
精彩评论