0

I have a thread group with a While controller. At there I have set below condition.

${__javaScript(((${__time()} - ${LOOPSTART}) < 600000)  || ("${Queuing_Status}" == "QUEUED")) }

${Queuing_Status} is a user defined variable with the text QUEUED.

${LOOPSTART} is coming from a Bean shell sampler, and below is the code for that.

vars.put("LOOPSTART", System.currentTimeMillis().toString()) 

I have noticed that it will never reach the 2nd condition. So what might be the possible error with my condition.

1 Answer 1

0

I think you need to use && operator instead of || one:

${__javaScript(((${__time()} - ${LOOPSTART}) < 60000)  && ("${Queuing_Status}" == "QUEUED")) }

More information: Using the While Controller in JMeter

Also:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.