 We run tests via parallel in our testNG, We attempt to connect to method that starts klov/extent reporter via ``` @BeforeSuite(groups = { "NBC" , "TLM" , "OTS,", "Microsites"}) public void beforeSuite() { synchronized (lock) { if (!initialised) { startResult(); initialised = true; } } ``` However, we still see Klov being attached to multiple views although they have same report # 3 Best
Activity
spbrantan commentedon Aug 25, 2020
Basically you want all the parallel run results flushed to a single launch. Let say into launch #1167..
I am also looking for the same
filipwoz commentedon Jan 26, 2021
Hi, I got it working similarly as in your code by keeping ExtentReports, ExtentKlovReporter & ExtentSparkReporter static:
and initializing them only once when they are still null:
public synchronized static ExtentReports getReporter() {
if (extent == null)
extent = new ExtentReports();
return extent;
}