cancel
Showing results for 
Search instead for 
Did you mean: 

Need to either find where the HTTP log is written to or save contents of HTTP log

SOLVED
Contributor

Need to either find where the HTTP log is written to or save contents of HTTP log

I have a test case that make a number of calls for setup - via another test case that I need to save the HTTP log traffic.

The windows doesn't catch all the traffic since it is limited to some number of lines.

I would like to find the file that the HTTP trace is logged to or call some Groovy code to write the traffic to a log file.

Another option would be if there is a way to increase this limit?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

I've just noticed (so stupid) but I've just noticed there's a context menu option for increasing the number of rows in log GUI.- perhaps this can help?

 

Right click on the logs and select 'Set Max Rows' - the default value appears to be 1000 - I just updated it to 9999999999 and ran a project and nothing untoward happened.

 

You might think about the vmoptions file if things slow down - but does cranking the number of rows in the GUI logs solve the problem for now?

 

cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
6 REPLIES 6
Community Hero

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

Hi,

 

I cant answer your question but I think I can tell you where its not.

 

From what I understand the logging uses log4j and there is a soapui-log4j.xml file in C:\Program Files\SmartBear\ReadyAPI-2.5.0\bin

 

I asked this question myself a while back and I was told the logs were in the userprofile directory\.readyapi\logs on a window machine

 

I was satisfied with this answer because I was just asking out of interest.  I've just had a look in the log4j.xml file in the bin directory and it mentions a groovy.log, readyapi.log, readyapierror.log - but it doesn't mention the http.log at all.

Neither can I find an http.log file in that directory.

 

Quick guess - the http logging doesnt use log4j - it uses some other component for logging?

 

I searched my userprofile directory for .log - couldn't see an http.log file

I searched my ProgramFiles directory for .log - couldn't seen an http.log file

I did a search at the root of my harddrive - couldn't seen an http.log file

 

think the http logging must use a different component - did a quick search for 'apache' on my hard disk - but I didnt get anywhere with that either.

 

Currently I think you have a several options to help (if another forum member cant tell you where the http log is)

 

1.  crank the memory options (see https://support.smartbear.com/readyapi/docs/testing/best-practices/memory-usage.html) and hope changing the vmoptions file may change the memory limit on the http log gui

 

OR

 

 

2.  maybe a SmartBear staff member can answer the question of extending the memory for the gui http log or where the http logging is written

 

OR

 

3. use another facility to record your traffic.

 

3a.  I have an event handler script that records all my requests and responses for every step in every test in every testsuite and writes this out to a .txt file.

 

3b.  Use something like fiddler to trap all traffic

 

 

Don't know if this has helped - but hopefully it should give you a bit of a steer!

 

thanks,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Community Hero

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

I've just noticed (so stupid) but I've just noticed there's a context menu option for increasing the number of rows in log GUI.- perhaps this can help?

 

Right click on the logs and select 'Set Max Rows' - the default value appears to be 1000 - I just updated it to 9999999999 and ran a project and nothing untoward happened.

 

You might think about the vmoptions file if things slow down - but does cranking the number of rows in the GUI logs solve the problem for now?

 

cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Moderator

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

Hi larsn,

 

Please refer to the following article to generate the HTTP log file:

How to generate HTTP log for tests started via TestRunner?

 


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

Community Hero

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

And anastasia saves the day.

Perfect answer. Im making a note of this myself for future reference!

Cheers!

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Moderator

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

Hi everyone,

 

@richie, thank you so much for all the time you spent looking into this! And @Nastya_Khovrina, thank you for the link Cat Wink

 

@larsn did you manage to accomplish your task based on the suggestions above or do you have any additional information for us? If your question was answered, do you mind clicking the Accept as Solution button below the reply that answers your question best, so that other Community members could easily find it in the future?
We are looking forward to hearing from you.

 

Olga Terentieva,
SmartBear Assistant Community Manager

Contributor

Re: Need to either find where the HTTP log is written to or save contents of HTTP log

Increasing the number of rows in UI worked for now but I need to try the log4j change and see how it works from maven.

New Here?
Join us and watch the welcome video:
Top Kudoed Authors