I am hitting the http request that has 2 dynamic variables under for each controller.
As I am newbie to Jmeter,can someone suggest the idea on resetting the counter variable after every complete iteration.
__counter() function generates an incremented number each time it's being called therefore you either need to pass another argument to store the generated number into a separate JMeter Variable like:
${__counter(,counter2)}
and then reference the value as ${counter2}
where required
or even remove this function completely as ForEach Controller is exposing its current iteration via ${__jm__ForEach Controller__idx}
since JMeter 4.0