下面我有一个Junit的HTML报告在我的地方它是通过ANT建:如何通过电子邮件发送的JUnit报告报告不会显示
现在我遇到的问题是,如果我尝试这个连接报告只需发送index.html,它会显示:
我想知道如何通过电子邮件发送上述报告,以便每个人都可以看到html报告。我只想发送index.html我不想给大家发送相应的文件。
XML代码来构建这个报告是低于(我的xxx了一些东西并不是在真正的文件XXX):
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="Test_Report" name="Test_Report">
<target name="xxx_SoapUI">
<exec dir="." executable="C:\Program Files\SmartBear\SoapUI-5.3.0\bin\testrunner.bat">
<arg line="-r -j -f 'D:\xxx\xxx' 'D:\xxx).xml'"></arg>
</exec>
</target>
<target name="xxx_SoapUI">
<exec dir="." executable="C:\Program Files\SmartBear\SoapUI-5.3.0\bin\testrunner.bat">
<arg line="-r -j -f 'D:\xxx\xxx' 'D:\xxx).xml'"></arg>
</exec>
</target>
<target name="xxx_SoapUI">
<exec dir="." executable="C:\Program Files\SmartBear\SoapUI-5.3.0\bin\testrunner.bat">
<arg line="-r -j -f 'D:\xxx\xxx' 'D:\xxx).xml'"></arg>
</exec>
</target>
</project>
'testrunner.bat'必须在你的'路径'中。是吗? – Magoo
您是否检查过解决方案? – Rao
这两个解决方案都很好,我最终使用了noframes方法,所以标记为最佳答案,但两个答案都可以工作。非常感谢你 – BruceyBandit