junit.extensions.xml.elements
Class ProcedureTagHandler
java.lang.Object
junit.extensions.xml.elements.AbstractTagHandler
junit.extensions.xml.elements.ProcedureTagHandler
- All Implemented Interfaces:
- XMLConstants
- public class ProcedureTagHandler
- extends AbstractTagHandler
Provide a mechanism for executing repetative tasks with
different context.
Tag Name
procedure
Attributes
name - the name of the procedure to be added [required]
call - the name of the procedure to be called
All other attributes will be passed as properties to the
procedure.
Examples
<procedure name="login" />
<key string="${username}"/>
<key string="${password}"/>
</procedure>
<procedure call="login" username="me" password="letmein" /> * @author JFCUnit contributor
Fields inherited from interface junit.extensions.xml.XMLConstants |
ACTION, ACTUALOBJ, ACTUALREFID, ADD, ASSERTENABLED, ASSERTEQUALS, ASSERTNOTEQUALS, ASSERTNOTNULL, ASSERTNOTSAME, ASSERTNULL, ASSERTSAME, CALL, CASE, CHOOSE, CLASSNAME, COLUMN, CONFIRM, DEBUG, DEFAULT, DELIMITER, DIALOG, DUMP, ECHO, ENABLED, ENCODING, EVALUATE, EXPECTEDOBJ, EXPECTEDREFID, FAIL, FILE, FOCUS, FOREACH, ID, INDEX, JFCFILELOC, LESSTHAN, LISTITEM, LOG, MARK, MESSAGE, METHOD, MODE, NAME, OTHERWISE, PATHREFID, PROCEDURE, PROPERTY, RECURSIVE, REFID, RELATIVE, REMOVE, ROW, SAVE, STDERR, STDOUT, STOPWATCH, SUITE, SWITCH, TABLECELL, TAGHANDLERS, TAGNAME, TEST, TYPE, USERE, VALUE, WHEN, WHILE |
Method Summary |
void |
processElement()
Handle the XML processing of the tag 'procedure'. |
void |
validateElement()
Make sure the appropriate tag and attributes are used. |
Methods inherited from class junit.extensions.xml.elements.AbstractTagHandler |
checkAtLeastOneRequiredAttribute, checkAtLeastOneRequiredAttribute, checkElementTagName, checkOneRequiredAttribute, checkOneRequiredAttribute, checkRequiredAttribute, checkRequiredAttribute, getBoolean, getBoolean, getBoolean, getBoolean, getElement, getInt, getInt, getLong, getLong, getPoint, getPoint, getString, getString, getString, getString, getTagName, getTest, getTestCase, getXMLTestCase, getXMLTestSuite, resolveVariables |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProcedureTagHandler
public ProcedureTagHandler(org.w3c.dom.Element element,
IXMLTestCase testCase)
- Constructor.
- Parameters:
element
- Element to be processed by the tag handler.testCase
- parent test case.
ProcedureTagHandler
public ProcedureTagHandler(org.w3c.dom.Element element,
IXMLTestSuite testSuite)
- Constructor.
- Parameters:
element
- Element to be processed by the tag handler.testSuite
- parent test suite
processElement
public void processElement()
throws XMLException
- Handle the XML processing of the tag 'procedure'.
- Specified by:
processElement
in class AbstractTagHandler
- Throws:
XMLException
- upon failure of processing.
validateElement
public void validateElement()
throws XMLException
- Make sure the appropriate tag and attributes are used.
- Overrides:
validateElement
in class AbstractTagHandler
- Throws:
XMLException
- when validation fails.
Licensed under: GNU Lesser General Public License, Ver 2.1, February 1999