Ask a Question

Clear soapui.log for each testcase execution to preserve memory

harry
Contributor

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 3
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()

 

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



nmrao
Champion Level 2

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.


Regards,
Rao.

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.

cancel
Showing results for 
Search instead for 
Did you mean: