Vote count:
0
TestNG reporting throws Null Pointer Exception when Exception occurs in @BeforeSuite method
Results line shows: Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
Below is the NullPointerException from TestNG reporting
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project papi: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: There was an error in the forked process
[ERROR] java.lang.NullPointerException
[ERROR] at java.util.Hashtable.put(Hashtable.java:514)
[ERROR] at java.util.Properties.setProperty(Properties.java:161)
[ERROR] at org.testng.reporters.JUnitXMLReporter.createElement(JUnitXMLReporter.java:203)
[ERROR] at org.testng.reporters.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:181)
[ERROR] at org.testng.reporters.JUnitXMLReporter.onFinish(JUnitXMLReporter.java:118)
[ERROR] at org.testng.TestRunner.fireEvent(TestRunner.java:1241)
[ERROR] at org.testng.TestRunner.afterRun(TestRunner.java:1032)
[ERROR] at org.testng.TestRunner.run(TestRunner.java:621)
[ERROR] at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
[ERROR] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
[ERROR] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
[ERROR] at org.testng.SuiteRunner.run(SuiteRunner.java:240)
[ERROR] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
[ERROR] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
[ERROR] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
[ERROR] at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
[ERROR] at org.testng.TestNG.run(TestNG.java:1057)
[ERROR] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:69)
[ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:120)
[ERROR] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:104)
[ERROR] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:113)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://ift.tt/18AupxH
inExecutionException
asked 33 secs ago
TestNG reporting throws Null Pointer Exception when Exception occurs in @BeforeSuite method
Aucun commentaire:
Enregistrer un commentaire