Forum Discussion
1 Reply
Sort By
- Nastya_KhovrinaSmartBear Alumni (Retired)
Hi Prashant,
The orderFound value will be defined only if the first condition is true. Maybe, you need to modify the script in the following way:
def blockValue="XYZ"; def groovyUtils=new com.eviware.soapui.support.GroovyUtils(context) def xml=new XmlSlurper().parseText(mockRequest.requestContent) xml.breadthFirst().each{ def v=it.toString() if(it.name()=="order"){ def orderFound="True"; log.info("WORKING....."); } }
Related Content
- 9 months agoRichardPla