user3400540
user3400540

Reputation: 59

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

Upvotes: 1

Views: 1310

Answers (2)

Dmitri T
Dmitri T

Reputation: 168092

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:

Upvotes: 1

Ori Marko
Ori Marko

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

Related Questions