Forum Discussion

larsn's avatar
larsn
Contributor
6 years ago
Solved

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?

 

  • 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

6 Replies

  • richie's avatar
    richie
    Community Hero

    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

    • richie's avatar
      richie
      Community Hero

      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