Hello AWS,
I am running my scripts on AWS device farm(Automation testing) and I am using the java+testNG environment for automation. My requirement is, I need a "Cucumber.json" file that is generating after every successful execution of the script.
I have tried out many things but unable to get this file. but the same thing it's generating locally. can you help me with this?
sample Code:-
public class ReportHelper {
private static final String REPORT_OUTPUT_DIRECTORY = System.getenv("DEVICEFARM_LOG_DIR");
public static void generateCucumberReport(String testfeature) {
File reportOutputDirectory = new File(REPORT_OUTPUT_DIRECTORY);
ArrayList<String> jsonFiles = new ArrayList<String>();
jsonFiles.add("tmp/cucumber.json");
String projectName = "ion-robot-app-automation";
Configuration configuration = new Configuration(reportOutputDirectory, projectName);
configuration.addClassifications("Platform", "iOS");
ReportBuilder reportBuilder = new ReportBuilder(jsonFiles, configuration);
try {
reportBuilder.generateReports();
} catch (Exception ex) {
System.out.println("report generation failed" + ex.getMessage());
}
}
Thanks,
Abhishek Garg
Edited by: Tobe-AWS on Feb 22, 2021 5:03 PM