Forum Discussion
MOTOROLA_Suppor_1
14 years agoContributor
I tried to use TestRunListener.afterStep to get Soap response. seems work but I need only trigger this script when testStep is 'request'. I don't know how to filter other type testStep as I have trouble to access testStep object inside the callback from this event. Still need help.
thanks
sheena
==== problem script for sfterStep event====
import com.eviware.soapui.support.xml.XmlUtils
//log.info(testStep.config.type) can't access testStep here.
if( testStepResult.response == null )
return
def rsp_str = testStepResult.response.responseContent
thanks
sheena
==== problem script for sfterStep event====
import com.eviware.soapui.support.xml.XmlUtils
//log.info(testStep.config.type) can't access testStep here.
if( testStepResult.response == null )
return
def rsp_str = testStepResult.response.responseContent
Related Content
- 5 years agoaa1
- 11 months agoKimdoengart
- 2 years agoTaz
- 5 years agoscot1967
- 4 years agoavin