Our community contributed locustfile examples directory.
LoadForge uses the locust.io load testing application to generate load from it's clusters. We support custom locustfiles for advanced load testing, and, have a community driven directory of examples for you to use.
Please consider contributing to the Git repo that drives this directory.
To use these you can copy the code section into your "locustfile" setting when creating or editing a Test.
For more help on Tests please see our official documentation.
|Checking Response Text And Time||Check for a specific word in the result, and that it doesn't take over 0.5 seconds.|
|Checking Status Codes||Test that checks for a 404 response or considers it a failure.|
|Crawling Real HTTP User||Index a site and crawl all the pages with a random delay as a real user would.|
|Index Get With Content||Index page GET with several static content items included.|
|Login And Get Profile||Test that logs in and then requests a profile page.|
|Login At Start||Test that logs in for each simulated user before testing.|
|Nested TaskSets||Example for using nested TaskSets in your test configuration.|
|Simple Index Get||Index page with a simple HTTP GET and a simulated user wait time between pages.|
|Testing Webserver Vs Web App||Generating load on the webserver as opposed to the web application|