gopalqa
11 years agoOccasional Contributor
[LoadUIWeb] Parameterizing the JSON Request
Hi,
Could you any one help me how to parameterize the following Json request which has 5 text fields with data. The following string that I did get from the recorded value for a request, and I want to replace this whole string with a variable. I did replace with a variable but how do I parameterize this ENTIRE strong. I am using Free version of WebloadUI. Please let me know if any suggestions.
[
{\"PropertyValue\":\"Field1.Display\",\"NewValue\":\"LoadTestInstances1\",\"OldValue\":\"\"},{\"PropertyValue\":\"Field2.CustomerCode\",\"NewValue\":\"234\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field3.AddNumeric",\"NewValue\":\"2\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field4.AddTex\",\"NewValue\":\"Testing\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field5.AddDate\",\"NewValue\":\"08/26/2013\",\"OldValue\":\"\"},
{\"PropertyValue\":\"tags.a492d324-5af7-441f-82d1-4cac29f1518d\",\"NewValue\":\"a492d324-5af7-441f-82d1-4cac29f1518d\"}
]
Could you any one help me how to parameterize the following Json request which has 5 text fields with data. The following string that I did get from the recorded value for a request, and I want to replace this whole string with a variable. I did replace with a variable but how do I parameterize this ENTIRE strong. I am using Free version of WebloadUI. Please let me know if any suggestions.
[
{\"PropertyValue\":\"Field1.Display\",\"NewValue\":\"LoadTestInstances1\",\"OldValue\":\"\"},{\"PropertyValue\":\"Field2.CustomerCode\",\"NewValue\":\"234\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field3.AddNumeric",\"NewValue\":\"2\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field4.AddTex\",\"NewValue\":\"Testing\",\"OldValue\":\"\"},
{\"PropertyValue\":\"Field5.AddDate\",\"NewValue\":\"08/26/2013\",\"OldValue\":\"\"},
{\"PropertyValue\":\"tags.a492d324-5af7-441f-82d1-4cac29f1518d\",\"NewValue\":\"a492d324-5af7-441f-82d1-4cac29f1518d\"}
]