I have several methods that I want to use repeat. These methods span across two chained scenarios
In the example below, I only want to repeat the methods 1 - 4, but not 5.
val chain_0 =
.repeat(5,“X”) {
.exec(http(“Stop 1”))
.exec(http(“Stop 2”))
.exec(http(“Stop 3”))
val chain_1 =
.exec(http(“Stop 4”))
.exec(http(“Stop 5”))
}
.exec(http(“Stop 6”))