BeanShell PostProcessor to extract those values.
Copy the code below into a BeanShell PostProcessor element that should be placed right under the HTTP request itself:
mydata = prev.getResponseDataAsString();
String[] list = mydata.split("value=\"");
for (int i = 1; i < list.length; i++)
{
String subValue = list[i].split("\"")[0];
vars.put("multipleviewstate_" + i, subValue);
}
Comments
Post a Comment