On 05/04/06, Sonam Chauhan <[EMAIL PROTECTED]> wrote:
> Hello JMeter list! I'm in the process of upgrading a testsuite from
> JMeter 1.9.1 to 2.1.1 and ran into problems below in how log files are
> processed. Can you help?
>
>
> JMeter 1.9.1
> ============================
> The old JMeter (1.9.1) used to generate logs of this type:
> ---------------------
> <sampleResult timeStamp="1144219416885" ...>
> </sampleResult>
> ---------------------

OK

>
> 'Old Tests' in JMeter 2.1.1
> ============================
> When an 'old' JMeter testscript (i.e. created using JMeter 1.9.1) is run
> in the new JMeter (2.1.1), logs of the following type are generated:
> ---------------------
> <httpSample t="422" lt="422" ts="1144219352620" ...>
>   <assertionResult>
>     <failure>false</failure>
>     <error>false</error>
>   </assertionResult>
> </httpSample>
> ---------------------

Yes

>
> 'New Tests' in JMeter 2.1.1
> ============================
> However, if I build a new testcase from scratch new JMeter (2.1.1), it
> generated yet a different log format:
> ---------------------
> <sampleResult timeStamp="1144217221253" ...><assertionResult
> ...></sampleResult>
> ---------------------
> This resembles the old log format, but has different nested elements:
> - The old practice of representing 302 redirects as <sampleResult>
> subelements is gone.
> - New <assertionResult> subelements now occur under <sampleResult>.

I assume this is because the Sampler you used is not an HTTP sampler,
so instead of an httpSample it gives a sampleResult.

The HTTPSampleResult is a sub-class of SampleResult, and has some extra fields.

>
> Questions:
> ===========
> 1.      How could I make both old and new test scripts generate the same
> log format when run in JMeter 2.1.1?

I think they will, if the same sampler types are used.

> 2.      Is there documentation on the JMeter 2.1.1 log format?
>

Not yet. Contributions welcome...

> Sincerely,
> Sonam Chauhan
> --
> Corporate Express Australia Ltd.
> Phone: +61-2-9335-0725, Email: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to