pdfngreport
pdfngreport copied to clipboard
PDF isn't exported when running with Maven
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 is sample https://github.com/uttesh/pdfngreportdemo maven code is working? what is the error your getting could you please elaborate.
This is the result when I try to Run As Maven Test MavenResult.txt
@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)
I think this is output log for failed @Test and the PDF report should capture this
@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.