HomeHome
MarathonMarathon
MarathoniteMarathonite
CompanyCompany
ContactContact
WeblogWeblog
 

All things Marathon, Marathonite, Java and GUI Test automation, scripting and whatever is useful for test automation projects.

CATEGORIES

BOOKMARKS

Marathon and JavaFX

January 5th, 2009

This came somewhat as an anti-climax.

Suitably impressed (and also inspired) by Using FEST-Swing to discover (via testing) what’s under the hood of JavaFX - I decided to give JavaFX a try with Marathon. This is the way I went about it:

  1. Since Marathon can’t (yet) support any JavaFX controls, I searched around and found some examples that purely use swing components from here. They are pretty simple, since I don’t know JavaFX - I can’t make any thing more complicated work.
  2. Next is to find the java command line used by javafx when an application is launched. Atleast on OSX it is a shell script. I just modified it and added an ‘echo’ to print out the command line.
  3. From the command line, I get a ton of jars.
  4. Next is to create a Marathon project. That is simple enough. I set all these jars into the class path and give the main class and save the project.
  5. Record a test case - and it works!!!

What does this mean? If you use only Swing components and develop a JavaFX application, Marathon can be used to test it. But, whatever I have seen on the net - it looks like there is going to be proliferation of JavaFX controls. At a quick glance, it looks like Marathon should at least handle SGControl’s for it to be more useful. I will have a look into it soon.

Meanwhile, if anyone can point me to some good JavaFX/Swing application - I would like to give it a try.

Posted in Marathon

Leave a Reply