|
7 | 7 | import java.util.Optional; |
8 | 8 | import java.util.Properties; |
9 | 9 |
|
10 | | -import com.aventstack.extentreports.ExtentReporter; |
11 | 10 | import com.aventstack.extentreports.ExtentReports; |
12 | 11 | import com.aventstack.extentreports.reporter.ConfigurableReporter; |
13 | 12 | import com.aventstack.extentreports.reporter.ExtentAventReporter; |
|
17 | 16 | import com.aventstack.extentreports.reporter.ExtentHtmlReporter; |
18 | 17 | import com.aventstack.extentreports.reporter.ExtentKlovReporter; |
19 | 18 | import com.aventstack.extentreports.reporter.ExtentLoggerReporter; |
| 19 | +import com.aventstack.extentreports.reporter.ExtentReporter; |
20 | 20 | import com.aventstack.extentreports.reporter.ExtentTabularReporter; |
21 | 21 |
|
22 | 22 | public class ExtentService implements Serializable { |
@@ -199,16 +199,17 @@ private static void initHtml(Properties properties) { |
199 | 199 | } |
200 | 200 |
|
201 | 201 | private static void initKlov(Properties properties) { |
202 | | - ExtentKlovReporter klov = new ExtentKlovReporter(); |
| 202 | + ExtentKlovReporter klov = new ExtentKlovReporter("Default"); |
203 | 203 | String configPath = properties == null ? System.getProperty(CONFIG_KLOV_KEY) |
204 | 204 | : String.valueOf(properties.get(CONFIG_KLOV_KEY)); |
205 | | - if (configPath != null && !configPath.isEmpty()) |
| 205 | + if (configPath != null && !configPath.isEmpty()) { |
206 | 206 | try { |
207 | 207 | klov.loadInitializationParams(configPath); |
208 | 208 | INSTANCE.attachReporter(klov); |
209 | 209 | } catch (FileNotFoundException e) { |
210 | 210 | e.printStackTrace(); |
211 | 211 | } |
| 212 | + } |
212 | 213 | } |
213 | 214 |
|
214 | 215 | private static void initLogger(Properties properties) { |
|
0 commit comments