Unable to open the Extent report in browser it was showing an null pointer exception
Opened this issue · 1 comments
praveen1211 commented
Hi Bhanu,
Could you please help me out on the issues I am facing in the extent report.
Code:
static
{
//False is used for the retaining the old reports
calendar = Calendar.getInstance();
format = new SimpleDateFormat("dd_MM_yyyy_hh_mm_ss");
open = ("user.dir")+"/src/main/java/com/Automation/project/report/"
+format.format(calendar.getTime())+".html",
extent = new ExtentReports(System.getProperty(open), false);
}
when I run this code it was showing a null pointer exception
but when I debug at open it was showing file but moving on it throws/ showing as null pointer exception.
I was waiting for reply please respond as quickly as possible.
praveen1211 commented
My issues is closed I have resolved it.