Test swing

How do you test Swing apps? I wrote Unit test cases for the code, and therefore, I am sure that it will work well (if it is not, then my test cases were insufficient). But how do you test user interface applications. This may not seem very good, or the functionality is fuzzy or something else.

In the last application I built, I tested the user interface and it worked well; Only later I forged a small code, so I violated the modal and user interface, which went unnoticed and exploded with the client. I know this is a bit vague, but pretty confident people will have different methods of testing UI applications.

+4
source share
1 answer

UISpec4J is an open source functional and / or unit test library for Swing Java applications built on top of JUnit and TestNG.

But you should know that unit testing in the user interface (Swing) is complicated.

+4
source

All Articles