What is JUseCase?
JUseCase is an open source Java framework supporting recording and simulation of user interaction in Java Swing GUIs. The interactions are recorded to plain-text use case scripts, which then may be used to simulate the interaction you just recorded. JUseCase currently supports most of the standard events, such as selecting items in a list, toggling radio buttons/checkboxes, flipping tabs, selecting/editing table cells etc., but the framework can easily be extended to support custom components/events.
Why would you want to use it?
Add JUseCase to your Java Swing application to prepare it for automated testing. JUseCase is in itself not a testing tool, but rather a means of driving the GUI application through a use case scenario without user intervention. With such a tool in place, you can quickly record use cases that, when replayed, simulates interaction with the application as a part of a test. Application behavior should be verified by an external tool, such as TextTest.
How does it work?
When creating your Java Swing GUI, you tell JUseCase which events you want to record by assigning use case "command names" to those events. The command names will then be recorded to a use case script when detected while running the application with JUseCase in recording mode. When running in replay mode, JUseCase reads command names from the script and simulates the corresponding events.
Head on over to the tutorials for an introduction on how to set JUseCase up and how to use it. For a more detailed description of how the framework works, go to the more technical how does it work? section.