0
votes

Working on JDBC request and passing multiple values in it. Now I have used the Transaction Controller and inside that using While controller for execution of all values from source file --- ${Variable}. The all values are executed but the result doesn't get displayed in Transaction Controller. When using ${__javaScript("${VALUE}" != "VALUE",)} it is executing only 3 requests.

enter image description here

1

1 Answers

0
votes

While Controller will execute its children given the condition resolves to true. You can validate the condition by placing i.e. Debug Sampler before the While Controller and ensure that the condition is met.

enter image description here

Also be aware that using __javaScript() function is a some form of a performance anti-pattern, consider migrating to i.e. __jexl3() function instead.