Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private Sequential | application
The application to run |
public static final String | APPLICATION_EXCEPTION
Application exception : Application Exception |
public static final String | APPLICATION_FORCIBLY_SHUT_DOWN
Application forcibly shut down |
private BuildException | applicationException
Did the application throw an exception |
private BlockFor | block
A block that halts the tests until met. |
private Funtest. | condition
A condition that must be true before the tests are run. |
private boolean | failOnTeardownErrors
Flag to set to true if you don't care about any shutdown errors. |
private String | failureMessage
Message to send when tests failed |
private String | failureProperty
Name of a property to look for |
private Sequential | reporting
Reporting only runs if the tests were executed. |
private Sequential | setup
Setup runs if the condition is met. |
public static final String | SHUTDOWN_INTERRUPTED
Shutdown interrupted |
private long | shutdownTime
time for the execution to time out. |
private long | |
public static final String | SKIPPING_TESTS
Condition failed -skipping tests |
private BuildException | taskException
Did the task throw an exception |
private Sequential | teardown
Any teardown operations. |
public static final String | TEARDOWN_EXCEPTION
Teardown exception : Teardown Exception |
private BuildException | teardownException
What got thrown during teardown |
private BuildException | testException
What was thrown in the test run (including reporting) |
private Sequential | tests
Tests to run |
private Parallel | timedTests
Used internally to set the workflow up |
private long | timeout
time for the tests to time out |
private long | |
public static final String | WARN_OVERRIDING
Overriding previous definition of |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
private void | |
public ConditionBase | |
public void | |
public BuildException | |
public BuildException | |
public BuildException | |
public BuildException | |
protected void | ignoringThrowable(String
name of exception type, Throwable what was thrown thrown)log that we are ignoring something rather than rethrowing it. |
private void | logOverride(String
what is being defined name, Object what should be null if you don't want a warning definition)Log if the definition is overriding something |
private Parallel | Returns: a bound and initialised parallel instance.timeout parallelTimeout)Create a newly bound parallel instance |
private Parallel | Returns: a bound and initialised parallel instance.timeout parallelTimeout, Task task child)Create a newly bound parallel instance with one child |
protected void | |
public void | setFailOnTeardownErrors(boolean
the value to use. failOnTeardownErrors)Set the failOnTeardownErrors attribute. |
public void | |
public void | |
public void | |
public void | |
public void | |
public void | |
private void | validateTask(Task
task task, String role of the task role)Add any task validation needed to ensure internal code quality |
application | back to summary |
---|---|
private Sequential application The application to run |
APPLICATION_EXCEPTION | back to summary |
---|---|
public static final String APPLICATION_EXCEPTION Application exception : Application Exception |
APPLICATION_FORCIBLY_SHUT_DOWN | back to summary |
---|---|
public static final String APPLICATION_FORCIBLY_SHUT_DOWN Application forcibly shut down |
applicationException | back to summary |
---|---|
private BuildException applicationException Did the application throw an exception |
block | back to summary |
---|---|
private BlockFor block A block that halts the tests until met. |
condition | back to summary |
---|---|
private Funtest. A condition that must be true before the tests are run. This makes it easier to define complex tests that only run if certain conditions are met, such as OS or network state. |
failOnTeardownErrors | back to summary |
---|---|
private boolean failOnTeardownErrors Flag to set to true if you don't care about any shutdown errors.
In that situation, errors raised during teardown are logged but not
turned into BuildFault events. Similar to catching and ignoring
|
failureMessage | back to summary |
---|---|
private String failureMessage Message to send when tests failed |
failureProperty | back to summary |
---|---|
private String failureProperty Name of a property to look for |
reporting | back to summary |
---|---|
private Sequential reporting Reporting only runs if the tests were executed. If the block stopped them, reporting is skipped. |
setup | back to summary |
---|---|
private Sequential setup Setup runs if the condition is met. Once setup is complete, teardown will be run when the task finishes |
SHUTDOWN_INTERRUPTED | back to summary |
---|---|
public static final String SHUTDOWN_INTERRUPTED Shutdown interrupted |
shutdownTime | back to summary |
---|---|
private long shutdownTime time for the execution to time out. |
shutdownUnitMultiplier | back to summary |
---|---|
private long shutdownUnitMultiplier |
SKIPPING_TESTS | back to summary |
---|---|
public static final String SKIPPING_TESTS Condition failed -skipping tests |
taskException | back to summary |
---|---|
private BuildException taskException Did the task throw an exception |
teardown | back to summary |
---|---|
private Sequential teardown Any teardown operations. |
TEARDOWN_EXCEPTION | back to summary |
---|---|
public static final String TEARDOWN_EXCEPTION Teardown exception : Teardown Exception |
teardownException | back to summary |
---|---|
private BuildException teardownException What got thrown during teardown |
testException | back to summary |
---|---|
private BuildException testException What was thrown in the test run (including reporting) |
tests | back to summary |
---|---|
private Sequential tests Tests to run |
timedTests | back to summary |
---|---|
private Parallel timedTests Used internally to set the workflow up |
timeout | back to summary |
---|---|
private long timeout time for the tests to time out |
timeoutUnitMultiplier | back to summary |
---|---|
private long timeoutUnitMultiplier |
WARN_OVERRIDING | back to summary |
---|---|
public static final String WARN_OVERRIDING Overriding previous definition of |
Funtest | back to summary |
---|---|
public Funtest() |
addApplication | back to summary |
---|---|
public void addApplication(Sequential sequence) Add an application.
|
addBlock | back to summary |
---|---|
public void addBlock(BlockFor sequence) Add a block.
|
addReporting | back to summary |
---|---|
public void addReporting(Sequential sequence) set reporting sequence of tasks.
|
addSetup | back to summary |
---|---|
public void addSetup(Sequential sequence) Add a setup sequence.
|
addTeardown | back to summary |
---|---|
public void addTeardown(Sequential sequence) set teardown sequence of tasks.
|
addTests | back to summary |
---|---|
public void addTests(Sequential sequence) add tests.
|
bind | back to summary |
---|---|
private void bind(Task task) Bind and initialise a task
|
createCondition | back to summary |
---|---|
public ConditionBase createCondition() Add a condition element.
|
execute | back to summary |
---|---|
public void execute() throws BuildException Overrides org. Run the functional test sequence. 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.
|
getApplicationException | back to summary |
---|---|
public BuildException getApplicationException() Get the application exception.
|
getTaskException | back to summary |
---|---|
public BuildException getTaskException() Get the task exception.
|
getTeardownException | back to summary |
---|---|
public BuildException getTeardownException() Get the teardown exception.
|
getTestException | back to summary |
---|---|
public BuildException getTestException() Get the test exception.
|
ignoringThrowable | back to summary |
---|---|
protected void ignoringThrowable(String type, Throwable thrown) log that we are ignoring something rather than rethrowing it. |
logOverride | back to summary |
---|---|
private void logOverride(String name, Object definition) Log if the definition is overriding something |
newParallel | back to summary |
---|---|
private Parallel newParallel(long parallelTimeout) Create a newly bound parallel instance
|
newParallel | back to summary |
---|---|
private Parallel newParallel(long parallelTimeout, Task child) Create a newly bound parallel instance with one child |
processExceptions | back to summary |
---|---|
protected void processExceptions() Now faults are analysed. The priority is
|
setFailOnTeardownErrors | back to summary |
---|---|
public void setFailOnTeardownErrors(boolean failOnTeardownErrors) Set the failOnTeardownErrors attribute.
|
setFailureMessage | back to summary |
---|---|
public void setFailureMessage(String failureMessage) Set the failureMessage attribute.
|
setFailureProperty | back to summary |
---|---|
public void setFailureProperty(String failureProperty) Set the failureProperty attribute.
|
setShutdownTime | back to summary |
---|---|
public void setShutdownTime(long shutdownTime) Set the shutdownTime attribute.
|
setShutdownUnit | back to summary |
---|---|
public void setShutdownUnit(WaitFor. Set the shutdownunit attribute. |
setTimeout | back to summary |
---|---|
public void setTimeout(long timeout) Set the timeout attribute.
|
setTimeoutUnit | back to summary |
---|---|
public void setTimeoutUnit(WaitFor. Set the timeoutunit attribute. |
validateTask | back to summary |
---|---|
private void validateTask(Task task, String role) Add any task validation needed to ensure internal code quality |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean |
NestedCondition | back to summary |
---|---|
private NestedCondition() |
eval | back to summary |
---|---|
public boolean eval() Implements org. Doc from org. Is this condition true?
|