Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

How to dynamically add xml tag to a soap request?

wadjikarsushant 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?


  • OmarR
    OmarR Posts: 233 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} />