/** * Invoked after all the tests have run and all their * Configuration methods have been called. * */ @Override public void onFinish(ITestContext context) { generateReport(context); resetAll(); }
/** Invoked after all the tests have run and all their Configuration methods have been called. */ @Override public void onFinish(ITestContext context) { generateReport(context); resetAll(); }
protected void generateReport(ITestContext context) { super.generateReport(context); String dir = context.getOutputDirectory(); File directory = new File(dir); File[] files = directory.listFiles((dir1, name) -> name.endsWith(".xml")); testsuites.addAll(getSuites(files)); }