How to include pause time in total response time

we are doing some polling scenario which will run few loops to satisfy the condition and giving 5 sec pause time in while loop and codes are here
.tryMax(3) {
pause(t_paceTime)
.doWhile(session => session(“Found”).as[Int] < 1) {
exec(
http(“Polling”)
.post("/rest/v1/filters")
.header(“authorization”, “Token “+”${C_Token}”)
.body(ElFileBody(stage_BodiesFilePath + “/filtersID.json”)).asJson
//.body(StringBody("""{“Chips”: [{“Key”: “list_ids”, “Value”: “${listId}”, “Category”: “ContactFields”, “Type”: 1, “Entity”: “Contact”, “DisplayName”: “Contacts1”} ], “Scope”: 3, “Entity”: “Contact”, “PageNumber”: 1, “PageSize”: 25, “Search”: “”}""")).asJson
.check(status.is(200),regex("“Found”:(.*?),").saveAs(“Found”))
)
.pause(t_paceTime)
}
}
}

Note: I ma putting two end points inside the group and want to include pause time inside the group

Use a group, that’s what the cumulatedResponseTime metric is for.

1 Like