| Home >> All >> abbot >> [ script Javadoc ] |
abbot.script: Javadoc index of package abbot.script.
Package Samples:
abbot.script
Classes:
Launch: Provides scripted static method invocation. Usage: <launch class="package.class" method="methodName" args="..." [classpath="..."] [delegate=false] [threaded=true]> The args attribute is a comma-separated list of arguments to pass to the class method, and may use square brackets to denote an array, e.g. "[one,two,three]" will be interpreted as an array length 3 of String. The square brackets may be escapted ('\[' or '\]') to include them literally in an argument. The class path attribute may use either colon or semicolon as a path separator, but should preferably use relative paths to avoid ...
Assert: Encapsulate an assertion (or a wait). Usage: <assert method="[!]assertXXX" args="..." [class="..."]> <assert method="[!](get|is|has)XXX" component="component_id" value="..."> <wait ... [timeout="..."] [pollInterval="..."]> The first instance invokes a core assertion provided by the ComponentTester class; the class tag is required for assertions based on a class derived from ComponentTester; the class tag indicates the Component class, not the Tester class (the appropriate tester class will be derived automatically). The second format indicates a property check on the given component, ...
Action: Encapsulate an action. Usage: <action method="..." args="..."> <action method="..." args="component_id[,...]" class="..."> An Action reproduces a user semantic action (such as a mouse click, menu selection, or drag/drop action) on a particular component. The id of the component being operated on must be the first argument, and the class of that component must be identified by the class tag if the action is not provided by the base ComponentTester class. Note that the method name is the name of the actionXXX method, e.g. to click a button (actionClick on AbstractButtonTester), the XML ...
AppClassLoader: A custom class loader which installs itself as if it were the application class loader, optionally preloading all classes. A classpath of null is equivalent to the system property java.class.path. The class loader may optionally load a class before the parent class loader gets a chance to look for the class (instead of the default behavior, which always delegates to the parent class loader first). This behavior enables the class to be reloaded simply by using a new instance of this class loader. This class mimics the behavior of sun.misc.Launcher$AppClassLoader as much as possible. Bootstrap classes ...
ComponentReference: Encapsulate as much information as is available to identify a GUI component. Usage: <component id="..." class="..." [...]> A number of optional tags are supported to provide an increasingly precise specification of the desired component: tag a class-specific identifier, e.g. the label on a JButton. name the Component name, as set by setName() . Note that auto-generated names for windows and frames are ignored and are considered to be null. parent the reference id of this component's parent. (This list subject to change as required by the DefaultComponentFinder ).
Script: Provide a structure to encapsulate actions invoked on GUI components and tests performed on those components. Scripts need to be short and concise (and therefore easy to read/write). Extensions don't have to be. This takes a single filename as a constructor argument. Use ScriptTestCase and ScriptTestSuite to generate a suite (auto-generate the collection).
Step: Provides access to one step (line) from a script. A Step is the basic unit of execution. All derived classes should have a tag "sampleStep" with a corresponding class abbot.script.SampleStep. The class must supply at least a Constructor with the signature SampleStep(Resolver, HashMap). If the step has contents (e.g. Sequence), then it should also provide SampleStep(Resolver, Element, HashMap).
Sequence: Script step which groups a sequence of other Steps. The sub-Steps have a fixed order and are executed in the order contained in the sequence. Events sent by sub-Steps are propagated by this one.
AppletSecurityManager: 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.
Call: Class for script steps that want to invoke a method on a class. Subclasses may override getMethod and getTarget to customize behavior.
ForkedStepRunner: A StepRunner that runs the step in a separate VM. Behavior should be indistinguishable from the base StepRunner.
SendEvent: Script step to generate a single AWT event to a component. Currently used for key down/up and mouse motion.
Terminate: Placeholder step to indicate to a script that it should terminate. Doesn't actually do anything itself.
InvalidScriptException: Exception to indicate the script being parsed is invalid.
Comment: Represents a comment. No other function.
ForkedStepRunnerTest: Verify the sequence works as advertised.
SequenceTest: Verify the sequence works as advertised.
ComponentReferenceTest: Verify the script works as advertised.
ScriptTest: Verify the script works as advertised.
StepListener: Listener for script step feedback.
AppClassLoaderTest: Verify AppClassLoader operation.
| Home | Contact Us | Privacy Policy | Terms of Service |