Overview
LoadForge allows you to login to any website, and then browse the site as a logged in
user (or set of users).
We recommend learning about regular user logins before this guide.
LoadForge will automatically keep sessions, meaning you can login and then
browse the site like a browser would.
This guide will give you an example of how to login as different users throughout the test,
simulating multiple user logins and site usage. Note that this typically isn’t needed,
as 1000 requests from a single login is generally the same load as 1000 separate users.
Generated users code example
The above code creates 1000 users named “user1” through “user1000” and logs in with each of those. It’s designed for a
1000 user test of course. You can easily modify this. You can also pick usernames at random like so:
You can modify this test to suit whatever pre-populated user system you have. You could also consider registering users
with the test and clearing your database afterwards.
LoadForge is powered by locust, meaning open source locust users can copy this script as well.
If you are a locust user, consider importing your script to LoadForge to supercharge your testing!