I have a question about variables, in groovy in jmeter. I want to create a test that in the first step read data via groovy sampler, and put it in variable budget, def = old_budget; and in the end of the test I want to create another sampler and check if budget is old_budget - 5.
In the parameters of the second sampler I put ${old_budget}, but the sampler not recognized the variable from the previous sampler, what I am missing?
P.S. the variable is not user defined variable it is defined in the first sampler