Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,18 @@ private Map<String, Object> createDocStringMap(PickleString docString) {
return docStringMap;
}

public static synchronized void setSystemInfo(String key, String value) {
ExtentService.getInstance().setSystemInfo(key, value);
}

public static synchronized void setTestRunnerOutput(List<String> log) {
ExtentService.getInstance().setTestRunnerOutput(log);
}

public static synchronized void setTestRunnerOutput(String outputMessage) {
ExtentService.getInstance().setTestRunnerOutput(outputMessage);
}

// the below additions are from PR #33
// https://github.com/extent-framework/extentreports-cucumber4-adapter/pull/33
public static synchronized void addTestStepLog(String message) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static Object getProperty(String key) {
private ExtentReports readResolve() {
return ExtentReportsLoader.INSTANCE;
}

private static class ExtentReportsLoader {

private static final ExtentReports INSTANCE = new ExtentReports();
Expand Down Expand Up @@ -253,6 +253,8 @@ private static void attach(ConfigurableReporter r, Properties properties, String
r.loadXMLConfig(String.valueOf(configPath));
INSTANCE.attachReporter(r);
}


}

}