} else {
testRunnerState.setTestProp(testName, "status", "FAILED");
StringBuffer res = new StringBuffer("Failures:\n");
for (Enumeration<TestFailure> fs = result.failures(); fs.hasMoreElements();) {
TestFailure f = fs.nextElement();
testRunnerState.setTestProp(testName, "exception", "Failure\n" + f.trace());
f.exceptionMessage();
res.append(f.exceptionMessage()).append("\n");
}
res.append("Errors:\n");
for (Enumeration<TestFailure> fs = result.errors(); fs.hasMoreElements();) {