Forum Discussion
Nastya_Khovrina
Alumni
9 years agoHi 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.....");
}
}