Chapter 10. More Techniques for Testing Swing Components

In the last several chapters, we have developed a lot of techniques for writing user interface tests. For mimicking user actions we have used Cyborg, usually via a UI Wrapper class. For checking the state of components, we've used our UI class. These tests have been limited to user interfaces involving text fields and various kinds of buttons. In this chapter, we'll see how to test more complex user interface elements such as color choosers, file choosers, tables, trees, sliders, progress bars, menus, and active drawing areas. Generally speaking, there are interrogation methods in UI and manipulation methods in Cyborg. Together, these classes provide most of the tools we need for automated ...

Get Swing Extreme Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.