Raghav19
7 years agoOccasional Contributor
Capture request log via groovy script from a specific test step
I have a groovy script from where i invoke a API call.
The API call "Request log" section is required in my groovy script.
def logArea = com.eviware.soapui.SoapUI.logMonitor.getLogArea( "Request Log" ); def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context.get) if( logArea !=null ) { def model = logArea.model // only continue of logArea not empty if( model.size > 0 ) { for( c in 0..(model.size-1) ) { log.info(model.getElementAt(c)) } } }
This cant get it from the next step which is my API call.
Kindly help