-1

I am using While Controller with Condition:

${_javaScript("${DONE}" ! = "Resolved and Downloaded";)}

where initially DONE="Not Assigned yet".

After few iterations DONE changes and has value Resolved and Downloaded (which I check in Debug Sampler) but loop continues and doesn't quit.

What did I do wrong,What should I do to make it work?

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90
Just_another_developer
  • 5,737
  • 12
  • 50
  • 83

4 Answers4

0

Check syntax of your condition expression first: should be double __ before function name and , instead of ; after condition in function's params list:

${__javaScript("${DONE}"!="Resolved and Downloaded",)}

This can break your test case.
As well you can look into jmeter.log for possible issue details.

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90
0

${__javaScript("${DONE}"!="Resolved and Downloaded")}

Rajan
  • 1,501
  • 4
  • 21
  • 37
0

You can try the following using while controller:

${__javaScript(${DONE} !="Resolved and Downloaded")}

Jack
  • 21
  • 2
0

You may use if controller.Keeping the if controller as a child of runtime controller.Specify max time in runtime controller.

Under If controller specify the following: "${DONE}" !="Resolved and Downloaded"

Jack
  • 21
  • 2