how to include a column in result csv while downloading.

92 views
Skip to first unread message

Sachyn Shaji

unread,
Jan 25, 2023, 6:08:36 AM1/25/23
to jmeter-plugins
Hi ,
How to define a list of additional JMeter variables which are to be saved with each sample in the JTL files. The values are written to CSV files as additional columns, and as additional attributes in CSV files.

DT

unread,
Jan 25, 2023, 6:58:31 AM1/25/23
to jmeter-plugins
There is a special property called sample_variables which allows adding column(s) to the .jtl results file

You can provide the property value via -J command line argument like:

jmeter -Jsample_variables=foo,bar,baz

or in order to make the change permanent put the relevant line to user.properties file (lives in "bin" folder of your JMeter installation:

sample_variables=foo,bar,baz

next time you run JMeter in command-line non-GUI mode the .jtl results file will contain 3 extra columns with the respective values of "foo", "bar" and "baz" variables for each SampleResult.
Reply all
Reply to author
Forward
0 new messages