org.apache.tools.ant.taskdefs.optional.testing
public class Funtest extends Task
Since: Ant 1.8
Field Summary | |
---|---|
static String | APPLICATION_EXCEPTION Application exception : |
static String | APPLICATION_FORCIBLY_SHUT_DOWN |
static String | SHUTDOWN_INTERRUPTED |
static String | SKIPPING_TESTS |
static String | TEARDOWN_EXCEPTION Teardown exception : |
static String | WARN_OVERRIDING |
Method Summary | |
---|---|
void | addApplication(Sequential sequence)
Add an application. |
void | addBlock(BlockFor sequence)
Add a block. |
void | addReporting(Sequential sequence)
set reporting sequence of tasks. |
void | addSetup(Sequential sequence)
Add a setup sequence. |
void | addTeardown(Sequential sequence)
set teardown sequence of tasks. |
void | addTests(Sequential sequence)
add tests. |
ConditionBase | createCondition()
Add a condition element. |
void | execute()
Run the functional test sequence.
|
BuildException | getApplicationException()
Get the application exception. |
BuildException | getTaskException()
Get the task exception. |
BuildException | getTeardownException()
Get the teardown exception. |
BuildException | getTestException()
Get the test exception. |
protected void | ignoringThrowable(String type, Throwable thrown)
log that we are ignoring something rather than rethrowing it. |
protected void | processExceptions()
Now faults are analysed.
|
void | setFailOnTeardownErrors(boolean failOnTeardownErrors)
Set the failOnTeardownErrors attribute. |
void | setFailureMessage(String failureMessage)
Set the failureMessage attribute. |
void | setFailureProperty(String failureProperty)
Set the failureProperty attribute. |
void | setShutdownTime(long shutdownTime)
Set the shutdownTime attribute. |
void | setShutdownUnit(WaitFor.Unit unit)
Set the shutdownunit attribute. |
void | setTimeout(long timeout)
Set the timeout attribute. |
void | setTimeoutUnit(WaitFor.Unit unit)
Set the timeoutunit attribute. |
Parameters: sequence the application to add.
Parameters: sequence the block for to add.
Parameters: sequence a reporting sequence to use.
Parameters: sequence the setup sequence to add.
Parameters: sequence a teardown sequence to use.
Parameters: sequence a sequence to add.
Returns: ConditionBase
.
Since: Ant 1.6.2
Throws: BuildException if something was caught during the run or teardown.
Returns: the application exception.
Returns: the task exception.
Returns: the teardown exception.
Returns: the test exception.
Parameters: type name of exception thrown what was thrown
The priority is
Parameters: failOnTeardownErrors the value to use.
Parameters: failureMessage the value to use.
Parameters: failureProperty the value to use.
Parameters: shutdownTime the value to use.
Parameters: unit the value to use.
Parameters: timeout the value to use.
Parameters: unit the value to use.