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

52 views
Skip to first unread message

SeleniumMember

unread,
Jul 29, 2015, 10:33:02 AM7/29/15
to Selenium Users
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\man62661\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

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

Any clue will be helpful.

Thanks

Krishnan Mahadevan

unread,
Jul 29, 2015, 10:40:19 AM7/29/15
to Selenium Users
Anjana,
Can you please try posting this query on a JUnit forum maybe ? I dont think your query has got anything to do with Selenium.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
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/81c90db6-2aa0-4c7f-920b-71c18d35a2be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SeleniumMember

unread,
Jul 29, 2015, 10:41:08 AM7/29/15
to Selenium Users, anjana.m...@gmail.com
Oops sorry about that. I accidentally posted in the wrong place.

Thanks
Reply all
Reply to author
Forward
0 new messages