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

Embed screenshots in report #11

Open subratkumarmandal opened 8 years ago

subratkumarmandal commented 8 years ago

Is there a way to embed screenshots in report or provide link ?

In my case I take screenshots on test case failure .

What's the way to configure this option ?

uttesh commented 8 years ago

It already there in the library. set the following in the pdfngreport.properties file

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=path to screenshots folder

Please follow below standards to name your screen shot image file name and type from code/manual image type : png image name : className + "_" + methodName

sample: class: sampleTest.java method name: sumTest

image name: sampleTest_sumTest.png