I have a JMeter test that has a rest sampler that outputs a value as such in the response data:
{"Var1":"xxxxx-xxxxxxxx-xxxxxxxxxx"}
I need to take that out put (Var1) and use it as input for the next rest sampler in the following test step. I have a line in a BeanShell pre-processor that says:
String clearText = "somestring1" + "_" + var1 + ":" + "somestring2";
where var1 is derived from a Regular Expression Extractor from the preceding RestSampler (that is how I got the out put {"Var1":"xxxxx-xxxxxxxx-xxxxxxxxxx"} ).
Problem: I get a void for var1 in the output of the second rest sampler.
What am i doing wrong? how can i get the value from the output of the first rest sampler and use it as input in the second rest sampler??
Thanks.
ironmantis7x