Reputation: 59
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:
Upvotes: 1
Views: 1310
Reputation: 168092
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:
Upvotes: 1
Reputation: 58782
Instead of User Defined Variables, set val variable in User Parameters and check 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.
Upvotes: 0