1
我有它运行TestNG的testCase.But运行它显示像下面一个从ANT运行TestNG测试用例给DomSource不能被推断?
[testng] Error
[testng] DOMSource cannot be processed: check that saxon8-dom.jar is on the classpath
[testng] [GeneralXMLOutput] [Error] DOMSource cannot be processed: check that saxon8- dom.jar is on the classpath
我的lib文件夹是有JDOM-0.7.jar,萨克森 - 8.7.jar,SaxonLiasion.jar错误而蚂蚁的任务,与xml有关。这是一个jar文件依赖冲突吗?
如何解决此错误?
Ant任务
<target name="runTests" depends="compile">
<testng classpath="${test.classpath}:${build.dir}">
<xmlfileset dir="${basedir}" includes="testng.xml" />
</testng>
</target>
我已经在一些其他类javax.xml.transform.Transformer中使用API从rt.jar中和萨克森也有变压器的API。(Whethter创建一个问题吗?)
Regards,