I had to recently add UI tests for an application implemented with Swing library for the Posmulten project. The GUI does not do any rocket science. It does what the Posmulten project was created for, generating DDL statements that make RLS policy for the Postgres database, but with a user interface based on Swing components. Now, because the posmulten is an open-source project and the CI/CD process uses GitHub action, it would be worth having tests covering the UI application’s functionality. Tests that could be run in a headless environment.

Testing Framework

As for testing purposes, I picked the AssertJ Swing library. It is effortless to mimic application users’ actions. Not to mention that I could, with no effort, check application states and their components. 

Leave a Reply

Your email address will not be published. Required fields are marked *