I am trying to grab a token and pass it into the GET requests. The below works, but it’s grabbing a token every single time a request runs. Ideally I want to grab it once per run and pass it to the requests. Any ideas on how to make that happen from the below code? Answer In k6 lifecycle there
Tag: k6
Constant load (x new requests per second)
Is there a way to to configure a performance test case with constant load (say, 3 new requests per second for 1 minute)? Other load testing libraries have this feature to set the request rate (e.g. Artillery.io, Vegeta). k6 has a way to set VUs, but VU does not make a new request until the previous iteration is finished. Answer