对于Java Swing的图形用户界面的自动化测试 [英] Automated tests for Java Swing GUIs

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

问题描述

选项有哪些那里楼宇自动化测试编写的Java Swing GUI的?

What options are there for building automated tests for GUIs written in Java Swing?

我想测试已使用的NetBeans Swing GUI生成器写了一些图形用户界面,这样的东西,而不需要被测code的特殊篡改的作品将是理想的。

I'd like to test some GUIs which have been written using the NetBeans Swing GUI Builder, so something that works without requiring special tampering of the code under test would be ideal.

推荐答案

道歉的死灵,但我最近花时间寻找一个坚实的易于使用Swing单元测试套件。令人惊讶的是相当难以找到关于这一问题的多好资料,并希望其他人会发现这条评论有用。

Apologies for the necro, but I recently spent time looking for a solid easy-to-use Swing unit test kit. Surprisingly it is fairly difficult to find much good information on this subject, and hopefully others will find this comment useful.

在我的搜索,我碰到FEST这似乎有希望的,除了开发商在2012年宣布,发展将不会继续

During my search I came across FEST which seemed promising, except that the developer announced in 2012 that development would not continue.

AssertJ 是工作对我非常好FEST的一个分支。这是积极维护(在撰写本文时),支持Java 8,有几个流行的库如番石榴和乔达时断言,而且是非常有据可查的。这也是免费开放的。

AssertJ is a fork of FEST that is working very well for me. It is actively maintained (at time of writing), supports Java 8, has assertions for a few popular libraries such as Guava and Joda Time, and is very well documented. It is also free and open.

这篇关于对于Java Swing的图形用户界面的自动化测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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