groovy - SaopUI GroovyScript - How to modify request XML located in another TestCase? -


i trying modify request testcase , i'm unable xml.

i'd know parameter pattern method :

def holder = groovyutils.getxmlholder( targetstep.getname() + "#request" ) 

this method seems "targetstep" in own testcase. i'd know how specify method i'm looking "targetstep" in specific testcase.

if it's not possible way, i'd know how xml content of teststep in specific testcase in order modify node values.

thanks in advance !

finally found alternative :

def holder = groovyutils.getxmlholder( targetstep.getpropertyvalue("request") )   holder.setnodevalue("//nodename",'newvalue') holder.updateproperty() targetstep.gethttprequest().setrequestcontent(holder.getxml()) 

Comments