????
| Current Path : /opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/testing/ |
| Current File : //opt/ant/manual/api/org/apache/tools/ant/taskdefs/optional/testing/Funtest.html |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_03) on Tue May 22 06:24:54 CEST 2012 -->
<title>Funtest (Apache Ant API)</title>
<meta name="date" content="2012-05-22">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Funtest (Apache Ant API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/BuildTimeoutException.html" title="class in org.apache.tools.ant.taskdefs.optional.testing"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/testing/Funtest.html" target="_top">Frames</a></li>
<li><a href="Funtest.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.tools.ant.taskdefs.optional.testing</div>
<h2 title="Class Funtest" class="title">Class Funtest</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</a></li>
<li>
<ul class="inheritance">
<li>org.apache.tools.ant.taskdefs.optional.testing.Funtest</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Cloneable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Funtest</span>
extends <a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></pre>
<div class="block">Task to provide functional testing under Ant, with a fairly complex worflow of:
<ul>
<li>Conditional execution</li>
<li>Application to start</li>
<li>A probe to "waitfor" before running tests</li>
<li>A tests sequence</li>
<li>A reporting sequence that runs after the tests have finished</li>
<li>A "teardown" clause that runs after the rest.</li>
<li>Automated termination of the program it executes, if a timeout is not met</li>
<li>Checking of a failure property and automatic raising of a fault
(with the text in failureText)
if test shutdown and reporting succeeded</li>
</ul>
The task is designed to be framework neutral; it will work with JUnit,
TestNG and other test frameworks That can be
executed from Ant. It bears a resemblance to the FunctionalTest task from
SmartFrog, as the attribute names were
chosen to make migration easier. However, this task benefits from the
ability to tweak Ant's internals, and so
simplify the workflow, and from the experience of using the SmartFrog task.
No code has been shared.</div>
<dl><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.8</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#APPLICATION_EXCEPTION">APPLICATION_EXCEPTION</a></strong></code>
<div class="block">Application exception : "Application Exception"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#APPLICATION_FORCIBLY_SHUT_DOWN">APPLICATION_FORCIBLY_SHUT_DOWN</a></strong></code>
<div class="block">"Application forcibly shut down"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#SHUTDOWN_INTERRUPTED">SHUTDOWN_INTERRUPTED</a></strong></code>
<div class="block">"Shutdown interrupted"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#SKIPPING_TESTS">SKIPPING_TESTS</a></strong></code>
<div class="block">"Condition failed -skipping tests"</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#TEARDOWN_EXCEPTION">TEARDOWN_EXCEPTION</a></strong></code>
<div class="block">Teardown exception : "Teardown Exception"</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#WARN_OVERRIDING">WARN_OVERRIDING</a></strong></code>
<div class="block">"Overriding previous definition of "</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.Task">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.<a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/Task.html#target">target</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#taskName">taskName</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#taskType">taskType</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!-- -->
</a>
<h3>Fields inherited from class org.apache.tools.ant.<a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#description">description</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#location">location</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#Funtest()">Funtest</a></strong>()</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addApplication(org.apache.tools.ant.taskdefs.Sequential)">addApplication</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</code>
<div class="block">Add an application.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addBlock(org.apache.tools.ant.taskdefs.optional.testing.BlockFor)">addBlock</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/BlockFor.html" title="class in org.apache.tools.ant.taskdefs.optional.testing">BlockFor</a> sequence)</code>
<div class="block">Add a block.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addReporting(org.apache.tools.ant.taskdefs.Sequential)">addReporting</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</code>
<div class="block">set reporting sequence of tasks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addSetup(org.apache.tools.ant.taskdefs.Sequential)">addSetup</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</code>
<div class="block">Add a setup sequence.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addTeardown(org.apache.tools.ant.taskdefs.Sequential)">addTeardown</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</code>
<div class="block">set teardown sequence of tasks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#addTests(org.apache.tools.ant.taskdefs.Sequential)">addTests</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</code>
<div class="block">add tests.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/taskdefs/condition/ConditionBase.html" title="class in org.apache.tools.ant.taskdefs.condition">ConditionBase</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#createCondition()">createCondition</a></strong>()</code>
<div class="block">Add a condition element.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#execute()">execute</a></strong>()</code>
<div class="block">Run the functional test sequence.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#getApplicationException()">getApplicationException</a></strong>()</code>
<div class="block">Get the application exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#getTaskException()">getTaskException</a></strong>()</code>
<div class="block">Get the task exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#getTeardownException()">getTeardownException</a></strong>()</code>
<div class="block">Get the teardown exception.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#getTestException()">getTestException</a></strong>()</code>
<div class="block">Get the test exception.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#ignoringThrowable(java.lang.String, java.lang.Throwable)">ignoringThrowable</a></strong>(java.lang.String type,
java.lang.Throwable thrown)</code>
<div class="block">log that we are ignoring something rather than rethrowing it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#processExceptions()">processExceptions</a></strong>()</code>
<div class="block">Now faults are analysed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setFailOnTeardownErrors(boolean)">setFailOnTeardownErrors</a></strong>(boolean failOnTeardownErrors)</code>
<div class="block">Set the failOnTeardownErrors attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setFailureMessage(java.lang.String)">setFailureMessage</a></strong>(java.lang.String failureMessage)</code>
<div class="block">Set the failureMessage attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setFailureProperty(java.lang.String)">setFailureProperty</a></strong>(java.lang.String failureProperty)</code>
<div class="block">Set the failureProperty attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setShutdownTime(long)">setShutdownTime</a></strong>(long shutdownTime)</code>
<div class="block">Set the shutdownTime attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setShutdownUnit(org.apache.tools.ant.taskdefs.WaitFor.Unit)">setShutdownUnit</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/WaitFor.Unit.html" title="class in org.apache.tools.ant.taskdefs">WaitFor.Unit</a> unit)</code>
<div class="block">Set the shutdownunit attribute.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setTimeout(long)">setTimeout</a></strong>(long timeout)</code>
<div class="block">Set the timeout attribute.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/Funtest.html#setTimeoutUnit(org.apache.tools.ant.taskdefs.WaitFor.Unit)">setTimeoutUnit</a></strong>(<a href="../../../../../../../org/apache/tools/ant/taskdefs/WaitFor.Unit.html" title="class in org.apache.tools.ant.taskdefs">WaitFor.Unit</a> unit)</code>
<div class="block">Set the timeoutunit attribute.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.Task">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.<a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/Task.html#bindToOwner(org.apache.tools.ant.Task)">bindToOwner</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#init()">init</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, java.lang.Throwable, int)">log</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#log(java.lang.Throwable, int)">log</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#perform()">perform</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</a>, <a href="../../../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.tools.ant.<a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</a></h3>
<code><a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#clone()">clone</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getDescription()">getDescription</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getLocation()">getLocation</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setDescription(java.lang.String)">setDescription</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setLocation(org.apache.tools.ant.Location)">setLocation</a>, <a href="../../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="WARN_OVERRIDING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WARN_OVERRIDING</h4>
<pre>public static final java.lang.String WARN_OVERRIDING</pre>
<div class="block">"Overriding previous definition of "</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.WARN_OVERRIDING">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="APPLICATION_FORCIBLY_SHUT_DOWN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>APPLICATION_FORCIBLY_SHUT_DOWN</h4>
<pre>public static final java.lang.String APPLICATION_FORCIBLY_SHUT_DOWN</pre>
<div class="block">"Application forcibly shut down"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.APPLICATION_FORCIBLY_SHUT_DOWN">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="SHUTDOWN_INTERRUPTED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SHUTDOWN_INTERRUPTED</h4>
<pre>public static final java.lang.String SHUTDOWN_INTERRUPTED</pre>
<div class="block">"Shutdown interrupted"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.SHUTDOWN_INTERRUPTED">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="SKIPPING_TESTS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SKIPPING_TESTS</h4>
<pre>public static final java.lang.String SKIPPING_TESTS</pre>
<div class="block">"Condition failed -skipping tests"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.SKIPPING_TESTS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="APPLICATION_EXCEPTION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>APPLICATION_EXCEPTION</h4>
<pre>public static final java.lang.String APPLICATION_EXCEPTION</pre>
<div class="block">Application exception : "Application Exception"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.APPLICATION_EXCEPTION">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="TEARDOWN_EXCEPTION">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TEARDOWN_EXCEPTION</h4>
<pre>public static final java.lang.String TEARDOWN_EXCEPTION</pre>
<div class="block">Teardown exception : "Teardown Exception"</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.testing.Funtest.TEARDOWN_EXCEPTION">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Funtest()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Funtest</h4>
<pre>public Funtest()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="createCondition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCondition</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/taskdefs/condition/ConditionBase.html" title="class in org.apache.tools.ant.taskdefs.condition">ConditionBase</a> createCondition()</pre>
<div class="block">Add a condition element.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>ConditionBase</code>.</dd><dt><span class="strong">Since:</span></dt>
<dd>Ant 1.6.2</dd></dl>
</li>
</ul>
<a name="addApplication(org.apache.tools.ant.taskdefs.Sequential)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addApplication</h4>
<pre>public void addApplication(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</pre>
<div class="block">Add an application.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - the application to add.</dd></dl>
</li>
</ul>
<a name="addSetup(org.apache.tools.ant.taskdefs.Sequential)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addSetup</h4>
<pre>public void addSetup(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</pre>
<div class="block">Add a setup sequence.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - the setup sequence to add.</dd></dl>
</li>
</ul>
<a name="addBlock(org.apache.tools.ant.taskdefs.optional.testing.BlockFor)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addBlock</h4>
<pre>public void addBlock(<a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/BlockFor.html" title="class in org.apache.tools.ant.taskdefs.optional.testing">BlockFor</a> sequence)</pre>
<div class="block">Add a block.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - the block for to add.</dd></dl>
</li>
</ul>
<a name="addTests(org.apache.tools.ant.taskdefs.Sequential)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addTests</h4>
<pre>public void addTests(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</pre>
<div class="block">add tests.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - a sequence to add.</dd></dl>
</li>
</ul>
<a name="addReporting(org.apache.tools.ant.taskdefs.Sequential)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addReporting</h4>
<pre>public void addReporting(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</pre>
<div class="block">set reporting sequence of tasks.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - a reporting sequence to use.</dd></dl>
</li>
</ul>
<a name="addTeardown(org.apache.tools.ant.taskdefs.Sequential)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addTeardown</h4>
<pre>public void addTeardown(<a href="../../../../../../../org/apache/tools/ant/taskdefs/Sequential.html" title="class in org.apache.tools.ant.taskdefs">Sequential</a> sequence)</pre>
<div class="block">set teardown sequence of tasks.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sequence</code> - a teardown sequence to use.</dd></dl>
</li>
</ul>
<a name="setFailOnTeardownErrors(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFailOnTeardownErrors</h4>
<pre>public void setFailOnTeardownErrors(boolean failOnTeardownErrors)</pre>
<div class="block">Set the failOnTeardownErrors attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>failOnTeardownErrors</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setFailureMessage(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFailureMessage</h4>
<pre>public void setFailureMessage(java.lang.String failureMessage)</pre>
<div class="block">Set the failureMessage attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>failureMessage</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setFailureProperty(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFailureProperty</h4>
<pre>public void setFailureProperty(java.lang.String failureProperty)</pre>
<div class="block">Set the failureProperty attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>failureProperty</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setShutdownTime(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShutdownTime</h4>
<pre>public void setShutdownTime(long shutdownTime)</pre>
<div class="block">Set the shutdownTime attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>shutdownTime</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setTimeout(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimeout</h4>
<pre>public void setTimeout(long timeout)</pre>
<div class="block">Set the timeout attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>timeout</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setTimeoutUnit(org.apache.tools.ant.taskdefs.WaitFor.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTimeoutUnit</h4>
<pre>public void setTimeoutUnit(<a href="../../../../../../../org/apache/tools/ant/taskdefs/WaitFor.Unit.html" title="class in org.apache.tools.ant.taskdefs">WaitFor.Unit</a> unit)</pre>
<div class="block">Set the timeoutunit attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>unit</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="setShutdownUnit(org.apache.tools.ant.taskdefs.WaitFor.Unit)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShutdownUnit</h4>
<pre>public void setShutdownUnit(<a href="../../../../../../../org/apache/tools/ant/taskdefs/WaitFor.Unit.html" title="class in org.apache.tools.ant.taskdefs">WaitFor.Unit</a> unit)</pre>
<div class="block">Set the shutdownunit attribute.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>unit</code> - the value to use.</dd></dl>
</li>
</ul>
<a name="getApplicationException()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getApplicationException</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a> getApplicationException()</pre>
<div class="block">Get the application exception.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the application exception.</dd></dl>
</li>
</ul>
<a name="getTeardownException()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTeardownException</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a> getTeardownException()</pre>
<div class="block">Get the teardown exception.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the teardown exception.</dd></dl>
</li>
</ul>
<a name="getTestException()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTestException</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a> getTestException()</pre>
<div class="block">Get the test exception.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the test exception.</dd></dl>
</li>
</ul>
<a name="getTaskException()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTaskException</h4>
<pre>public <a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a> getTaskException()</pre>
<div class="block">Get the task exception.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the task exception.</dd></dl>
</li>
</ul>
<a name="execute()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>public void execute()
throws <a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></pre>
<div class="block">Run the functional test sequence.
<p/>
This is a fairly complex workflow -what is going on is that we try to clean up
no matter how the run ended, and to retain the innermost exception that got thrown
during cleanup. That is, if teardown fails after the tests themselves failed, it is the
test failing that is more important.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../../../org/apache/tools/ant/Task.html#execute()">execute</a></code> in class <code><a href="../../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</a></code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</a></code> - if something was caught during the run or teardown.</dd></dl>
</li>
</ul>
<a name="processExceptions()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>processExceptions</h4>
<pre>protected void processExceptions()</pre>
<div class="block">Now faults are analysed.
<p> The priority is
<ol>
<li>testexceptions, except those indicating a build timeout when the application itself
failed.<br>
(because often it is the application fault that is more interesting than the probe
failure, which is usually triggered by the application not starting
</li><li>
Application exceptions (above test timeout exceptions)
</li><li>
Teardown exceptions -except when they are being ignored
</li><li>
Test failures as indicated by the failure property
</li></ol></div>
</li>
</ul>
<a name="ignoringThrowable(java.lang.String, java.lang.Throwable)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ignoringThrowable</h4>
<pre>protected void ignoringThrowable(java.lang.String type,
java.lang.Throwable thrown)</pre>
<div class="block">log that we are ignoring something rather than rethrowing it.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - name of exception</dd><dd><code>thrown</code> - what was thrown</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../../org/apache/tools/ant/taskdefs/optional/testing/BuildTimeoutException.html" title="class in org.apache.tools.ant.taskdefs.optional.testing"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/tools/ant/taskdefs/optional/testing/Funtest.html" target="_top">Frames</a></li>
<li><a href="Funtest.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>