GUI testing framework for JavaFX 2


I'm currently reading the book Growing Object-Oriented Software Guided by Tests which gives a decent introduction into test driven development.

One drawback is that the code developed through the book is based on Swing. For my next project I'd like to use Java FX 2 and I'm wondering if there are any GUI testing frameworks out there for it? The book introduces windowlicker, which allows testing Swing applications only.

1/27/2014 11:07:38 AM

Accepted Answer

There is a library named JemmyFX. Jemmy itself is a set of libraries and tools to test UI applications (mostly Java-based: Swing, AWT, SWT; but it's being extended to native right now). JemmyFX covers JavaFX for that matter.

JemmyFX can be downloaded as a part of the test branch of OpenJFX 2 (open-sourced part of JavaFX).

For JavaFX 8, the test branch includes support for new controls and other fixes.

6/19/2013 4:32:56 PM

There's yet another new testing library for JavaFX called TestFX.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow