public class Fixture extends Script implements UIContext
A Fixture will only be run once for any consecutive group of
Scripts 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, validateTAG_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,
java.util.Map attributes)
Construct a
Fixture from its XML attributes. |
Fixture(java.lang.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.
|
java.lang.String |
getDefaultDescription()
Return a default description for this
Script. |
java.lang.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, toEditableStringcreateChildrenFromReader, createSequenceFromString, getStep, indexOf, parseChildren, removeStep, removeStep, runStep, size, stepsaddAttributes, createAttributeMap, createStep, createStep, getDescription, getResolver, resolveClass, resolveTester, run, setDescription, setScriptError, simpleClassName, toString, toXML, toXMLString, usage, usageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContextClassLoader, getHierarchypublic Fixture(java.lang.String filename,
Hierarchy h)
public Fixture(Resolver parent, java.util.Map attributes)
Fixture from its XML attributes.public void launch(StepRunner runner) throws java.lang.Throwable
public boolean isLaunched()
isLaunched in interface UIContextprotected void runStep(StepRunner runner) throws java.lang.Throwable
public void terminate()
UIContextHierarchy returned by UIContext.getHierarchy()
will be disposed.public java.lang.String getXMLTag()
Steppublic java.lang.String getDefaultDescription()
ScriptScript.getDefaultDescription in class Scriptpublic boolean equivalent(UIContext f)
equivalent in interface UIContextUIContext is equivalent to another.
Abbot is hosted on