Search code examples
javaeclipsejavafxtestfxjubula

Using Jubula jars in JavaFX


I have to develop a program (like squish / jubula / zaptest ) test applications that programmed with JavaFX. So my questions are:

1) Can jubula jars be added to an application as a test framework libraries (like TestFX) ? And if so, is there a documentation or tutorial for this? I tried to use TestFX but got into huge problems with hooking and AUT.

2) Can Jubula be modified as it was a different Eclipse tool? And how?

Every comment will be appreciated.


Solution

  • 1) Jubula has a jar (RC - remote control) for JavaFX. It's launched with the application; this makes the AUT controllable by the Jubula agent. I don't know how hard it is to hook an app with TestFX, in Jubula it's well documented how to do it.

    2) However it's open source, setting up the build-chain of an RCP application can be a tremendous amount of work. I recommend you don't change Jubula; when it can't do something you need, then write java methods in your application instead and invoke them with the agent.

    To your comment: From 8.0 you can control your AUT agent from Java, but it's rather inconvenient: https://www.eclipse.org/community/eclipse_newsletter/2015/july/article3.php

    The test-case editor is way easier to use and it has the same capabilities.