User scenario testing for Java Applications on PC

927 views Asked by At

I'm looking for a good Testing-Framework for Java GUI Applications. For Android I know Robotium and it would be really cool if there is something similar for Java PC Applications.

Example Testcase:
1. Right click on TreeView
2. Click on Menuitem "Expand all"
3. Check if Tree has been expanded and there is a new item visible with maybe "RAM" as text.

I searched for Java Test frameworks but didn't found anything like Robotium.

What are you using to test your Java GUIs?

2

There are 2 answers

0
Petr Mensik On BEST ANSWER

You have severel options

  • FEST - compatible with TestNG and JUnit, framework is written to be use specially for Swing testing so it's very fast, in can take screenshots after failures, even sometimes determine the cause of this failure and other features. I would defintely give this one a tyr
  • Marathon - looks very cool too, also has handful of features but unfortunately has a paid license
  • Sikuli - image-based testing framework, allows you to write test scripts in Java
  • Cucumber - you can write your tests in plain English, looks very interesting, so I would definitely give this one a shot
  • and others...

As you can see, there are many frameworks, so the best is probably to go through their examples and basic tutorials and just grab what fits you the most.

0
maszter On