uttesh / pdfngreport

This is the pdf report plugin library written for testng/selenium frameworks, this listener will generate the pdf report on testcases execution, its very simple to configure no need to write any code.
http://uttesh.github.io/pdfngreport/
Other
30 stars 26 forks source link

Screenshots for failed test cases are not created automatically #18

Open kalai-512 opened 8 years ago

kalai-512 commented 8 years ago

Hi Uttesh,

I am using your PDF Report generation listener, really thanks to have this contribution it helps a lot.

In pdfngreport.properties file I have enabled the selenium user configuration.

Below setting only for selenium user for selenium failed screen shot link show related

pdfreport.show.selenium.screenshot.link=show pdfreport.selenium.failed.test.screenshot.outputdir=D:/Selenium/Projects/PDFReport/FailScreenshotNew

But screenshots are not created automatically in specified folder so that in report it's not linked obviously. Please guide me to proceed further with this.

Thanks, Kalai.

uttesh commented 8 years ago

@kalai-512 thanks, This library wont generate the failed test screen shot, it will use the existing failed screen shots in the provided location and image should be saved with naming standard i.e..

error screen shot/image name standards.

image type : png

image name : className + "_" + methodName.

kalai-512 commented 8 years ago

Hi Uttesh thanks a lot for your guidance, I will do accordingly.