The contents of String Body fields can be modified within Visual Studio. Select the string body within the web test and then select its properties (use the context menu). The values in the properties pane can then be edited. If the required values are dynamic
and held in context parameter then use the context parameter in the normal way, by enclosing it in doubled curly braces. Codeplex has a plugin that makes the editing a little easier, see (eg)
http://teamtestplugins.codeplex.com/
I find that some editing operations are easiest to perform by opening the ".webtest" file with a text editor rather than the web test editor. If you do this then be very careful, it is easy to mistype and have a file that Visual Studio cannot
decode. Take a back up of the ".webtest" file before doing any changes.
String body fields are held in an encoded format within the ".webtest" file and cannot be edited with a simple text editor. I wrote this article on how I handled string body fields on one project. See
https://www.microsoft.com/en-gb/developers/articles/week02jun14/testing-how-to-managing-web-service-requests-in-visual-studio-web-performance-tests/ ( Edited to reinsert the link. )
Regards
Adrian