Stephan van Hulst wrote:Doesn't Selenium just test what appears in the browser? Doesn't the application at least need to be deployed on a test server for that?
I believe so. Although I've been reading up on Spring Integration Testing and I think it can maybe cover some of that.
One problem is that a lot of modern web GUIs need both a remote JavaScript engine and at least some simulation of host logic to respond. Selenium itself can likely fake out the client-side stuff, since it's in JavaScript anyway, but you'd still need to emulate a server. Which, I suppose is possible. Ah, I really don't know what I'm talking about here. I'd have to go refresh my Selenium know-how. But it's possible.
Spring Boot can likely do more, since Spring Boot contains its own servet/JSP engine anyhow. A GUI like
Swing, of course, has its own testing needs.
As a rule, I do most of my application logic in business beans, which can simply be unit-tested. When I really need to test a GUI, it's likely to be as part of testing an entire workflow.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.