Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best testing tool for Swing-based applications? [closed]

While we try to set up as many unit tests as time allows for our applications, I always find the amount of UI-level tests lacking. There are many options out there, but I'm not sure what would be a good place to start.

What is your preferred unit testing tool for testing Swing applications? Why do you like it?

like image 238
awied Avatar asked Sep 17 '08 04:09

awied


People also ask

What is swing testing?

The sensitivity, specificity, and accuracy of the swing test were 82.6%, 100%, and 85.2% of those of radiographic analysis, respectively. The swing test is a simple physical examination technique to detect whether valgus deformity exists when the knee flexes.

What replaced WinRunner?

On February 15, 2008, HP Software Division announced the end of support for HP WinRunner versions 7.5, 7.6, 8.0, 8.2, 9.2—suggesting migration to HP Functional Testing software as a replacement.


2 Answers

On our side, we use to test SWING GUI with FEST. This is an adapter on the classical swing robot, but it ease dramatically its use.

Combined with TestNG, We found it an easy way to simulate "human" actions trough the GUI.

like image 60
gizmo Avatar answered Oct 17 '22 07:10

gizmo


If your target application has custom components, I would definitely recommend Marathon to automate your tests.

I was given the task of automating an application with several extremely complicated custom components, written in-house from the ground up. I went through a review process that lasted two months, in which I made the decision on which test tool to use, from a list of close to 30 test tools that were available, both commercial and FOSS.

It was the only test tool that was able to successfully automate our particular custom components; where IBM's Rational Functional Tester, Microfocus' TestPartner, QF-Test, Abbot & FEST failed.

I have since been able to successfully integrate the tests with Cruise Control such that they run upon completing each build of the application.

A word of warning though:
1) it is rather rough around the edges in the way it handles JTables. I got around this by writing my own proxy class for them.
2) Does not support record/replay of drag-and-drop actions yet.

like image 28
bguiz Avatar answered Oct 17 '22 06:10

bguiz