Forum Discussion

kamahade's avatar
kamahade
Regular Contributor
15 years ago

class LogUtils static clearLog method valid ?

Hi,

I'm trying to call method clearLog in LogUtils supplied with SOAPUIPro
soapUI Pro 4.0.0, Build dist-131-2011-06-14, Build Date 2011/06/14

However, before I use when I looked at the API, the below methods doesn't exists anymore. If you feel otherwise, please let me know how to invoke this Clearlog method ? I want to run this method, everytime in my Groovy script test step.

 def logArea = SoapUI.logMonitor
if( logArea != null )
{
def ix = logArea.indexOfTab( title );
if( ix >= 0 )
{
def logPanel = logArea.getComponentAt( ix )
logPanel.logList.model.clear()
}

4 Replies

  • kamahade's avatar
    kamahade
    Regular Contributor
    I tried this

    SoapUI.logMonitor.getCurrentLog().clear()
    which have no effect.
  • Hello,

    we need to verify why those methods are not available, and I've opened internal issue for investigation (SOAPUI-2659).

    In the mean time, you should be able to manually set scripts directory (in project properties table, under 'Script Library' name).
    In that case, soapUI will listen for changes in given directory in automaticaly load scripts from it.

    Does this help?

    Regards,
    Vladimir
    SmartBear Sweden
  • kamahade wrote:
    Did you get a chance to fix this ?

    Unfortunately, it's still in our backlog marked as unresolved. Did you get the workaround that Vladimir mentioned working?

    Regards

    Henrik
    SmartBear Software