Executing tests using ANT, build xml file, its NOT executing tests and generating empty results file

I am trying to run my JUnit test using ANT, build.xml. I Exported a build.xml file using Eclipse IDE. For my need, I have modified the build.xml file so that I can run test suites. And generate test results in HTML format.

Every time, I go to run the TestSuite, I get the following build Failed result and the result folder gets generated with empty results.

[junitreport] the file C:\Selenium-Automation-Framework\reports\TESTS-TestSuites.xml is not a valid testsuite XML document
[junitreport] Processing C:\Selenium-Automation-Framework\reports\TESTS-TestSuites.xml to C:\Users\admin\AppData\Local\Temp\null38770567
[junitreport] Loading stylesheet jar:file:/C:/ANT/apache-ant-1.9.5/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 190ms
[junitreport] Deleting: C:\Users\admin\AppData\Local\Temp\null38770567
[mkdir] Created dir: C:\SeleniumReports\report-20150729-092410
[copy] Copying 18 files to C:\SeleniumReports\report-20150729-092410

C:\Selenium-Automation-Framework\build.xml:198: Unit test(s) failed. See Reports!

Any clue will be helpful.


Can you please provide the code you have tried for tracking the issue in an easier way

on August 9, 2015.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.