Forum Discussion
sanj
Super Contributor
Apoorva6 I will look at your requets and see how to do it in groovy.
I will send you an update soon
sanj
8 years agoSuper Contributor
Here is an example of how to modify xml request using groovy
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) // get XmlHolder for request message def holder = groovyUtils.getXmlHolder( "login#Request" ) // change password using XPath holder["//username"] = "test" // write updated request back to teststep holder.updateProperty() context.requestContent = holder.xml
taken from
https://www.soapui.org/scripting-properties/tips-tricks.html
You like the reply. How to give a Kudos / Accept as solution?
Related Content
- 5 years ago
- 12 years ago
- 4 years ago
- 9 years ago
Recent Discussions
- 15 years ago