How can I save all response data into variable in JMeter? I'm trying to use BSF PostProcessor to get response, but I don't know function to get response.
I want to make something like:
vars.put("myResponse", getResponse());
Response data like that:
{"album_id":873,"total":3}
Here's what you can do in Beanshell:
response = prev.getResponseDataAsString();
vars.put("variableName", response);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With