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

PDF isn't exported when running with Maven #23

Open khoaha88 opened 7 years ago

khoaha88 commented 7 years ago

Hi Uttesh,

I have an issue when running PDF NG Report. I try to run project by Run As TestNG, the report is exported correctly. But it's not ok when Run As Maven Test.

Here is my POM & testng files: pomNtestng.zip

Please help me to find out the problem. Many thanks!

uttesh commented 7 years ago

@khoaha88 is sample https://github.com/uttesh/pdfngreportdemo maven code is working? what is the error your getting could you please elaborate.

khoaha88 commented 7 years ago

This is the result when I try to Run As Maven Test MavenResult.txt

uttesh commented 7 years ago

@khoaha88 there is a NPE on your test class, execution interrupted by the exception on your test class.

java.lang.NullPointerException at com.TestSuites.Presentation.PresentationListTest.redirectToCUPresentation(PresentationListTest.java:42)

khoaha88 commented 7 years ago

I think this is output log for failed @Test and the PDF report should capture this

uttesh commented 7 years ago

@khoaha88 NPE stopped the further execution, its nothing do with the ngPDFreport library. if execution stop with error testng library wont provide any execution result and report wont be generated. please fix the NPE. its nothing to do with pdf library.