Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jmeter writing the request details to CSV/XML from view result tree listener

Tags:

java

xml

csv

jmeter

When we write data of view result tree listener to CSV/XML , it does not write all data like parameters used in request to CSV.

All the details are related to the response.How to get the the request details in the csv so that we can have one to one mapping of request and response and find out which request has failed.

like image 661
JaiK Avatar asked Dec 16 '14 09:12

JaiK


People also ask

What is view result tree in JMeter?

The View Results Tree listener displays samples that the JMeter samplers generate, and the assertion results that are related to these samples. This listener displays the samples in the order they are generated by the JMeter script ,and provides parameters and data for each of them.

What kind of visibility does the View Results Tree allow in JMeter?

Q #2) What is the View Result tree in JMeter? Answer: View Result tree provides the Sampler result which can be viewed in different formats along with the request and response parameter. This listener shows only the failed assertion of data and not pass one.


2 Answers

You can set the following properties to true so your results file will look like what you used to see in View Results Tree Listener

jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.requestHeaders=true
jmeter.save.saveservice.url=true
jmeter.save.saveservice.responseHeaders=true

Above properties can be either set in jmeter.properties file or in user.properties file (both live under /bin folder of your JMeter installation) or passed as a command-line arguments if you run Jmeter in non-GUI mode as

jmeter -Jjmeter.save.saveservice.output_format=xml -Jjmeter.save.saveservice.response_data=true -Jjmeter.save.saveservice.samplerData=true -Jjmeter.save.saveservice.requestHeaders=true -Jjmeter.save.saveservice.url=true -Jjmeter.save.saveservice.responseHeaders=true -n -t example.jmx -l example.jtl

Look for properties, containing "saveservice" in jmeter.properties file to see what else can be configured and into Apache JMeter Properties Customization Guide for ways of proper setting/overriding various JMeter Properties.

like image 65
Dmitri T Avatar answered Oct 21 '22 06:10

Dmitri T


If you press on the "Configure" Button on the upper right side, you can specifiy, which data should be logged and which not. Did you configured the Result Tree Listener to store those information?

The Result Tree Listener

like image 25
Korashen Avatar answered Oct 21 '22 06:10

Korashen