Idiomatic reuse of login session


I’m load testing a website rather than an api. The login only allows a single session. So I have to authenticate as that user and then ramp all the requests once logged in. I’m unsure how I should do this as most of the examples show a global ramp-up config.Is there something to help with this, like a before_ramp method or setting?

Hi @jonathon,
welcome to the community forum! :tada:

You can initialize a session using the setup function. You can find an example about sharing the session from the setup function in the Advanced API Flow guide. You could consider adapting it for your case.

If you’re testing a website then you could find the load testing website guide interesting where there are some useful concepts explained.

1 Like

That’s exactly what I was looking for, thanks!