jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lin <wool...@gmail.com>
Subject Re: SimpleDataWriter generates invalid XML
Date Wed, 12 Oct 2005 14:48:20 GMT
it looks like you're running the test twice but using the same log file. by
default jmeter appends to the log file, so you'll need to give each run a
different file name.

hope that helps

peter


On 10/12/05, Bogdan Calmac <bc4all@gmail.com> wrote:
>
> I have a very simple test plan which looks like this:
>
> TestPlan
> ThreadGroup
> HttpRequest
> HttpRequest
> SimpleDataWriter
>
> I use this just to save the results to XML and use the jmeter-ant task
> to generate an html report. However, the xml generated by
> SimpleDataWriter looks as below. The problem is that each
> <sampleResult> is preceded by <?xml version="1.0" encoding="UTF-8"?>
>
> Note: I am using version 2.1.1
>
> Second note: The same thing happens if I run jmeter with the ant task
> and set the "resultlog" property.
>
> thank you.
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <testResults version="1.1">
>
> <?xml version="1.0" encoding="UTF-8"?><sampleResult
> timeStamp="1129068445294" dataType="text" threadName="Thread Group
> 1-1" label="HTTP Request" time="15" responseCode="200"
> success="true"><sampleResult timeStamp="1129068445294" dataType="text"
> threadName="" label="http://vm12/" time="15" responseCode="302"
> success="true"/><sampleResult timeStamp="1129068445294"
> dataType="text" threadName="" label="http://vm12/apache2-default/"
> time="0" responseCode="200" success="true"/></sampleResult>
>
> <?xml version="1.0" encoding="UTF-8"?><sampleResult
> timeStamp="1129068445310" dataType="text" threadName="Thread Group
> 1-1" label="HTTP Request" time="0" responseCode="200"
> success="true"><sampleResult timeStamp="1129068445310" dataType="text"
> threadName="" label="http://vm12/" time="0" responseCode="302"
> success="true"/><sampleResult timeStamp="1129068445310"
> dataType="text" threadName="" label="http://vm12/apache2-default/"
> time="0" responseCode="200" success="true"/></sampleResult>
>
> </testResults>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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