LearnByBhanuPratap / seleniumHybridFramework

26 stars 82 forks source link

Unable to open the Extent report in browser it was showing an null pointer exception #1

Open praveen1211 opened 6 years ago

praveen1211 commented 6 years ago

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 6 years ago

My issues is closed I have resolved it.