abbot.tester |
Provide component-specific actions and tests. Each unique class of GUI component can have its own Tester class derived from
{@link abbot.tester.ComponentTester}.
This class provides any number of action methods which can exercise the
various user semantic actions that the GUI component supports. For example,
{@link abbot.tester.AbstractButtonTester}
provides the
{@link abbot.tester.AbstractButtonTester#actionClick(java.awt.Component)}
method to perform a button click. The Tester may also provide bean-like
is/get methods to facilitate access to component properties that might not
otherwise be readily available as a property. For example,
{@link abbot.tester.JPopupMenuTester}
has a
{@link abbot.tester.JPopupMenuTester#getMenuLabels(java.awt.Component)}
method which returns the text of the menu items within it as an array of
{@link java.lang.String}.
Keymaps
Provides maps between keystrokes and resulting typed characters, so that for
any given key character, the keystroke required to produce it may be looked
up. The maps are properties files where the keys are a combination of
keycodes and modifiers. In the case of multiple keystrokes mapping to the
same character, a modifier suffix of zero will take precedence over others,
but otherwise you might get any valid keystroke which produces the
character.
Each property key comprises a keycode represented by the suffix of
{@link java.awt.event.KeyEvent}.VK_ constant, a period, and an integer
modifier mask (0/shift, 1/control, 2/meta, or 8/alt). The value is either the
hex value of the resulting character, or one of {illegal, system, untyped}.
"Illegal" means an IllegalArgumentException is thrown if the value is used,
"system" means that the key caused the key mapping application to lose
keyboard focus, and "untyped" means that no keychar input was produced.
The name/value pairs in the keymap files are sorted to facilitate diffs. If
keymaps differ for the same locale/OS, then non-producing values should take
precedence over defined values, provided there exists at least one keystroke
in the file for producing the given value. Only values defined across
all keymaps for a given locale/OS should be used to avoid using any
invalid keystrokes.
There is a keymap generator which generates these maps for the current locale
and OS.
@see abbot.tester.MapGenerator
|
Java Source File Name | Type | Comment |
AbstractButtonTester.java | Class | |
AbstractButtonTesterTest.java | Class | Unit test to verify the AbstractButtonTester class.
- Test all exported actions.
|
ActionFailedException.java | Class | Indicates that a ComponentTester action failed to execute properly. |
AWTConstants.java | Interface | Provides shared UI- and action-related constants. |
ButtonTester.java | Class | Provides Button activation support, since otherwise AWT buttons cannot be
activated in AWT mode. |
ButtonTesterTest.java | Class | |
CheckboxTester.java | Class | Provides Checkbox activation support, since otherwise AWT buttons cannot be
activated in AWT mode. |
CheckboxTesterTest.java | Class | |
ChoiceTester.java | Class | AWT Choice (ComboBox/picklist) support. |
ChoiceTesterTest.java | Class | |
ComponentLocation.java | Class | Provides encapsulation of a visible Component-relative location. |
ComponentLocationTest.java | Class | |
ComponentMissingException.java | Class | Indicates that a component required by a ComponentTester action was not
found. |
ComponentNotShowingException.java | Class | Indicates that a ComponentTester action failed due to the component not
being visible on screen. |
ComponentTester.java | Class | Provides basic programmatic operation of a
Component and related
UI objects such as windows, menus and menu bars throuh action methods.
Also provides some useful assertions about properties of a
Component . |
ComponentTesterTest.java | Class | Unit test to verify the base ComponentTester class.
- Test all exported actions.
|
ContainerTester.java | Class | Hierarchy placeholder for Container. |
DialogTester.java | Class | |
DragLabel.java | Class | |
DropLabel.java | Class | |
DropTable.java | Class | |
DropTree.java | Class | |
FileComparator.java | Class | Compare two files or filenames. |
FileComparatorTest.java | Class | Test FileComparator. |
FileDialogTester.java | Class | Tester for the java.awt.FileDialog.
author: Vrata Venet, European Space Agency, Madrid-Spain (av@iso.vilspa.esa.es) author: Tim Wall (twall:users.sf.net) author: NOTE: different platforms do different things when the dialog is hidden. author: w32 returns null for the file if FileDialog.hide is invoked; other author: platforms may leave the file as is. |
FileDialogTesterTest.java | Class | |
FrameTester.java | Class | |
FrameTesterTest.java | Class | |
ImageComparator.java | Class | This code expects the availability of the com.sun.image.codec.jpeg
extensions from the Sun JDK 1.3 or JRE. |
ImageComparatorTest.java | Class | Test ImageComparator. |
InputState.java | Class | Class to keep track of a given input state. |
InputStateTest.java | Class | Verify proper operation of tracking input state. |
JButtonTester.java | Class | Provides action methods and assertions for
JButton s. |
JComboBoxTester.java | Class | |
JComboBoxTesterTest.java | Class | |
JComponentTester.java | Class | Provides auto-scrolling prior to events for JComponent-derived classes. |
JComponentTesterTest.java | Class | |
JFileChooserTester.java | Class | Tester for the
JFileChooser . |
JFileChooserTesterTest.java | Class | |
JInternalFrameTester.java | Class | |
JInternalFrameTesterTest.java | Class | |
JLabelTester.java | Class | Provides action methods and assertions for
JLabel s. |
JListLocation.java | Class | Provides encapsulation of the location of a row on a JList (a coordinate,
item index or value). |
JListLocationTest.java | Class | |
JListTester.java | Class | Provide actions and assertions for a
JList component.
The
JList substructure is a "row", and
JListLocation provides different identifiers for a row.
- Select an item by index
- Select an item by value (its string representation)
Note that
JList uses "index" and "value" in its API. |
JListTesterTest.java | Class | |
JMenuItemTester.java | Class | Provide action methods and assertions for
JMenuItem s. |
JPopupMenuTester.java | Class | Provides access to JPopupMenu contents. |
JRootPaneTester.java | Class | Hierarchy placeholder for JRootPane. |
JScrollBarTester.java | Class | Provides user actions on a JScrollPane. |
JScrollBarTesterTest.java | Class | |
JSliderTester.java | Class | Provides access to all user actions on a JSlider. |
JSliderTesterTest.java | Class | |
JSpinnerTester.java | Class | Provides access to all user actions on a JSpinner. |
JSpinnerTesterTest.java | Class | |
JSplitPaneTester.java | Class | Provides user actions on a JSplitPane. |
JSplitPaneTesterTest.java | Class | |
JTabbedPaneLocation.java | Class | Provides encapsulation of a location on a JTabbedPane (notably a tab).
Use the JTabbedPaneLocation#JTabbedPaneLocation(Point) ctor to indicate a
specific coordinate. |
JTabbedPaneLocationTest.java | Class | |
JTabbedPaneTester.java | Class | Provides user actions on a JTabbedPane. |
JTabbedPaneTesterTest.java | Class | |
JTableHeaderLocation.java | Class | Provides encapsulation of the location of a col on a JTableHeader (a coordinate,
item index or value). |
JTableHeaderLocationTest.java | Class | |
JTableHeaderTester.java | Class | Provide table header location support, mostly. |
JTableLocation.java | Class | Provides encapsulation of a location on a JTable (notably a row).
Use the JTableLocation#JTableLocation(Point) ctor to indicate a specific
coordinate. |
JTableLocationTest.java | Class | |
JTableTester.java | Class | Provide user actions on a JTable. |
JTableTesterTest.java | Class | |
JTextComponentTester.java | Class | Provides actions and assertions
JTextComponent -based
components. |
JTextComponentTesterTest.java | Class | |
JTextFieldTester.java | Class | Provides actions and assertions
JTextField -based
components. |
JTextFieldTesterTest.java | Class | |
JToolBarTester.java | Class | |
JToolBarTesterTest.java | Class | |
JTreeLocation.java | Class | Provides encapsulation of a visible location on a
JTree .
A row index or a
String ified
TreePath (i.e. |
JTreeLocationTest.java | Class | |
JTreeTester.java | Class | Provide operations on a JTree component.
The JTree substructure is a "row", and JTreeLocation provides different
identifiers for a row.
- Select an item by row index
- Select an item by tree path (the string representation of the full
path).
|
JTreeTesterTest.java | Class | |
KeyStrokeMap.java | Class | Provides read of local-specific mappings for virtual keycode-based
KeyStrokes to characters and vice versa. |
KeyStrokeMapProvider.java | Interface | Provides read/write of local-specific mappings for virtual keycode-based
KeyStrokes to characters and vice versa. |
KeyStrokeMapTest.java | Class | Unit test to verify basic key stroke mappings. |
ListLocation.java | Class | Provides encapsulation of the location of a row on a List (a coordinate,
item index or value). |
ListTester.java | Class | Provides actions for java.awt.List . |
ListTesterTest.java | Class | |
LocationUnavailableException.java | Class | Indicates that a location can't be provided. |
MapGenerator.java | Class | Provides read/write of locale-specific mappings for virtual keycode-based
KeyStrokes to characters and vice versa. |
MapGeneratorTest.java | Class | |
Robot.java | Class | Provide a higher level of abstraction for user input (A Better Robot).
The Robot's operation may be affected by the following properties:
abbot.robot.auto_delay
Set this to a value representing the millisecond count in between
generated events. |
RobotAppletTest.java | Class | |
RobotAWTModeTest.java | Class | |
RobotDragDropTest.java | Class | Unit test to verify Robot drag/drop operation. |
RobotTest.java | Class | Unit test to verify Robot operation. |
RobotVerifier.java | Class | Provides methods to verify that the robot on the current platform works
properly. |
TextComponentTester.java | Class | Provides user actions for TextComponent-derived components. |
TextComponentTesterTest.java | Class | |
WindowTester.java | Class | Provides user actions on a Window. |
WindowTracker.java | Class | Keep track of all known root windows, and all known showing/hidden/closed
windows. |
WindowTrackerTest.java | Class | |