Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHi,
You should be able to use this script in a Script TestStep right after the Request in question. Change the name of the interface to the correct SOAP interface and modify the logging to instead write to an Excel file as in your other script. Good luck!
Regards,
Dain
eviware.com
You should be able to use this script in a Script TestStep right after the Request in question. Change the name of the interface to the correct SOAP interface and modify the logging to instead write to an Excel file as in your other script. Good luck!
def ctx = testRunner.testCase.testSuite.project.interfaces['interface_name'].wsdlContext
def validator = new com.eviware.soapui.impl.wsdl.support.wsdl.WsdlValidator( ctx )
def result = testRunner.results[testRunner.results.size()-1]
def errors = validator.assertResponse( result, false )
for( error in errors )
log.info error
Regards,
Dain
eviware.com