Testing UI is difficult. What do you think is the best unit testing framework for Swing?
JUnit is an open source framework you can use to write and run tests. It aims to help develop bug-free and reliable code written in Java. JUnit provides test runners that run tests and assertions to test the expected results.
Most application users spend all of their time interacting with your program through it's UI, it's user interface. Unit tests are back-end tests, they can check that a calculation is correct, but they can't verify that the results display correctly to your user.
Swing is a component-based framework, whose components are all ultimately derived from the JComponent class.
The swinging-flashlight test, also known as the swinging light test, is used in medical examinations to identify a relative afferent pupillary defect.
Currently the best in my opinion is FEST.
What do you think is the best unit testing framework for Swing?
Good question. I can't help you with that. I can point you to articles about ui testing I have read from Misko Hevery's site
The important thing is to separate the graphical UI from the control logic and data. This can be achieved with the standard Model View Controller design pattern
This is a website about testing.I found this interesting article from Michael Featers explaining UI Test Automation Tools are Snake Oil
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With