How to dynamically add xml tag to a soap request?
in SOAtest
My groovy is generating an xml tag and need to inject it in a soap request? what are the probable way in which we can handle this scenario?
0
My groovy is generating an xml tag and need to inject it in a soap request? what are the probable way in which we can handle this scenario?
Comments
Good morning Wadjikarsushant,
One approach could be to store the xml tag in a test suite variable using
context.setValue("testsuitename", xmltag)
and then reference the variable in your soap request by using the ${var_name} notation: a dollar sign with the variable's name wrapped in curly braces.< ${testsuitename} />