Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated tests for Java Swing GUIs [closed]

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

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.

like image 858
pauldoo Avatar asked Sep 18 '08 09:09

pauldoo


People also ask

Can GUI testing be automated?

Benefits of Automated GUI testingGUI testing is mostly performed manually. However, while assessing the performance of small straightforward testers, a lot of developers write scripts for automated testing.

Is swing good for GUI?

Swing provides a rich set of widgets and packages to make sophisticated GUI components for Java applications. Swing is a part of Java Foundation Classes(JFC), which is an API for Java GUI programing that provide GUI.


1 Answers

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

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.

like image 94
Jwest08 Avatar answered Oct 04 '22 23:10

Jwest08