mAu
mAu

Reputation: 2018

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.

Upvotes: 14

Views: 23953

Answers (7)

Alex
Alex

Reputation: 31

Jubula is now totally free, and does indeed support JavaFX.

Upvotes: 1

Gangnus
Gangnus

Reputation: 24464

According to Eclipse site, the modern testing tools for JavaFX in the year 2015 are Squish and Jubula . But Squish is commercial. And Jubula is partly free - JavaFX belongs to that free part. And in the Eclipse Mars version already exists the testing distribution. Uses Jubula for UI testing.

Upvotes: 1

Brian Blonski
Brian Blonski

Reputation: 1802

Automaton is another testing library for JavafX and Swing GUIs born out of the same team that did TestFX

  • easy tests for Swing and JavaFX applications
  • written for testers. Only basic coding skills required.

Upvotes: 5

minisu
minisu

Reputation: 1010

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

Upvotes: 22

Sergey Grinev
Sergey Grinev

Reputation: 34508

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.

Upvotes: 17

assylias
assylias

Reputation: 328608

Another library (which I have not used or tested) is TestComplete.

Upvotes: 5

Chui Tey
Chui Tey

Reputation: 5564

There's a new test robot called MarvinFX:

MarvinFX has the goal to easily test JavaFX controls and scenes with a special attention on properties.

This other post shows how to use assertions and rules with MarvinFX.

Upvotes: 6

Related Questions