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

How to add relative path to pdfngreport.properties file #17

Open padmasri opened 8 years ago

padmasri commented 8 years ago

Hi Uttesh,

When I am trying to give relative path for Logo and pdf report location, the file is not getting generated and getting the below error. When I give full path like below it is working fine For Logo: C://Users//padma//workspace//projectname//src//resources//image//IPLogo.png For Report location: C://Users//padma//workspace//projectname//test-output//pdfngreport//

Issue is if I give relative path like below pdfreport.report.logo.file=..//src//resources//images//IPLogo.png pdfreport.outputdir=..//test-output//pdfngreport//


ERROR main- Image not found. URI: file:/..//src//resources//images//IPLogo.png (No context info available) ERROR main- Image not found. URI: file:/.//pdfngreport///chart.png. (No context info available)

padmasri commented 8 years ago

HI Uttesh,

After giving the below path, now the file is getting generated in RootFolder/pdfngreport/filename.pdf, but No charts and no logo included in that pdf file and below is the error.

pdfreport.outputdir=..//pdfngreport// pdfreport.report.logo.file=..//src//resources//images//IPLogo.jpg

ERROR main- Image not found. URI: file:/..//src//resources//images//IPLogo.jpg. (No context info available) ERROR main- Image not found. URI: file:/..//pdfngreport///chart.png. (No context info available)

uttesh commented 8 years ago

@padmasri i don't remember, i guess i have removed that relative path support.

padmasri commented 8 years ago

@uttesh,

Thanks for quick reply, is there any future plan to add the relative path support to this? Appreciate your help on this.

uttesh commented 8 years ago

@padmasri i will look into that, once other todo list is done. Thanks.

forresthopkinsa commented 7 years ago

So that "image not found" thing is still happening, are there any plans to rectify that?

forresthopkinsa commented 7 years ago

Nevermind, I've got it. Sending a PR shortly