testNG not creating HTML report

607 views
Skip to first unread message

Randall Brunson

unread,
Oct 22, 2014, 12:02:20 PM10/22/14
to testng...@googlegroups.com
I'm receiving the following error once my selenium/testNG test suite has completed execution, and as a result the HTML report is not being generated.

[TestNG] Reporter org.testng.reporters.jq.Main@6218d77b failed
java.lang.NullPointerException
	at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:50)
	at org.testng.reporters.FileStringBuffer.append(FileStringBuffer.java:28)
	at org.testng.reporters.XMLUtils.xml(XMLUtils.java:27)
	at org.testng.reporters.XMLUtils.xmlRequired(XMLUtils.java:63)
	at org.testng.reporters.XMLStringBuffer.addRequired(XMLStringBuffer.java:201)
	at org.testng.reporters.XMLStringBuffer.addRequired(XMLStringBuffer.java:204)
	at org.testng.reporters.jq.ReporterPanel.getContent(ReporterPanel.java:40)
	at org.testng.reporters.jq.BaseMultiSuitePanel.generate(BaseMultiSuitePanel.java:24)
	at org.testng.reporters.jq.Main.generateReport(Main.java:63)
	at org.testng.TestNG.generateReports(TestNG.java:1115)
	at org.testng.TestNG.run(TestNG.java:1074)
	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:91)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:204)
	at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:107)
	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)

It's a somewhat intermittent issue, as I can run 2-3 tests without a problem. Executing any more than that causes the error.  This is preventing me from being able to review the results of running multiple tests locally before committing the new tests.  This test suite runs in a Jenkins job and publishes the results using the TestNG plugin.  I am seeing the error there as well, but the plugin is able to display the results of the tests.  

I'm using TestNG version 6.8.8 and executing the tests with maven-surefire-plugin 2.16.

SUBRAMANYESWARA RAO BHAVIRISETTY

unread,
Oct 24, 2014, 11:38:01 AM10/24/14
to testng-users
Hi,

  I ran with testng version 6.8.8 and maven-surefire-plugin 2.17. I didn't see any issues.

This is how I run tests.

 <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.17</version>
                <configuration>
                    <argLine>-Xms512m -Xmx1024m -Djava.library.path=/home/y/lib64</argLine>
                    <parallel>methods</parallel>
                    <threadCount>10</threadCount>

Can you please check with the latest version 2.17?


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.



--
Subramanyam
Message has been deleted

Randall Brunson

unread,
Oct 30, 2014, 5:31:25 PM10/30/14
to testng...@googlegroups.com
I just tried using version 2.17 and I have encountered the same issue.
 

Hoa Vinh

unread,
Oct 21, 2016, 5:39:07 PM10/21/16
to testng-users
Hi Randall,
I ran into the same issue on my daily test run.  Everything was working fine in the past 12 months.  Today (10/21/2016), I suddenly got the same error as you got, even though  I made no changes regarding to any jar files in my library (testng.jar 6.9.0)

Did you find the solutions for this issue?  Thanks for your help.

Regards,
Kim T.

Chath S.R

unread,
Nov 21, 2018, 4:41:12 AM11/21/18
to testng-users
Try to update your Testng version to 6.14.3. Hope it will help you.

Reply all
Reply to author
Forward
0 new messages