JMeter ForEach Controller transaction name with multiple iteration

Multi tool use
JMeter ForEach Controller transaction name with multiple iteration
Im using JMeter foreach controller and depending on the list of values the transactions names are updated.
Problem is transaction names are starting from the point where iteration:1 is ended.
But i want the value to ** restart ** every iteration.
screen1:
Screen2:
Screen3:
Screen4:
2 Answers
2
Instead of User Defined Variables, set val variable in User Parameters and check Update Once Per Iteration
:
Update Once Per Iteration
Update Once Per Iteration A flag to indicate whether the User Parameters element should update its variables only once per iteration
This way it'll update val with 0 every iteration and not only once.
You can remove your Beanshell Sampler and get current iteration number as
${__jm__ForEach Controller__idx}
More information:
Also be aware that according to JMeter Best Practices you should:
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
You can upvote answer if it was helpful
– user7294900
Jul 3 at 9:31