Am 16.03.2017 um 13:13 schrieb praveen tiwari:
Hi All,

I am trying to run jmeter from ant and getting below error, reference (
http://testingfreak.com/step-by-step-process-to-run-jmx-
file-through-command-prompt-using-ant-and-generate-html-report/)

*Changes in Build.xml (highlighted in yellow):*

-Djmeter.home=.. - C:\apache-jmeter-r1787116

         -Dreport.title="My Report" - title for html report (default is
'Load Test Results')

     </description>



     <property name="testpath" value="${user.dir}"/>

     <property name="jmeter.home" value="C:\apache-jmeter-r1787116"/>

*Error:*

C:\apache-ant-1.10.1\bin>ant
Buildfile: C:\apache-ant-1.10.1\bin\build.xml

run:
      [echo] funcMode = false
    [jmeter] Executing test plan: C:\apache-ant-1.10.1\bin\Test.jmx ==>
C:\apache-ant-1.10.1\bin\Test.jtl

_message_xalan:

xslt-report:
      [xslt] Processing C:\apache-ant-1.10.1\bin\Test.jtl to
C:\apache-ant-1.10.1\bin\Test.html
      [xslt] Loading stylesheet C:\apache-ant-1.10.1\bin\
jmeter-results-detail-report_21.xsl
      [xslt] C:\apache-ant-1.10.1\bin\Test.jtl:1:1: Fatal Error! Premature
end of file.
      [xslt] Failed to process C:\apache-ant-1.10.1\bin\Test.jtl

BUILD FAILED
C:\apache-ant-1.10.1\bin\build.xml:124: Fatal error during transformation
using C:\apache-ant-1.10.1\bin\jmeter-results-detail-report_21.xsl:
Premature end of file.; SystemID: file:/C:/apache-ant-1.10.1/bin/Test.jtl;
Line#: 1; Column#: 1

Total time: 4 seconds

C:\apache-ant-1.10.1\bin>

Can you please help, let me know if you need additional information.
Does the file Test.jtl really exist in C:\apache-ant-1.10.1\bin?
Can you access it with the user, that is running the ant script?

I tried to do the following steps:

1. Download JMeter from jmeter.apache.org into /tmp and extract it there
2. go into /tmp/apache-jmeter-3.1/extras
3. run ant
4. open Test.html in a web browser

No problems detected.

Regards,
 Felix



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to