abbot.editor.recorder |
Provide recording support for component-specific user actions. Recorders
capture a raw event stream and turn it into a
{@link abbot.tester.ComponentTester} action method. This
group of classes is designed to recognize and capture a distinct semantic
event from basic OS events as they are generated by the system or the user.
For example, the {@link abbot.editor.recorder.AbstractButtonRecorder}
waits for button press, release, and click events in any class derived from
{@link javax.swing.AbstractButton} in the tested GUI, saving them as a "Click"
action (which is provided by the base
{@link abbot.tester.AbstractButtonTester} class).
Each unique class of GUI component can have its own recorder class derived
from {@link abbot.editor.recorder.ComponentRecorder}.
This class provides a framework for parsing basic input events into a
conception action on a given component class. For example,
{@link abbot.editor.recorder.JComboBoxRecorder}
converts a user's combo selection into a script step encapsulating the
{@link abbot.tester.JComboBoxTester#actionSelectIndex(Component,int index)}
method to perform a combo box selection.
Recorders are used within the script editor by
{@link abbot.editor.recorder.EventRecorder}, but the that class is designed
for use by any framework that wishes to capture and parse events.
|
Java Source File Name | Type | Comment |
AbstractButtonRecorder.java | Class | Record basic semantic events you might find on an AbstractButton. |
AbstractInternalFrameWatcher.java | Class | |
AbstractRecorderFixture.java | Class | Provide generic support for checking contents of recorded steps. |
AbstractSemanticRecorderFixture.java | Class | All SemanticRecorder tests should derive from this class. |
ButtonRecorder.java | Class | Record simple clicks on a Button component. |
CaptureDragDropTest.java | Class | Verify capture of various Drag/Drop operations. |
CheckboxRecorder.java | Class | Record basic click a Checkbox component. |
ChoiceRecorder.java | Class | Record basic semantic events you might find on an Choice component. |
ChoiceRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a Choice. |
ComponentRecorder.java | Class | Record basic semantic events you might find on any component. |
ComponentRecorderTest.java | Class | Unit test to verify proper capture of basic user semantic events. |
ContainerRecorder.java | Class | Record basic semantic events you might find on an Container. |
DialogRecorder.java | Class | Record basic semantic events you might find on an Window. |
DialogRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a Dialog. |
EventRecorder.java | Class | Provides recording of raw AWT events and high-level semantic events. |
EventRecorderTest.java | Class | Unit test to verify proper capture of multiple user semantic events when
parsed from a continuous event stream.
TODO: feed the event recorder one or more canned event sequences with the
expected results. |
FileDialogRecorder.java | Class | Recorder for the java.awt.FileDialog. |
FileDialogRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a FileDialog. |
FrameRecorder.java | Class | Record basic semantic events you might find on an Window. |
FrameRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a Frame. |
JComboBoxRecorder.java | Class | Record basic semantic events you might find on an JComboBox. |
JComboBoxRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a JComboBox. |
JComponentRecorder.java | Class | Record basic semantic events you might find on an JComponent. |
JComponentRecorderTest.java | Class | Test recording of JComponent-specific events. |
JInternalFrameRecorder.java | Class | Handle the recording of events related to an internal frame
(JInternalFrame). |
JInternalFrameRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a Window. |
JListRecorder.java | Class | Record basic semantic events you might find on an JList. |
JListRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a JList. |
JMenuItemRecorder.java | Class | Override AbstractButton behavior, since we expect to grab a menu selection
instead of a click. |
JTabbedPaneRecorder.java | Class | Record basic semantic events you might find on an JTabbedPane. |
JTabbedPaneRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a JTabbedPane. |
JTableRecorder.java | Class | Record basic semantic events you might find on an JTable. |
JTableRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a JTable. |
JTextComponentRecorder.java | Class | Record basic semantic events you might find on an JTextComponent. |
JTextComponentRecorderTest.java | Class | Test recording of JTextComponent-specific events. |
JTreeRecorder.java | Class | Record basic semantic events you might find on an JTree. |
JTreeRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a JTree. |
Recorder.java | Class | The Recorder provides a mechanism for recording an event stream and
generating a sequence of script steps from that stream.
NOTE: when writing a recorder, be very careful not to test for
platform-specific behavior, and avoid being susceptible to
platform-specific bugs. |
RecordingFailedException.java | Class | |
SemanticEvents.java | Interface | Provide mnemonic constants for different types of semantic events. |
SemanticRecorder.java | Class | Template for recording AWTEvents and converting them into an appropriate
semantic event. |
WindowRecorder.java | Class | Record basic semantic events you might find on an Window. |
WindowRecorderTest.java | Class | Unit test to verify proper capture of user semantic events on a Window. |