Post: How to replace the variables in attachment
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Terryhe,
Do you want to replace value inside the attached file? If you do, I don't think this is possible to do. If I misunderstood your task, please clarify it.
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tanya Gorbunova,
You are right, the file content would contain the variables and i want to replace it.
If this is not supported, i think the only way is to use something else like "groovy" to generate the request and send it, right?
Thanks!
Terry
