junitreport不支持嵌套的“ include”元素

时间:2018-12-27 10:51:06

标签: junit ant

这是我的蚂蚁构建文件。

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<project basedir="." default="testreport" name="Regression">
<target name="testreport">
<junitreport todir="C:\Users\U815279\.jenkins\workspace\DAC-5489-Filtering\report_J">
<fileset dir="C:\Users\U815279\.jenkins\workspace\DAC-5489-Filtering\report_J">
<include name="TEST-DAC_5489_Filtering.xml"/>
</fileset>
<report todir="C:\Programs without certification\Jenkins_war\testReport\html\filtering">
</report>
</junitreport>
</target>
</project>

运行此文件时,出现错误:junitreport doesn't support the nested "include" element.

但是我已经使用了另一个构建文件,该文件还可以执行执行报告并仍然可以正常工作。

正在运行的构建文件

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<project basedir="." default="soapui" name="Regression">
<target name="soapui">
<exec dir="." executable="C:\Programs without certification\SmartBear\SoapUI-5.4.0\bin\testrunner.bat">
<arg line="-s'DAC-8565 Identify and flag a group booking' -r -a -j -J -f'C:\Users\U815279\.jenkins\workspace\TestRun_TestSuiteLevel\report_J' C:\Users\U815279\Downloads\DAC-8565\DAC-8565.xml"></arg>
</exec>
</target>
<target name="testreport" depends="soapui">
<junitreport todir="C:\Users\U815279\.jenkins\workspace\TestRun_TestSuiteLevel\report_J">
<fileset dir="C:\Users\U815279\.jenkins\workspace\TestRun_TestSuiteLevel\report_J"/>
<include name="*.xml"/>
<report todir="C:\Programs without certification\Jenkins_war\testReport\html">
</report>
</junitreport>
</target>
</project>

有人可以帮我解决这个问题

0 个答案:

没有答案
相关问题