O'Reilly logo

Swing Extreme Testing by Tim Lavers, Lindsay Peters

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required