TestLeft can simulate user actions and access internal properties and methods of various Java controls. You can also command your tests to recognize your custom controls as Java controls to simulate user actions against them.
About Supported Java Controls
TestLeft can simulate user actions against any Java control via graphical user interface. In addition, TestLeft provides extended support for the most of Java controls.
In your tests, you can cast these controls to appropriate interfaces that extend the control’s functionality with a number of additional methods and properties. Use those methods and properties to simulate various user actions over the controls, for example, select individual items or retrieve item text.
Supported Component Versions
Java 7, 8, 11 and 17.
Supported Classes
TestLeft recognizes controls by their class name. Below is a full list of the Java controls that TestLeft supports.
Controls | Classes |
---|---|
Button |
javax.swing.JButton |
Check box |
javax.swing.JCheckBox |
Combo box |
javax.swing.JComboBox |
List |
javax.swing.JList |
Main menu |
|
Menu bar |
javax.swing.JMenuBar |
Password field |
javax.swing.JPasswordField |
Radio button |
javax.swing.JRadioButton |
Scroll bar |
javax.swing.JScrollBar javax.swing.JScrollPane$ScrollBar |
Scroll pane |
javax.swing.JScrollPane |
Slider |
javax.swing.JSlider |
Spinner |
javax.swing.JSpinner |
Tabbed pane |
javax.swing.JTabbedPane |
Table |
javax.swing.JTable |
Text area |
javax.swing.JTextArea javax.swing.JTextPane javax.swing.JEditorPane |
Text field |
javax.swing.JTextField javax.swing.JFormattedTextField |
Toggle button |
javax.swing.JToggleButton |
Tool bar |
javax.swing.JToolBar |
Tree |
javax.swing.JTree |
Recognizing Custom Controls
To command TestLeft to recognize your custom controls as Java controls, cast your control to the interface of the appropriate type.
If your control does not fit the type of the control, for which the interface provides support, it may improperly respond to commands that TestLeft will send, and simulating user actions against your control may cause errors.