jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From praveen tiwari <praveentiwa...@gmail.com>
Subject Re: Ant Error - Premature end of file.
Date Mon, 20 Mar 2017 11:08:49 GMT
Hi Felix,

It's working now, I am able to get result as "BUILD SUCCESSFUL". (Runnig
CMD from normal user as well as admin both works.)

*Changes:*

I created new XML file and put below lines in it and saved as .jtl
extension.
<testResults>
</testResults>

Now I am facing another issue.When I run Test.html, I am getting blank
values in report.
I have used a valid jmx file which was working in GUI mode and I got
results as well.
Need to start new thread or shall continue with same thread.


[image: Inline image 1]



On Sun, Mar 19, 2017 at 6:42 PM, Felix Schumacher <
felix.schumacher@internetallee.de> wrote:

> 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: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Praveen Kumar Tiwari

Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message