Forum Discussion
shbgupta_2000
15 years agoOccasional Contributor
Hi,
using groovy script u can save the teststep request and response...
example:
after each teststep(testcase execution) add the groovy script test step. Add the below code it will write request and responses to log files...
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def request = groovyUtils.getXmlHolder("test case Name#Request")
def response = groovyUtils.getXmlHolder("test case Name#Response")
log.info("Request..."+request.getXml())
log.info("Response..."+response.getXml())
Thanks
SHBGupta
using groovy script u can save the teststep request and response...
example:
after each teststep(testcase execution) add the groovy script test step. Add the below code it will write request and responses to log files...
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def request = groovyUtils.getXmlHolder("test case Name#Request")
def response = groovyUtils.getXmlHolder("test case Name#Response")
log.info("Request..."+request.getXml())
log.info("Response..."+response.getXml())
Thanks
SHBGupta