pdfngreport icon indicating copy to clipboard operation
pdfngreport copied to clipboard

PDF isn't exported when running with Maven

Open khoaha88 opened this issue 8 years ago • 5 comments

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!

khoaha88 avatar Oct 25 '16 16:10 khoaha88

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

uttesh avatar Oct 26 '16 10:10 uttesh

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

khoaha88 avatar Oct 27 '16 03:10 khoaha88

@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)

uttesh avatar Oct 27 '16 04:10 uttesh

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

khoaha88 avatar Oct 27 '16 04:10 khoaha88

@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.

uttesh avatar Oct 27 '16 11:10 uttesh