net.sf.jameleon
Class TestSuiteTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by net.sf.jameleon.LocationAwareTagSupport
          extended by net.sf.jameleon.JameleonTagSupport
              extended by net.sf.jameleon.TestSuiteTag
All Implemented Interfaces:
Attributable, DynaTag, LocationAware, Tag

public class TestSuiteTag
extends JameleonTagSupport

This is currently a tag meant to group several test case scripts together into a test suite. An example use might be:

  <test-suite name="some test suite name">
    <precondition>
      <test-script script="scripts/setup.xml"/>
    </precondition>
    <test-script script="scripts/foo/0002.xml"/>
    <test-script script="scripts/foo/0003.xml"/>
  </test-suite>
 
NOTE: There is currently no support for a postcondition tag yet.

Tag Name: <test-suite>

Field Summary
protected  ExecuteTestCase executor
          The executor to use to execute all test scripts
protected  String name
          The name of the test suite.
protected  String testSuiteListener
          A fully qualified class name that implements TestSuiteListener.
 
Fields inherited from class net.sf.jameleon.JameleonTagSupport
attributes, broker, contextVars, fp, unsupportedAttributes
 
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport
columnNumber, elementTagName, lineNumber, scriptFileName
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
TestSuiteTag()
           
 
Method Summary
 void doTag(XMLOutput out)
          This method executes the tags inside the test-suite tag.
 ExecuteTestCase getExecuteTestCase()
           
 void init()
           
 void registerTestSuiteListener(String testSuiteListener)
           
 
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 net.sf.jameleon.LocationAwareTagSupport
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber
 
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
 
Methods inherited from interface org.apache.commons.jelly.Tag
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent
 

Field Detail

executor

protected ExecuteTestCase executor
The executor to use to execute all test scripts


testSuiteListener

protected String testSuiteListener
A fully qualified class name that implements TestSuiteListener.

This attribute is recognized by Jameleon

name

protected String name
The name of the test suite.

This attribute is recognized by Jameleon
Constructor Detail

TestSuiteTag

public TestSuiteTag()
Method Detail

init

public void init()
          throws MissingAttributeException
Throws:
MissingAttributeException

registerTestSuiteListener

public void registerTestSuiteListener(String testSuiteListener)

getExecuteTestCase

public ExecuteTestCase getExecuteTestCase()

doTag

public void doTag(XMLOutput out)
           throws MissingAttributeException,
                  JellyTagException
This method executes the tags inside the test-suite tag.

Throws:
MissingAttributeException
JellyTagException


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.