public static void main(String[] args)
throws FactoryConfigurationError, JAXBException, XMLStreamException, IOException {
List<String> xmlReports = new ArrayList<String>();
String[] extensions = {"xml"};
String xmlPath = System.getProperty("xmlPath");
String outputPath = System.getProperty("reportsOutputPath");
if (xmlPath == null || outputPath == null) {
throw new Error("xmlPath or reportsOutputPath variables have not been set");
}
Object[] files = FileUtils.listFiles(new File(xmlPath), extensions, false).toArray();
System.out.println("Found " + files.length + " xml files");
for (Object absFilePath : files) {
System.out.println("Found an xml: " + absFilePath);
xmlReports.add(((File) absFilePath).getAbsolutePath());
}
TestNgReportBuilder repo = new TestNgReportBuilder(xmlReports, outputPath);
repo.writeReportsOnDisk();
}
TestNgReportBuilderCli.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:bootstraped-multi-test-results-report
作者:
评论列表
文章目录