TerryHe
8 years agoNew Contributor
Post: How to replace the variables in attachment
I defined following in groovy script
=============
vars["sg"] = "sg1"
context.vars = vars
=============
If the POST request is "application/xml", i can use "${=vars.sg}" to access the real value.
While if the POST request is an attachment file with "mustipart/form-data", the value did not get replaced!!
===========================
<SessionGroup>${=vars.sg}</SessionGroup>
===========================
How can i replace the value in the attachment file