public void run(File testSuite) throws SpecificationException, DeploymentException, ConfigurationException { TestSuite suite= loadTestSuite(testSuite); suite.addResultListener(this); try { suite.setUp(); } catch (DeploymentException e) { try { suite.shutDown(); } catch (DeploymentException e2) {} throw e; } outputPlain("START", suite); suite.run(); suite.removeResultListener(this); outputPlain("END", suite); String result= "Test Run Completed. " + fRuns + " " + getPluralOf(fRuns, "run") + " (" + fFailures + " " + getPluralOf(fFailures, "failure") + ", " + fErrors + " " + getPluralOf(fErrors, "error") + ") \n"; outputPlain(result); System.out.println(result); outputXML(suite); closeOutputs(); suite.shutDown(); }