Reporter org.uncommons.reportng.HTMLReporter@1e893df failed. ReportNGException: Failed generating HTML report.

1,003 views
Skip to first unread message

Prasad Bodke

unread,
Aug 27, 2013, 3:57:20 AM8/27/13
to testng...@googlegroups.com, seleniu...@googlegroups.com
Hi

I am running selenium webdriver test cases with maven testNG and reportNG.

I am getting below error while generating ReportNG HTML Report.
Anybody can help me. Also find here with pom.xml and testNG.xml


[TestNG] Reporter org.uncommons.reportng.HTMLReporter@1e893df failed
org.uncommons.reportng.ReportNGException: Failed generating HTML report.
        at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:117)
        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:170)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
        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)
Caused by: java.io.FileNotFoundException: D:\Selenium\SeleniumTestWorkspace\webgec-selenium\SyxGecWebSelenium\target\surefire-reports\html\index.html (The system cannot find the path specifi
ed)
        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)
        ... 8 more
[TestNG] Reporter org.uncommons.reportng.JUnitXMLReporter@cf2c80 failed
org.uncommons.reportng.ReportNGException: Failed generating JUnit XML report.
        at org.uncommons.reportng.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:83)
        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:170)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
        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)
Caused by: java.io.FileNotFoundException: D:\Selenium\SeleniumTestWorkspace\webgec-selenium\SyxGecWebSelenium\target\surefire-reports\xml\com.syx.selenium.cart.AddItemToCartTest_results.xml
(The system cannot find the path specified)
        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.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:77)
        ... 8 more
[TestNG] Reporter org.uncommons.reportng.HTMLReporter@18fe7c3 failed
org.uncommons.reportng.ReportNGException: Failed generating HTML report.
        at org.uncommons.reportng.HTMLReporter.generateReport(HTMLReporter.java:117)
        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:170)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
        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)
Caused by: java.io.FileNotFoundException: D:\Selenium\SeleniumTestWorkspace\webgec-selenium\SyxGecWebSelenium\target\surefire-reports\html\index.html (The system cannot find the path specifi
ed)
        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)
        ... 8 more
[TestNG] Reporter org.uncommons.reportng.JUnitXMLReporter@443226 failed
org.uncommons.reportng.ReportNGException: Failed generating JUnit XML report.
        at org.uncommons.reportng.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:83)
        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:170)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:84)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:92)
        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)
Caused by: java.io.FileNotFoundException: D:\Selenium\SeleniumTestWorkspace\webgec-selenium\SyxGecWebSelenium\target\surefire-reports\xml\com.syx.selenium.cart.AddItemToCartTest_results.xml
(The system cannot find the path specified)
        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.JUnitXMLReporter.generateReport(JUnitXMLReporter.java:77)
        ... 8 more
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 118.224 sec - in TestSuite


--
Prasad Bodke
9320675131
pom.xml
testng.xml

Prasad Bodke

unread,
Aug 28, 2013, 2:43:31 AM8/28/13
to seleniu...@googlegroups.com, testng...@googlegroups.com
Hi Ashish,

Thanks for reply, just I resolve the issue,
Previously I was using wrong tag that is <workingDirectory>${project.basedir}/target/</workingDirectory>
now I replace this tag with <reportsDirectory>${project.basedir}/target/</reportsDirectory>



Regards
Prasad Bodke




On Wed, Aug 28, 2013 at 11:27 AM, Ashish Juyal <juyala...@gmail.com> wrote:
Hi,
     how much i have understand by looking to the error "D:\Selenium\SeleniumTestWorkspace\webgec-selenium\SyxGecWebSelenium\target\surefire-reports\html\index.html" , file path you have mentioned it wrong somewhere.

Regards
Ashish Juyal

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKw4aj%2B%3DJa-j4qrsFcuq1jm0iG4RBfAT9o6RDkxdpCovcxnYYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Prasad Bodke
9320675131
Reply all
Reply to author
Forward
0 new messages