Forum Discussion
shapani
13 years agoOccasional Contributor
I tried many below options to print http request, but couldnt print it.
1) //def message = new String(com.eviware.soapui.model.iface.MessageExchange.getRawRequestData());
//log.info message;
2) def str = new com.eviware.soapui.model.iface.Request.getRequestContent()
log.info str;
3) /*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 )
request = (model.getElementAt(0))
//model.clear()
} This option doesnt work when i have to print requests of more than one api as i am reading first line from http log tab.
@Support team, is that a bug in soapui pro?
1) //def message = new String(com.eviware.soapui.model.iface.MessageExchange.getRawRequestData());
//log.info message;
2) def str = new com.eviware.soapui.model.iface.Request.getRequestContent()
log.info str;
3) /*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 )
request = (model.getElementAt(0))
//model.clear()
} This option doesnt work when i have to print requests of more than one api as i am reading first line from http log tab.
@Support team, is that a bug in soapui pro?