自动GUI测试 [英] Automated GUI Testing

查看:142
本文介绍了自动GUI测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Netbeans IDE 6.9编写Java桌面应用程序(SWING)。我想做自动GUI测试。我所知道的关于测试的是JUnit测试,它不适用于我的GUI应用程序。是否有可用于测试GUI应用程序的特定测试框架,那里有好的吗?哪些是易于使用的(我需要做测试,但我没有很多时间,但是,我不想忽略它)。我的应用程序基本上是一个框架,有三到四个选项卡(不是很大),我的测试不应该很复杂,那么是否有一个简单的框架可以让我快速测试我的应用程序并以强有力的方式查找错误?

I am writing a Java Desktop Application (SWING) using Netbeans IDE 6.9. I want to do automated GUI testing. All I know about testing is JUnit tests which won't apply for my GUI application. Is there a particular testing framework I can use for testing the GUI application, are there good ones out there? Which ones are easy to use (I need to do testing but I don't have a lot of time for that, however, I don't want to ignore that). My application is basically one frame, with three to 4 tabs (not a big one), my tests shouldn't be complicated, so is there a simple framework that will let me test my application fast and in a strong way to find bugs?

谢谢

推荐答案

我推荐以下开源工具(我们推荐在我们的Java Swing应用程序中使用它们:

I recommend the following open source tools (we are using them on our Java Swing applications):


  • UISpec4J - 非可视化测试工具,非常适合用于GUI应用程序的单元测试/ TDD

  • Abbot - 适用于功能测试。也有记录&播放

  • UISpec4J - Non visual testing tool, very good for unit testing/TDD for the GUI application
  • Abbot - Is good for functional testing. Also have record & playback

您可以同时使用其中一个或其中任何一个

You can use both or either one of them

来自在我看来,最好的商业工具是IBM Rational Functional Tester - 它很好地支持Java应用程序。然而它很昂贵,并专注于记录和重播方法不太可靠。

From the commercial tools in my opinion the best is IBM Rational Functional Tester - it supports Java applications very well. However it is expensive and is focused on the record & replay approach which is not very reliable.

这篇关于自动GUI测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆