Forum Discussion
tjdurden
12 years agoFrequent Contributor
Furthermore, whilst this doesn't answer your question, in the process of trying to find an answer, I did find a way to access other logs (via Groovy) within SoapUI, as follows:
Kind regards,
Tim
// Can be altered to 'soapUI log', 'http log', 'jetty log', 'error log' etc.
def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "http log" );
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
if( logArea !=null )
{
def model = logArea.model
// only continue of logArea not empty
if( model.size > 0 )
for( c in 0..(model.size-1) )
// DO SOMETHING HERE... could write to file, could run assertions, etc.
log.info(model.getElementAt(c))
}
Kind regards,
Tim