Unable to see Response Body in JMeter, View Results Tree listener

bsullit

When I run a Http Request, to a page that should return a response body (I know it's working because I already tried in Postman). When I execute the sampler it's sends a 200 OK code, but the response body in the View Results Tree Listener, is empty. Why does this happen?

I use MAC OS, and I installed JMeter with Brew. I've already tried to add the following information in the user.properties file:

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

It looks like this:

enter image description here

Dmitri T

The changes you've made don't have any impact onto View Results Tree listener output, they are only for .jtl results files.

Try the following:

  1. Run your JMeter test in command-line non-GUI mode like

    jmeter -n -t test.jmx -l result.xml
    

    and open result.xml file with your faviourite text or XML viewer/editor. You should see something like:

    <?xml version="1.0" encoding="UTF-8"?>
    <testResults version="1.2">
        <httpSample t="93" it="0" lt="93" ct="42" ts="1568029799118" s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="759" sby="139" ng="1" na="1">
            <responseData class="java.lang.String">{
                &quot;userId&quot;: 1,
                &quot;id&quot;: 1,
                &quot;title&quot;: &quot;delectus aut autem&quot;,
                &quot;completed&quot;: false
                }</responseData>
            <java.net.URL>http://jsonplaceholder.typicode.com/todos/1</java.net.URL>
        </httpSample>
    
    </testResults>
    

    where responseData tag contains XML-escaped response data. If there is some data in the file - most probably something is wrong with your JMeter installation, try re-installing it by downloading JMeter from the official website as the Brew package might be broken.

  2. Check jmeter.log file contents, if anything goes wrong JMeter normally writes a log message with the results.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to populate "Request -> Request Body" tab of a Jmeter Sampler result (displayed in the View Results Tree listener)?

Change Response Data in View Results Tree Jmeter

JMeter - Ignore View Results Tree Listener only in non GUI

JMeter View results tree listener displaying duplicate https requests

Jmeter - java exception while clicking on response in View Results Tree

JMeter - view more results in View Results Tree

JMeter 5.0: View results in a tree listener shows result of last 100 threads only

Jmeter - Multiple user's session details retrieved incorrectly under "View results tree" listener

Unable to view result tree jmeter

Jmeter setting for sampler that it should not be in view results tree

JMeter view results tree requests showing error

Jmeter Groovy Assert Keyword is not Causing Assertion Failure in Tree View Listener

JMeter - JSON render in view results tree show invalid JSON

Where is HTML renderer of View Results Tree hidden in Jmeter 2.13

JMeter: Why status as "Success" is not shown in View Result in a Tree's response Data when JMeter runs in Distributed mode

JMeter View Results in table

I see the response body in chrome developer tools, but unable to retrieve it inside Front End

I'm not able to save the response of view result tree under HTTP test Script recorder in JMeter)

What is the reason behind to fail aggregate report but view results in tree is all pass in jmeter?

JMeter: how can I disable a View Results Tree element from the command line?

Need help in capturing HTTP Request sent from View results tree sampler in Jmeter

Extract the body of a response in JMeter and use in other requests

how to use Regex in Jmeter - response body

View results tree sampler in jenkins

How to understand the Response Time Graph of jmeter results?

Unable to see the collection view in my view controller

Unable to see dependency tree with gradlew OR gradle

Unable to extract id from json response in jmeter

How to see tree view of docker images?