This document is the API specification for the Abbot automated GUI testing framework and associated support packages.

See:
          Description

Abbot GUI Automation
abbot Provides testing support for Java GUIs.
abbot.finder Provides component search and lookup facilities.
abbot.finder.matchers Provides various types of Matcher implementations for use in component searches.
abbot.i18n Provides internationalization support for Abbot and Costello.
abbot.tester Provide component-specific actions and tests.
abbot.util  

 

Abbot JUnit Extension
junit.extensions.abbot Provide support for running scripts and UI-oriented unit tests as test cases under JUnit.

 

Scripting Support
abbot.script Provides basic elements for constructing a test script.
abbot.script.parsers Provide explicit conversions from String to another class, for use by the interpreter when evaluating stringified values in scripts.

 

Costello Script Editor
abbot.editor Provides support for editing Abbot test scripts.
abbot.editor.actions  
abbot.editor.editors  
abbot.editor.recorder Provide recording support for component-specific user actions.
abbot.editor.widgets  

 

Example Code
abbot.tester.extensions Extensions to ComponentTester to provide support for custom components.
example Miscellaneous examples demonstrating Abbot usage.

 

This document is the API specification for the Abbot automated GUI testing framework and associated support packages.

Abbot is a Java GUI testing framework and JUnit extension. The framework may be invoked directly from Java code (unit tests), or in a more simple, structured way using XML-based scripts. Both methods are designed to be used with the JUnit testing framework. You can launch a GUI, invoke arbitrary user actions on it, and examine its state.

The Abbot framework also includes the Costello editor, which facilitates editing scripts. The editor supports recording arbitrary user actions into a script.

Top  Abbot Home  API w/FRAMES 

The Abbot Framework

Abbot provides a framework for testing your GUI regardless of the current state of your code. If you are doing test-first development with lots of unit testing, then Abbot can provide the developer the tools needed to write individual unit tests. If you have an existing code base without existing unit tests, you can use the scripting level of Abbot to start building functional test scaffolding around your application until it is sufficiently stable to support refactoring and addition of unit tests.

In general, testing with Abbot consists of getting references to GUI components and either performing user actions on those components or making some assertions about their state. To facilitate this process, the framework provides ComponentReferences to get a handle on a GUI component (even when it may not yet exist), and extended Robot-like objects, which know how to perform user-level actions on various GUI components. These operations may be done from either a high-level script (useful for functional/acceptance testing) or directly from Java code (for example in a JUnit TestCase method).


Goals of the Abbot Framework

Aside from the primary goal of reliably automating tests of GUIs and GUI components, the Abbot framework has the following goals:



Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge