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.

Manoj Kiradi <[email protected]> Fri, 23 Feb 2024 02:31:34 +0800
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <CAMuDmA1HOn2wRMb7JA62HuOYcFMqv=RecOjhbbUsLcTagxzwvw@mail.gmail.com>
Hello

Firstly, a couple of things to note.
1) Save Responses to a file is comparatively heavy listener and may eat up
memory during the run.
2) You can use any light weight listeners like Simple Data Writer, AGR
Report and in fact can use View results tree as well if memory and disk
space permits but these listeners should be configured as per the
requirement meaning what exactly you would like to capture.

Elaborating 2):
For example- In View Results Tree listener, you have an option to configure
(next to file path I reckon), just click on it and choose what you want to
capture like request headers, request URL, response body, headers etc. and
don’t forget to select save response as XML and check Errors Only.
Once this is configured and data is written to the file, job done.
Load the file in View results tree or since it’s in XML format, you can
parse the log using supported tools as per your choice.

**Since additional logging is Enabled, it may bring disk space issue, keep
an eye.


Cheers
Manoj


On Fri, 23 Feb 2024 at 12:08 am, Lisa Waugh <[email protected]> wrote:

> Hi Pravesh,
>
> One way to solve this is to configure a Simple Data Writer and tell it to
> only log errors and also configure a Save Responses to a file and configure
> it for Save Failed Responses only.
>
>
>
>
>
>
>
> This way you capture the errors but not the successes so you aren’t
> slowing down the tests.
>
>
>
> Regards,
>
>
>
> *Lisa JM Waugh*
>
> Test Engineer
>
> CIO Software & Development Experience
>
> 1 704 907 7008 Mobile
>
> 1 720 342 5373 Office
>
> [email protected]
>
>
>
> IBM
>
>
>
>
>
>
>
> *From: *Ivan Rancati <[email protected]>
> *Date: *Thursday, February 22, 2024 at 7:30 AM
> *To: *JMeter Users List <[email protected]>
> *Subject: *[EXTERNAL] 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.
>
> Does jmeter.log on your local machine show any details?
>
> Maybe you can look at the .jtl file in an editor or (if there is no
> sensitive data) post the first few lines here.
>
> On Sun, Feb 4, 2024 at 11:52 PM Pravesh <[email protected]>
> 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
> >
> > --
> > Regards,
> > Pravesh prajapati.
> > Mob:-9702600170
> >
>
image001.png (image/png, 97.7 KB) - not displayed
image002.png (image/png, 47.3 KB) - not displayed