Fetch the total request count during runtime

Hi all,

Could you please tell, if we can get the Ok count or the total request count of a particular API executed at runtime.

I need to execute a condition based on the number of times a particular call is executed.


Hi All,

Handled this scenario by using the below code and its working now

var a2 = 1;

session => {
a2 += 1
session.set(“a2”, a2)
.doIf(session => session(“a2”).as[String].toInt % 5 == (0))(exec(http(“A”) // the request will be triggered every 5th time