I was using version 3 of extent report before, now i have upgraded version 4, what i have observed is, in category level previously there is hyperlink test case wise, upon clicking on testcase in category level, it navigates to respective testcase in 1st level, but in version 4, hyperlink is missing..is there any alternative way where i can produce this
version 3:

version 4:

code used:
I am using testNg with listener 'ITestListener' and extent report.
I have Report.java class where i will instantiate extents for each test case with below method
public extent createinstance()
{
ExtentReports extent1 = new ExtentReports();
ExtentSparkReporter htmlReporter = new ExtentSparkReporter(file); htmlReporter.loadXMLConfig(System.getProperty("user.dir")+"\extent-config.xml");
extent1.attachReporter(htmlReporter);
return extent1;
}
in listerner class
@OverRide
public void onTestStart(ITestResult result) {
ThreadLocal report = new ThreadLocal();
CSVReader CSV = new CSVReader();
// retrieve category for test case from data file
String category = CSV.getcategory(result.getMethod().getMethodName());
System.out.println(("*** Running test method " + result.getMethod().getMethodName() + "..."));
report.get().startTest(result.getMethod().getMethodName(), category);
}
public void onFinish(ITestContext testContext) {
System.out.println(("*** Test Suite " + testContext.getName() + " ending ***"));
ThreadLocal<Report> report = new ThreadLocal<Report>();
ThreadLocal<ExtentManager> extentManager = new ThreadLocal<ExtentManager>();
report.get().endTest();
extentManager.get().getInstance().flush();
ExtentManager.extent.set(null);
}
....note: i have not update all the code here...
everything is as expected except that hyperlink for testcases which i was expecting in tag/category level
I was using version 3 of extent report before, now i have upgraded version 4, what i have observed is, in category level previously there is hyperlink test case wise, upon clicking on testcase in category level, it navigates to respective testcase in 1st level, but in version 4, hyperlink is missing..is there any alternative way where i can produce this

version 3:
version 4:

code used:
I am using testNg with listener 'ITestListener' and extent report.
I have Report.java class where i will instantiate extents for each test case with below method
public extent createinstance()
{
ExtentReports extent1 = new ExtentReports();
ExtentSparkReporter htmlReporter = new ExtentSparkReporter(file); htmlReporter.loadXMLConfig(System.getProperty("user.dir")+"\extent-config.xml");
extent1.attachReporter(htmlReporter);
return extent1;
}
in listerner class
@OverRide
public void onTestStart(ITestResult result) {
ThreadLocal report = new ThreadLocal();
CSVReader CSV = new CSVReader();
// retrieve category for test case from data file
String category = CSV.getcategory(result.getMethod().getMethodName());
System.out.println(("*** Running test method " + result.getMethod().getMethodName() + "..."));
report.get().startTest(result.getMethod().getMethodName(), category);
}
....note: i have not update all the code here...
everything is as expected except that hyperlink for testcases which i was expecting in tag/category level