We have now completed the tutorial! Squish can of course do much more than we have shown here, but the aim has been to get you started with basic testing as quickly and easily as possible. The User Guide (Chapter 14) provides many more examples, including those that show how tests can interact with particular widgets such as spinners, comboboxes, and line editors, and of course with view widgets and their underlying models.
The API Reference Manual (Chapter 15) and Tools Reference Manual (Chapter 16) give full details of Squish's testing API and the numerous functions it offers to make testing as easy and efficient as possible. It is well worth reading the User Guide (Chapter 14) and at least skimming the API Reference Manual (Chapter 15) and Tools Reference Manual (Chapter 16)—especially since the time invested will be repaid because you'll know what functionality Squish provides out of the box and can avoid reinventing things that are already available.
The key Java AWT/Swing examples with links to the places they are used are given below.
The Payment Form example
(How to Test Stateful and Single-Valued Widgets
(Java™—AWT/Swing) (Section 14.4.6.1.1))
shows how to test single-valued Java widgets such as:
JButton, JCheckBox, JComboBox,
JSpinner, and JTextField
The Item Views example (How to Test JList, JTable, and JTree widgets (Java—AWT/Swing) (Section 14.4.6.1.2)) shows how to test Java's multi-item widgets, including: JList, JTable, and JTree, and also the models that hold their data.
The CsvTable example (How to Test JTable and Use External Data Files (Java—AWT/Swing) (Section 14.4.6.1.3)) shows how to do data-driven testing using external data files.
In addition to the documented examples listed above, further Java
AWT/Swing example applications and their corresponding tests are
provided in SQUISHDIR/examples/java.