jasa
15 years agoOccasional Contributor
Setting the value of XML attributes using Groovy Step
Hello,
I have a Groovy test step in my test case where I need to set the attribute value of an XML node, this is what I am doing but it is not working:
INPUT XML:
Script:
...
holder.setNodeValue( "/Envelope/element@id", "700")
Expected XML:
The XML is coming from a property that is populated from the result of a previous service call.
Any help and or tips are greatly appreciated!
thanks,
Jan
I have a Groovy test step in my test case where I need to set the attribute value of an XML node, this is what I am doing but it is not working:
INPUT XML:
Script:
...
holder.setNodeValue( "/Envelope/element@id", "700")
Expected XML:
The XML is coming from a property that is populated from the result of a previous service call.
Any help and or tips are greatly appreciated!
thanks,
Jan