public class Fixture extends Script implements UIContext
A Fixture will only be run once for any consecutive group of
Script
s that refer to it. The StepRunner
class is
normally used to control execution and will manage fixture setup/teardown
as needed.
INTERPRETER, UNTITLED, UNTITLED_FILE, validate
TAG_ACTION, TAG_APPLETVIEWER, TAG_ARCHIVE, TAG_ARGS, TAG_ASSERT, TAG_AWT, TAG_AWTTESTSCRIPT, TAG_BORDER_TITLE, TAG_CALL, TAG_CLASS, TAG_CLASSPATH, TAG_CODE, TAG_CODEBASE, TAG_COMMENT, TAG_COMPONENT, TAG_COUNT, TAG_DELEGATE, TAG_DESC, TAG_DOCBASE, TAG_EVENT, TAG_EXPR, TAG_FILENAME, TAG_FIXTURE, TAG_FORKED, TAG_HEIGHT, TAG_HORDER, TAG_ICON, TAG_ID, TAG_INDEX, TAG_INVERT, TAG_INVOKER, TAG_KEYCHAR, TAG_KEYCODE, TAG_KIND, TAG_LABEL, TAG_LAUNCH, TAG_METHOD, TAG_MODIFIERS, TAG_NAME, TAG_PARAMS, TAG_PARENT, TAG_POLL_INTERVAL, TAG_PROPERTY, TAG_ROOT, TAG_SAMPLE, TAG_SCRIPT, TAG_SEQUENCE, TAG_SLOW, TAG_STOP_ON_ERROR, TAG_STOP_ON_FAILURE, TAG_TAG, TAG_TERMINATE, TAG_TEXT, TAG_THREADED, TAG_TIMEOUT, TAG_TITLE, TAG_TRIGGER, TAG_TYPE, TAG_VALUE, TAG_VMARGS, TAG_VORDER, TAG_WAIT, TAG_WEIGHTED, TAG_WIDTH, TAG_WINDOW, TAG_X, TAG_Y
Constructor and Description |
---|
Fixture(Resolver parent,
Map attributes)
Construct a
Fixture from its XML attributes. |
Fixture(String filename,
Hierarchy h) |
Modifier and Type | Method and Description |
---|---|
boolean |
equivalent(UIContext f)
Two fixtures are equivalent if they have the same XML representation.
|
String |
getDefaultDescription()
Return a default description for this
Script . |
String |
getXMLTag()
Define the XML tag to use for this script step.
|
boolean |
isLaunched() |
void |
launch(StepRunner runner)
Run the entire fixture, using the given runner as a controller/monitor.
|
protected void |
runStep(StepRunner runner)
Don't re-run if already launched.
|
void |
terminate()
Terminate this context.
|
addComponent, addComponentReference, addComponentReference, addContent, addStep, addStep, changeFile, clear, countLines, createDefaultMap, getAttributes, getComponentReference, getComponentReference, getComponentReferences, getContext, getContextClassLoader, getDirectory, getFile, getFile, getFilename, getFullXMLString, getHierarchy, getLine, getName, getProperty, getRelativeTo, getUIContext, getUsage, getVMArgs, hasLaunch, hasTerminate, isAWTMode, isDirty, isForked, isScript, isSlowPlayback, load, load, parseAttributes, parseChild, resolveRelativeReferences, save, save, setAWTMode, setFile, setForked, setHierarchy, setProperty, setRelativeTo, setSlowPlayback, setStep, setVMArgs, toEditableString
createChildrenFromReader, createSequenceFromString, getStep, indexOf, parseChildren, removeStep, removeStep, runStep, size, steps
addAttributes, createAttributeMap, createStep, createStep, getDescription, getResolver, resolveClass, resolveTester, run, setDescription, setScriptError, simpleClassName, toString, toXML, toXMLString, usage, usage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContextClassLoader, getHierarchy
public void launch(StepRunner runner) throws Throwable
public boolean isLaunched()
isLaunched
in interface UIContext
protected void runStep(StepRunner runner) throws Throwable
public void terminate()
UIContext
Hierarchy
returned by UIContext.getHierarchy()
will be disposed.public String getXMLTag()
Step
public String getDefaultDescription()
Script
Script
.getDefaultDescription
in class Script
public boolean equivalent(UIContext f)
equivalent
in interface UIContext
UIContext
is equivalent to another.
Abbot is hosted on