Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF isn't exported when running with Maven #23

Open
khoaha88 opened this issue Oct 25, 2016 · 5 comments
Open

PDF isn't exported when running with Maven #23

khoaha88 opened this issue Oct 25, 2016 · 5 comments

Comments

@khoaha88
Copy link

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
Copy link
Owner

uttesh commented Oct 26, 2016

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

@khoaha88
Copy link
Author

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

@uttesh
Copy link
Owner

uttesh commented Oct 27, 2016

@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
Copy link
Author

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

@uttesh
Copy link
Owner

uttesh commented Oct 27, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants