Forum Discussion

harry's avatar
harry
Contributor
8 years ago

Clear soapui.log for each testcase execution to preserve memory

After execution of each testcase i want to clear the soapui.log file for the successfull testcase.Is there a way to do that?

 

 

I have came across this but this is something to clear script log window of UI tool.

com.eviware.soapui.SoapUI.logMonitor.getLogArea("script log").clear()

3 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Harry,

     

    Just a guess, have you tried to type "Ready! API log" in the script you posted? Something like:

    com.eviware.soapui.SoapUI.logMonitor.getLogArea("Ready! API log").clear()

     

  • nmrao's avatar
    nmrao
    Champion Level 3
    Hope Tanya's reply helps.

    Just to comment, log is something that helps you to analyze later when automated tests are run, not really good idea cleaning it after each test case in the automated tests or Continuous Integration environments.
    • harry's avatar
      harry
      Contributor

      What Tanya's had replied is samething which i  used to clear for clearing "script.log window.

      I want to preserve memory. Thats the reason  i want to clear the soapUI log.writing it to log file sometime taking some much time.