jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From UBIK LOAD PACK Support <supp...@ubikloadpack.com>
Subject Re: possible issue with While Controller
Date Tue, 18 Nov 2014 11:23:11 GMT
Hi,
Can you check using last version 2.12.

You may be facing a fixed bug 56160

Regards
@ubikloadpack

On Tue, Nov 18, 2014 at 11:49 AM, Lorenzo Fundaró <lorenzofundaro@gmail.com>
wrote:

> Hello,
>
> I think I discovered what it might possibly be an issue in JMeter 2.11
> r1554548
>
> So here's the story:
>
> I have a BeanShell PreProcessor that puts a variable like this:
> vars.put("DONE_UPLOAD","false");
> then,
> I have a While controller that evaluates this variable like this:
> ${__javaScript("${DONE_UPLOAD}" == "false")}
> then inside the While controller I have an HTTP Request sampler that
> responds to either 200 or 202.
> After the sampler (still inside the WhileController) I have a Beanshell
> PostProcessor that does this:
> if (prev.getResponseCode().equals("200")) {
> vars.put("DONE_UPLOAD","200");
> }
> So the the set of instructions above could be described as "Do the HTTP
> request until the response code changes to 200"
>
> This flow does not work as expected, even thought I believe there are no
> syntax errors.
> However, it DOES work whenever I added a "Debug Sampler before the While
> Controller".
>
> Why is this ? it seems like the While controller is not properly evaluating
> the variable on each iteration but the Debug Sampler does it for him.
>
> Note that the Debug Sampler must also be outside of the  While Controller.
> I could send you guys a little Jmeter test plan with an example proving
> this strange behaviour.
>
> Thank you.
>
> Lorenzo Fundaró García
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message