【发布时间】:2017-03-30 12:02:10
【问题描述】:
我正在使用 Ant 运行 SoapUI 项目以获取 JUnit 报告。
这是我的 build.xml:
<project basedir="." default="testreport" name="APIAutomation">
<target name="SoapUI">
<exec dir="." executable="C:\Program Files (x86)\SmartBear\SoapUI-5.0.0\bin\testrunner.bat">
<arg line="-r -j -a -f 'C:\Users\F3020722\Desktop\Notification\New folder' -sFirstLoginTest 'C:\Users\F3020722\Desktop\Notification\New folder\APIRegression.xml'"></arg>
</exec>
</target>
<target name="testreport" depends="SoapUI">
<junitreport todir="C:\Users\F3020722\Desktop\Notification\New folder\API">
<fileset dir="C:\Users\F3020722\Desktop\Notification\New folder\API">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames"
todir="C:\Users\F3020722\Desktop\Notification\New folder\reports\html">
</report>
</junitreport>
</target>
</project>
我正在正确获取 XML 报告。但是,JUnit 报告是空的。 all 包含 0 并且 successrate 是 Nan。
谁能检查 build.xml 是否正确?
【问题讨论】:
-
你看到
C:\Users\F3020722\Desktop\Notification\New folder\API目录下的TEST*.xml文件了吗?找到index.html文件了吗? -
TEST*.xml 在 C:\Users\F3020722\Desktop\Notification\New 文件夹\API 中看到。 index.html 在 C:\Users\F3020722\Desktop\Notification\New 文件夹中\报告\html
-
套件中如何测试用例? index.html 是怎么出现的?
标签: junit ant soapui ant-junit