Hello i new in karate framewrok, i need help to integrate the graphics report of cucumber in karate, i view a function in a video or a post but the people dont tell how libraries import tu use the same.
The function that i call is this:
private static void generateReport() {
String karateOutputPath = "target/surefire-reports";
Collection<File> jsonFiles = FileUtils.listFiles(new File(karateOutputPath), new String[] {"json"}, true);
List<String> jsonPaths = new ArrayList(jsonFiles.size());
for(File file: jsonFiles)
{
jsonPaths.add(file.getAbsolutePath());
}
Configuration config = new Configuration(new File("target"), "demo");
ReportBuilder reportBuilder = new ReportBuilder(jsonPaths, config);
reportBuilder.generateReports();
}
i dont know how library need to reportBuilder, listFiles, etc.
Thanks
文档中对此有详细说明,请阅读: https : //github.com/intuit/karate/tree/master/karate-demo#example-report
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.