I am currently unable to run a TestNG suite on Fedora 14 and Eclipse
3.6.1. Previously, there was an option in the right click menu to run
or debug either as a test or a suite, but now only the test option is
available. The only other way I know of to run tests is via the emacs+
plugin (alt+x run-testng-suite) or via "run configurations...", and
running via these methods results in an exception similar to what was
discussed in:
http://groups.google.com/group/testng-users/browse_thread/thread/d5284548de972000#
I have tried three versions of the plugin spread over a couple of
months and tried running the test suite via two different workspaces
(one untouched for a couple of weeks, and was working the last time I
was in it), and the error is the same in each case (no option to run/
debug as test suite, and the following exception if I attempt to run
via any other means). What could the problem be?
org.testng.TestNGException: org.xml.sax.SAXParseException; lineNumber:
1; columnNumber: 1; Content is not allowed in prolog.
at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:24)
at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:10)
at org.testng.xml.Parser.parse(Parser.java:153)
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:280)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:90)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber:
1; Content is not allowed in prolog.
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
198)
at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:
177)
at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:
391)
at
com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:
1391)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl
$PrologDriver.next(XMLDocumentScannerImpl.java:1014)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:
625)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
488)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
812)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:
741)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
123)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1208)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(SAXParserImpl.java:525)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:195)
at org.testng.xml.SuiteXmlParser.parse(SuiteXmlParser.java:17)
... 6 more