How to dynamically add xml tag to a soap request?

wadjikarsushantwadjikarsushant Posts: 6

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?


  • OmarROmarR Posts: 231 admin

    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} />

Sign In or Register to comment.