0
votes

I am performing HTTP Request samples (both GET and POST) in JMeter and am trying to figure out how to include pieces of the request (right now, just the query and form parameters) in the CSV log output. It seems like I'll have to use something like BeanShell Listener to write my own log file using the JMeter API. Does that sound right?

References:

1

1 Answers

2
votes

Not necessarily. Given your parameters are in form of JMeter Variables (if not - you can convert them via User Defined Variables test element) you can use samples_variable property in order to add values to JMeter's .jtl results file

  1. Add the next line to user.properties file (it's located under /bin folder of your JMeter installation)

    sample_variables=var1,var2,etc.
    

    where var1 and var2 are your JMeter Variables

  2. Restart JMeter to pick the property up
  3. Next time you run your test variable values will be added to .jtl results file

References: