Forum Discussion
3 Replies
Sort By
- MOTOROLA_Suppor_1ContributorI 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 - SmartBear_SuppoSmartBear Alumni (Retired)Hi!
you should be able to access the teststep with
log.info testStepResult.testStep.config.type
Does that help?
regards,
/Ole
eviware.com - MOTOROLA_Suppor_1ContributorThanks. It works.
sheena
Related Content
- 5 years agoaa1
- 10 months agoKimdoengart
- 2 years agoTaz
- 5 years agoscot1967
- 4 years agoavin