org.uncommons.reportng.ReportNGException

Failed generating HTML report.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2065

Stack trace

  • org.uncommons.reportng.ReportNGException: Failed generating HTML report. at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:117) at org.testng.TestNG.generateReports(TestNG.java:1089) at org.testng.TestNG.run(TestNG.java:1048) at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77) at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110) at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Caused by: java.io.FileNotFoundException: /Auth_TestNg/target/surefire-reports/html/index.html (No such file or directory) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:194) at java.io.FileOutputStream.<init>(FileOutputStream.java:145) at java.io.FileWriter.<init>(FileWriter.java:73) at org.uncommons.reportng.AbstractReporter.generateFile(AbstractReporter.java:99) at org.uncommons.reportng.HTMLReporter.createFrameset(HTMLReporter.java:129) at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:104)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

filipebatistafilipebatista
44 times, last one
Agócs TamásAgócs Tamás
2 times, last one
Unknown visitor
Unknown visitorOnce,
VikramVikram
2 times, last one
olle.hallinolle.hallin
5 times, last one
82 more bugmates