Hi, I have a scenario where I only need one user, but to change to value of the account repeatedly, I had a csv file with the account already, when I try this sample code
.feed(myCsvVar)
.forever().on(
getTokenRequest,
pace(500.milliseconds)
.exec(
encodeAccountRequest, //this request will have #{accountValue}
getInfoFromEncodeValue
)
)
Upon checking the output, I see accountValue is not changing, is there a way to force increase it in the loop ?
this encodeAccountRequest and getInfoFromEncodeValue will have repeated loop as admin will continue checking each account, so I put it into a pace, as the sample code you see above.
Now the problem with the original code, is when I feed the csv file in, that #{accountValue} will stay the same, aka value1, for every requests, so is it possible to force it to increment by every request?
private static final HttpProtocolBuilder httpProtocol = http.baseUrl("http://localhost:1080")
.acceptHeader("application/json")
.userAgentHeader(
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36");
// same content as before
{
setUp(scenario.injectOpen(atOnceUsers(1))).protocols(httpProtocol).maxDuration(50);
}