错误内容,希望有知道的可以给予解答,网上找了老半天也没找到有什么能发现错误原因的地方
[xslt] Processing D:\Java\Eclipse\apache-jmeter-2.13\Result\CIMAutoTestReport201601261153.jtl to D:\Java\Eclipse\apache-jmeter-2.13\extras\CIMAutoTestReport201601261153.html
[xslt] Loading stylesheet D:\Java\Eclipse\apache-jmeter-2.13\extras\JMeter-results-detail-report_21.xsl
[xslt] : Error! 前言中不允许有内容。
[xslt] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: 前言中不允许有内容。
[xslt] Failed to process D:\Java\Eclipse\apache-jmeter-2.13\Result\CIMAutoTestReport201601261153.jtl
BUILD FAILED
D:\Script\jmeter\ant\buildold.xml:11: The following error occurred while executing this line:
D:\Script\jmeter\ant\buildold.xml:24: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: 前言中不允许有内容。
bulid.xml内容如下:24行报错行为以下红色字体行
<?xml version="1.0" encoding="UTF-8"?>
<project name="morningstar" default="all" basedir="D:\Java\Eclipse\apache-jmeter-2.13">
<property name="JMeter.home" value="D:\Java\Eclipse\apache-jmeter-2.13"/>
<property name="mail_to" value="chengdu80@126.com"/>
<property name="to_me_only" value="chengdu83@126.com"/>
<tstamp>
<format property="time" pattern="yyyyMMddhhmm"/>
</tstamp>
<target name="all" >
<antcall target="runClient"/>
<antcall target="transferAll"/>
<antcall target="transferFailure"/>
<antcall target="sendEmail"/>
</target>
<target name="runClient" depends="">
<taskdef name="jmeter" classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
<jmeter jmeterhome="${JMeter.home}" resultlog="${basedir}/Result/CIMAutoTestReport${time}.jtl">
<testplans dir="${basedir}\Script\SmokeTest" includes="CIM_ClientProspect_SmokeTest_TP.jmx"/>
</jmeter>
</target>
<target name = "transferAll" depends = "">
<xslt in="${basedir}/Result/CIMAutoTestReport${time}.jtl"
out="${JMeter.home}/extras/CIMAutoTestReport${time}.html"
style="${JMeter.home}/extras/JMeter-results-detail-report_21.xsl"/>
</target>
<target name = "transferFailure" depends = "">
<xslt in="${basedir}/Result/CIMAutoTestReport${time}.jtl"
out="${JMeter.home}/extras/CIMAutoTestReport${time}_failure.html"
style="${JMeter.home}/extras/JMeter-results-detail-report_21_failure.xsl"/>
</target>
<target name="sendEmail">
<mail mailhost="smtp.exmail.qq.com" mailport="25" subject="CIM SmokeTest Report!" messagefile="${JMeter.home}/extras/CIMAutoTestReport${time}_failure.html" messagemimetype="text/html" tolist="${mail_to}">
<from address="chengdu80@126.com"/>
<fileset dir="${JMeter.home}/extras/">
<!-- <include name="CIMAutoTestReport${time}.html"/> -->
<include name="expand.png"/>
</fileset>
<!-- <message>This email was sent automatically by ANT. <br />
Please check the automation test report by the link below. <br />
If there are any questions, please contact with Jenny Zhang. Thank you! <br /><br /> http://SZCOMPUTER/CIMAutoTestReport${time}.html </message> -->
</mail>
</target>