Thank you so much for tutorials. For some reason this method was not creating File, so I had to initialize ExtentReport inside this method. public static ExtentReports createInstance(String fileName,String reportName, String documentTitle) { extentReports = new ExtentReports(); ExtentSparkReporter extentSparkReporter = new ExtentSparkReporter(fileName); extentSparkReporter.config().setReportName(reportName); extentSparkReporter.config().setDocumentTitle(documentTitle); extentSparkReporter.config().setTheme(Theme.DARK); extentSparkReporter.config().setEncoding("utf-8"); extentReports.attachReporter(extentSparkReporter); return extentReports; }
Hi, in reports folder it generated only dashboard.html and index.html but not the actual extent report(TestReport" + formattedTime + ".html).Can you pls help?
Hi Amod, i just followed ur video and I m facing the issue while running ---- issue is -- java.lang.NullPointerException: Cannot invoke "com.aventstack.extentreports.ExtentTest.info(com.aventstack.extentreports.markuputils.Markup)" because the return value of "java.lang.ThreadLocal.get()" is null. Could you help me out
One of the best channel thank you sir
Really you are the best! Amazing series
Thank you so much for tutorials. For some reason this method was not creating File, so I had to initialize ExtentReport inside this method.
public static ExtentReports createInstance(String fileName,String reportName, String documentTitle)
{
extentReports = new ExtentReports();
ExtentSparkReporter extentSparkReporter = new ExtentSparkReporter(fileName);
extentSparkReporter.config().setReportName(reportName);
extentSparkReporter.config().setDocumentTitle(documentTitle);
extentSparkReporter.config().setTheme(Theme.DARK);
extentSparkReporter.config().setEncoding("utf-8");
extentReports.attachReporter(extentSparkReporter);
return extentReports;
}
Thanks for the video
I'm Receiving NullPointerException even after adding listeners to the testng.xml file, please help
Tried exactly the same code mentioned in this but getting null pointer exception that test is null, though listener is added in testng xml
You need to share project though GIT so that I can check.
Hi, in reports folder it generated only dashboard.html and index.html but not the actual extent report(TestReport" + formattedTime + ".html).Can you pls help?
Please cross check the code with my repo.
@@RetargetCommon i am using 4.0.9 extent-reports version does that change anything here?
thanks brother. but I think the class Filter is better than this way
Hi Amod, i just followed ur video and I m facing the issue while running ---- issue is -- java.lang.NullPointerException: Cannot invoke "com.aventstack.extentreports.ExtentTest.info(com.aventstack.extentreports.markuputils.Markup)" because the return value of "java.lang.ThreadLocal.get()" is null. Could you help me out
Im also getting the same... Did you get any solutions for this..?
did you get solutions for this ?
I am getting null pointer exception when I run the individual test cases. But it is working when I use testNG.xml.
Any solution @amod