You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Bennett McElwee <Be...@telecom.co.nz> on 2006/02/14 23:55:11 UTC

Add extra data to test output

Is it possible to write arbitrary data to the results file? For each
line of CSV data written, I would like to include extra fields of my own
devising. Essentially I want to be able to write the values of arbitrary
variables to the file.

The reason I want to do this is so I can include things such as a Test
Script ID and Test Run ID with every sample. This will make automated
post-processing of results much, much simpler.

Is there any way to do this without creating a new JMeter component?

If not, I think this could be done by writing an enhanced version of the
Simple Data Writer Listener. When configuring this Listener, users could
specify any number of variable names; the writer would append the values
of those variables to each line of the CSV results, or add <variable>
child elements to each <sampleResult> element in the XML file.

Is this a reasonable approach?

This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Add extra data to test output

Posted by sebb <se...@gmail.com>.
One way to do this currently might be to include the variables in the
sampler names.

Alternatively, use a single additional sample to record the fixed
information, and post-process the CSV file using a scripting language
such as Perl.

Your approach of extending the Simple Data Writer sounds fine.

S.
On 14/02/06, Bennett McElwee <Be...@telecom.co.nz> wrote:
> Is it possible to write arbitrary data to the results file? For each
> line of CSV data written, I would like to include extra fields of my own
> devising. Essentially I want to be able to write the values of arbitrary
> variables to the file.
>
> The reason I want to do this is so I can include things such as a Test
> Script ID and Test Run ID with every sample. This will make automated
> post-processing of results much, much simpler.
>
> Is there any way to do this without creating a new JMeter component?
>
> If not, I think this could be done by writing an enhanced version of the
> Simple Data Writer Listener. When configuring this Listener, users could
> specify any number of variable names; the writer would append the values
> of those variables to each line of the CSV results, or add <variable>
> child elements to each <sampleResult> element in the XML file.
>
> Is this a reasonable approach?
>
> This communication, including any attachments, is confidential. If you are not the intended recipient, you should not read it - please contact me immediately, destroy it, and do not copy or use any part of this communication or disclose anything about it. Thank you. Please note that this communication does not designate an information system for the purposes of the Electronic Transactions Act 2002.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org