Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

which is the best java gui testing tool? [closed]

I'm looking for a java gui testing tool in which tests can be created by recording my gui actions (buttons pressed, windows closed, etc.)

A scripting mechanism for writing tests is not required.

It could be free or commercial, but cheap and great is better than expensive and great.

My application is a rich-client app written in Java SE 6.

Yoav

like image 886
Yoav Schwartz Avatar asked Jul 19 '09 12:07

Yoav Schwartz


People also ask

Which tool is used for tests in Java?

Most software developers are familiar with JUnit, a Java testing tool that does an excellent job simplifying unit tests written in Java. But TestNG is even better. TestNG is a combination of the best features from both JUnit and NTest.


2 Answers

If it's a Swing app you could take a look at Marathon.

like image 84
Richard Kettelerij Avatar answered Oct 14 '22 00:10

Richard Kettelerij


I concur with Kettelerij, Marathon's the way to go.

  • It's easy to integrate into external systems like Subversion & CruiseControl, becasue all the scripts are human readable (Jython) and not locked into some proprietary format that requires an export (like most of the commercial tools).

  • It is able to record scripts in your choice of Jython or JRuby, which are essentially python and ruby that give you access to Java API. Very easy to understand.

  • For advanced testers, you are able to identify which GUI component you want to select using not just their names, but instead a a unique subset of their properties, for example

    click('{Text: OK Enabled: true}')

... finds a component whose getText() is "OK" and isEnabled() is "true". This makes the scripts highly dynamic and easier to maintain.

like image 33
bojangle Avatar answered Oct 14 '22 00:10

bojangle