|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
See:
Description
Abbot framework | |
junit.extensions.awt | Provide testing support for Java GUIs under JUnit. |
junit.extensions.awt.converter | Provide explicit conversions from String to another class. |
junit.extensions.awt.script | Provides basic elements for constructing a test script. |
junit.extensions.awt.tester | Provide component-specific actions and tests. |
Costello Script Editor | |
junit.extensions.awt.editor | Provides support for editing AWT test scripts. |
Example Code | |
example |
Abbot/Costello Tests | |
test |
This document is the API specification for the Abbot automated GUI testing framework and associated support packages, version 0.4.
Abbot is a scripted Java GUI testing framework. Using simple XML-based scripts, you can launch a GUI, invoke arbitrary user actions on it, and examine its state. The scripts may be invoked from JUnit or with minor modification any other testing environment.
The Abbot framework also includes the Costello editor, which facilitates editing scripts. The editor also supports recording arbitrary user actions into a script.
Click on 100, 100
Move to 110, 110
Press down key
Press down key
Click on 110, 110
Select "blue" from the color list
The AWTTestCase provided for use with JUnit derives from junit.framework.TestCase and is a very simple wrapper to adapt the script to the JUnit testing framework. Scripts may be grouped into a test suite by using the AWTTestSuite class, which can automatically collect a group of tests into a suite based on file hierarchy, filenames, or other criteria. The preferred method of creating a suite is to derive your test class from AWTTestCase, then have the static "suite" method for that derived class create an instance of AWTTestSuite which selects for the scripts you wish to group. See the API documentation for details.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |