net.sf.jameleon
Class TestScriptTag
java.lang.Object
org.apache.commons.jelly.TagSupport
net.sf.jameleon.LocationAwareTagSupport
net.sf.jameleon.JameleonTagSupport
net.sf.jameleon.TestScriptTag
- All Implemented Interfaces:
- Attributable, DynaTag, LocationAware, Tag
public class TestScriptTag
- extends JameleonTagSupport
This is currently a tag meant to be nested inside the test-suite tag.
It represents one of the scripts to be included and executed in the test-suite.
If a test-script nested inside a precondition
tag fails, then
none of the following scripts will be executed even if they are nested inside
a postcondition tag.
Tag Name: <test-script>
Field Summary |
protected boolean |
precondition
Do not continue executing any following scripts if a script
marked as a precondition fails. |
protected File |
script
The script to execute. |
protected TestSuiteTag |
tst
|
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tst
protected TestSuiteTag tst
script
protected File script
- The script to execute.
This attribute is recognized by Jameleon
Required: true
precondition
protected boolean precondition
- Do not continue executing any following scripts if a script
marked as a precondition fails.
This attribute is recognized by Jameleon
Default Value: false
TestScriptTag
public TestScriptTag()
init
public void init()
throws MissingAttributeException
- Throws:
MissingAttributeException
setUpEnvironment
public void setUpEnvironment()
doTag
public void doTag(XMLOutput out)
throws MissingAttributeException,
JellyTagException
- This method executes the script.
- Throws:
MissingAttributeException
JellyTagException
Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.