348349350351352353354355356357358
try { test.execute(report, listener); } catch(Throwable ex) { info.setException(ex); report.error(ex); ex.printStackTrace(); } info.setEndedAt(new Date()); eventHandler.invokeAfterTestEvents(info);
174175176177178179180181182183184
TestReport report = new TestReport(); for (int i=0; i< 6; i++) { report.info("info" + i); } for (int i=0; i< 5; i++) { report.error("error" + i); } test.setReport(report); suiteListener.afterTestSuite(asList(test)); }