}
if ( !tr.wasSuccessful() ){
sresult.setSuccessful(false);
StringBuffer buf = new StringBuffer();
buf.append( getFailure() );
Enumeration en = tr.errors();
while (en.hasMoreElements()){
Object item = en.nextElement();
if (getAppendError() && item instanceof TestFailure) {
buf.append( "Trace -- ");
buf.append( ((TestFailure)item).trace() );