Re: Not able to view request and response details after exporting log file to Listener[Tree view], when executed the script in non gui mode.

Dmitri T <[email protected]> Thu, 22 Feb 2024 21:17:21 +0100
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <PH7PR12MB71394B1665236DC725545036C0562@PH7PR12MB7139.namprd12.prod.outlook.com>
Pravesh wrote:
> Hi Team,
> I am getting one weird issue.
> In jmeter when I execute the test in gui mode, in treeview listener, I can
> see request details and response details what has been sent for that
> request.
>
> But when I execute the same script in non gui mode and store log file on
> local, after exporting log to tree view listener I, can see some failures
> and wanted to see what request details has been send and what is response
> returned, then It just displays "Do data to display"
> Any solution for this where I can see retails for request and response,
> when execute test in non gui mode and export log file into tree view
> listener
>
If you're trying to read the .jtl results file 
<https://cwiki.apache.org/confluence/display/jmeter/JtlFiles> using View 
Results Tree listener and expecting to see request and response details 
there - you won't be able to see them because by default JMeter doesn't 
store them.

There are 2 options:

 1. Amend JMeter's Results File Configuration
    <https://jmeter.apache.org/usermanual/properties_reference.html#results_file_config>
    and switch the format to XML and save request and response data and
    headers.
 2. Add a listener like Simple Data Writer
    <https://jmeter.apache.org/usermanual/component_reference.html#Simple_Data_Writer>
    to your test plan and configure what and where do you want to store

More information: How to Save Response Data in JMeter 
<https://www.blazemeter.com/blog/response-data-in-jmeter>