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.
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.