Relative Content

Tag Archive for foreachjmeterjmespathforeach-loop-container

JMeter: How to use a decrement a Variable in the Foreach Controller

I am working on a JMeter test plan where I am extracting various values from a JSON response. The plan requires me to perform a delete operation that relies on dynamic values provided to a ForEach controller. I am using JSON JMESPath to obtain the count of occurrences needed for generating these dynamic values. However, when I directly use this count in the ForEach controller’s “End index for loop (inclusive)” field, the loop only runs a few times and then fails for the remaining iterations.