abbot 1.0.1

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » abbot 1.0.1 
Abbot
License:
URL:http://abbot.sourceforge.net/
Description:The Abbot framework is a Java library for GUI unit testing and functional testing.
Package NameComment
abbot Provides testing support for Java GUIs. See here for documentation on getting started.

Package Specification

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
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. Recorders capture a raw event stream and turn it into a {@link abbot.tester.ComponentTester} action method. This group of classes is designed to recognize and capture a distinct semantic event from basic OS events as they are generated by the system or the user. For example, the {@link abbot.editor.recorder.AbstractButtonRecorder} waits for button press, release, and click events in any class derived from {@link javax.swing.AbstractButton} in the tested GUI, saving them as a "Click" action (which is provided by the base {@link abbot.tester.AbstractButtonTester} class).

Each unique class of GUI component can have its own recorder class derived from {@link abbot.editor.recorder.ComponentRecorder}. This class provides a framework for parsing basic input events into a conception action on a given component class. For example, {@link abbot.editor.recorder.JComboBoxRecorder} converts a user's combo selection into a script step encapsulating the {@link abbot.tester.JComboBoxTester#actionSelectIndex(Component,int index)} method to perform a combo box selection.

Recorders are used within the script editor by {@link abbot.editor.recorder.EventRecorder}, but the that class is designed for use by any framework that wishes to capture and parse events.

abbot.editor.widgets
abbot.finder Provides component search and lookup facilities. @since 0.12.0
abbot.finder.matchers Provides various types of Matcher implementations for use in component searches. @since 0.12.0
abbot.i18n Provides internationalization support for Abbot and Costello. All locale-based string translations should be stored in properties files or classes in this package.

abbot.script Provides basic elements for constructing a test script. A {@link abbot.script.Step} is the basic unit of execution. Steps may be grouped into a {@link abbot.script.Sequence}. See the documentation for {@link abbot.script.Step} for information on extending script features.

Following are some of the basic elements of a {@link abbot.script.Script}:

  • Invoking Code
    Usually you will have a single Launch step at the beginning of your script to load and activate your GUI under test. See the Launch class for details.
  • Component Reference
    This entry is not an actual script step, but a representation of an actual component within the GUI. The ComponentReference ID may be used in argument lists where a java.awt.Component would normally be expected. See the {@link abbot.script.ComponentReference} class for details.
  • Action
    This type of step invokes a semantic user action on the GUI, such as a mouse clickk, menu selection, or drag/drop action. Different actions are supported by different GUI components. All actions supported may be found in the APIs for the {@link abbot.tester.ComponentTester} and its subclasses. See the {@link abbot.script.Action} class for details.
  • Assert
    This type of step tests for a condition in the GUI, such as whether a Component property matches a particular value, or it might invoke a custom test exported by a ComponentTester class. See the Assert class for details.
  • Wait
    This type of step simply waits for an Assert to become true, with an adjustable timeout and sleep cycle. See {@link abbot.script.Assert#setWait(boolean)} for details.

abbot.script.parsers Provide explicit conversions from String to another class, for use by the interpreter when evaluating stringified values in scripts. See the {@link abbot.script.parsers.Parser} interface for details.
abbot.tester Provide component-specific actions and tests. Each unique class of GUI component can have its own Tester class derived from {@link abbot.tester.ComponentTester}. This class provides any number of action methods which can exercise the various user semantic actions that the GUI component supports. For example, {@link abbot.tester.AbstractButtonTester} provides the {@link abbot.tester.AbstractButtonTester#actionClick(java.awt.Component)} method to perform a button click. The Tester may also provide bean-like is/get methods to facilitate access to component properties that might not otherwise be readily available as a property. For example, {@link abbot.tester.JPopupMenuTester} has a {@link abbot.tester.JPopupMenuTester#getMenuLabels(java.awt.Component)} method which returns the text of the menu items within it as an array of {@link java.lang.String}.

Keymaps

Provides maps between keystrokes and resulting typed characters, so that for any given key character, the keystroke required to produce it may be looked up. The maps are properties files where the keys are a combination of keycodes and modifiers. In the case of multiple keystrokes mapping to the same character, a modifier suffix of zero will take precedence over others, but otherwise you might get any valid keystroke which produces the character.

Each property key comprises a keycode represented by the suffix of {@link java.awt.event.KeyEvent}.VK_ constant, a period, and an integer modifier mask (0/shift, 1/control, 2/meta, or 8/alt). The value is either the hex value of the resulting character, or one of {illegal, system, untyped}. "Illegal" means an IllegalArgumentException is thrown if the value is used, "system" means that the key caused the key mapping application to lose keyboard focus, and "untyped" means that no keychar input was produced.

The name/value pairs in the keymap files are sorted to facilitate diffs. If keymaps differ for the same locale/OS, then non-producing values should take precedence over defined values, provided there exists at least one keystroke in the file for producing the given value. Only values defined across all keymaps for a given locale/OS should be used to avoid using any invalid keystrokes.

There is a keymap generator which generates these maps for the current locale and OS. @see abbot.tester.MapGenerator

abbot.tester.extensions Extensions to {@link abbot.tester.ComponentTester} to provide support for custom components. @see ComponentTester Customization
abbot.util
example Miscellaneous examples demonstrating Abbot usage.

Package Specification

Related Documentation

For tool documentation, please see:
junit.extensions.abbot Provide support for running scripts and UI-oriented unit tests as test cases under JUnit.

Package Specification

Related Documentation

For overviews, tutorials, examples, guides, and tool documentation, please see:
test.dynamic
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.