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.
|
Java Source File Name | Type | Comment |
Action.java | Class | Encapsulate an action. |
ActionTest.java | Class | |
Annotation.java | Class | Provides a method for communicating a message on the display. |
AnnotationTest.java | Class | |
AppClassLoader.java | Class | A custom class loader which installs itself as if it were the application
class loader. |
AppClassLoaderTest.java | Class | Verify AppClassLoader operation. |
AppletSecurityManager.java | Class | This security manager extends sun.applet.AppletSecurity b/c
AppletViewer does some casts that assume that is the only security
manager that will be installed. |
Appletviewer.java | Class | Provides applet launch capability. |
AppletviewerTest.java | Class | |
ArgumentParser.java | Class | Provide parsing of a String into an array of appropriately typed
arguments. |
ArgumentParserTest.java | Class | Test ArgumentParser functions. |
Assert.java | Class | Encapsulate an assertion (or a wait). |
AssertTest.java | Class | |
Call.java | Class | Class for script steps that want to invoke a method on a class. |
CallTest.java | Class | |
Comment.java | Class | Represents a comment. |
ComponentReference.java | Class | Encapsulate as much information as is available to identify a GUI
component. |
ComponentReferenceTest.java | Class | Verify various ComponentReference requirements. |
Condition.java | Interface | |
Event.java | Class | Script step to generate a single AWT event to a component. |
EventExceptionHandler.java | Class | |
Expression.java | Class | Provides evaluation of arbitrary Java expressions. |
ExpressionTest.java | Class | |
Fixture.java | Class | Provides a method of defining a single script as the UI application test
context for multiple scripts. |
FixtureTest.java | Class | |
ForkedStepRunner.java | Class | A StepRunner that runs the step in a separate VM. |
ForkedStepRunnerTest.java | Class | Verify the sequence works as advertised. |
Interpreter.java | Class | Provides a BeanShell interpreter customized for the Costello scripting
environment. |
InvalidScriptException.java | Class | Exception to indicate the script being parsed is invalid. |
Launch.java | Class | Provides scripted static method invocation. |
LaunchTest.java | Class | |
NoSuchReferenceException.java | Class | Exception to indicate a Component reference does not exist. |
PropertyCall.java | Class | Provides support for using property-like methods, including select
non-static method access to Components. |
PropertyCallTest.java | Class | |
Resolver.java | Interface | Interface to provide a general context in which tests are run.
Includes ComponentReferences, current gui hierarchy, properties, and a
working directory. |
Sample.java | Class | Encapsulate capture of a value. |
SampleTest.java | Class | |
Script.java | Class | Provide a structure to encapsulate actions invoked on GUI components and
tests performed on those components. |
ScriptFilter.java | Class | |
ScriptTest.java | Class | Verify the script works as advertised. |
Sequence.java | Class | Script step which groups a sequence of other Steps. |
SequenceTest.java | Class | Verify the sequence works as advertised. |
Step.java | Class | Provides access to one step (line) from a script. |
StepEvent.java | Class | |
StepListener.java | Interface | Listener for script step feedback. |
StepRunner.java | Class | Provides control and tracking of the execution of a step or series of
steps. |
StepRunnerTest.java | Class | |
StepTest.java | Class | |
Terminate.java | Class | Placeholder step to indicate to a script that it should terminate. |
UIContext.java | Interface | Provides generic support to set up and tear down a UI context or
fixture. |
XMLConstants.java | Interface | Attributes used by script steps and component references. |
XMLifiable.java | Interface | |