I have attached all the java file. Extent report is generating under the particulat folder and also screenshot is also available under the screenshot folder. But screenhot is not displaying in the extent report html file after failed testcases.
Are you trying to open the MyReports.html from inside Eclipse? If so, please open it from Windows File Explorer ..C:\..... and then right click and open using a browser.
If you are already doing that, then change your code by appending the screenshot in the test.log statement as follows:
test.log(Status.INFO, msg + logger.addScreenCapture(testbaseforproject.screenshot()));
I tried but no luck... is it possibe to check the 3 fileds I have attached earlier
Instructor
Ashish Thakur Replied on 04/08/2021
Which browser are you using to pen reports
At times it does not work in firefox