JMeter ForEach Controller transaction name with multiple iteration

Multi tool use
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:
enter image description here
Screen2:
enter image description here
Screen3:
enter image description here
Screen4:
enter image description here





You can upvote answer if it was helpful
– user7294900
Jul 3 at 9:31




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}



JMeter ForEach Controller Index



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.

Is9NTswk 7CyGRXcxSLG5LVsFsPkoigqKCY7cd2mE
HcUPRg,1yrp01fV73DDDxk3W9YoXC0lDxOSe2kAMzYcF8y GTqkbUDzCmSLO8

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications