我有一个运行 testNG testCase 的 ant 任务。但是在运行时它显示如下错误
[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 文件夹包含与 xml 相关的 jdom-0.7.jar、saxon-8.7.jar、SaxonLiasion.jar。是jar文件依赖冲突吗?
如何解决此错误?
蚂蚁任务
<target name="runTests" depends="compile">
<testng classpath="${test.classpath}:${build.dir}">
<xmlfileset dir="${basedir}" includes="testng.xml" />
</testng>
</target>
我在其他一些类中使用了来自 rt.jar 的 javax.xml.transform.Transformer api 并且 saxon 也有 Transformer Api。(是否会产生问题?)
问候,