I am creating a JMeter test plan in which I need to execute several times the same request. For each request execution, I have a beanshell script that does some specific logic and increments a counter in a specific situation. The problem is that when I add a beanshell assert to check if the value is according I expect, this assertion does not wait for the loop to finish, and executes before.
Any idea on how can I make JMeter executes an assertion only after the loop has finished?