Jatin
Jatin

Reputation: 31754

Test swing application

How do you test Swing applications? For the code, I have written Unit test cases and hence I am sure that it will work well (If it doesn't, then my test cases were not adequate). But how do you test for applications with UI. It might not appear well or functionality is vague or something.

In the last application I built, I tested the UI and it worked well; Only later did I tweaked a little code, hence disturbing the modal and the UI which got unnoticed and blew up with client. I know its a bit vague, but pretty sure people would have different techniques to test UI applications

Upvotes: 4

Views: 829

Answers (1)

imxylz
imxylz

Reputation: 7937

UISpec4J is an Open Source functional and/or unit testing library for Swing-based Java applications, built on top of JUnit and TestNG.

But you should know that unit testing on UI(Swing) is difficult.

Upvotes: 4

Related Questions