Skip to content

Locust script for load testing of oTree apps

Notifications You must be signed in to change notification settings

UtrechtUniversity/locust-otree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locust script for testing oTree apps

Attention:

This code will work with the most recent version of oTree. For older ones, a slightly different approach is needed. DM me.

Installation:

  1. Install locust: pip install locust

  2. Run locust in a folder where the locustfile.py is located.

  3. In browser go to http://localhost:8089

  4. The front page should look like that: alt text

  1. Open your oTree app and create a session with browser bots activated: alt text
  1. Copy the Session-wide link and paste to Locust. Provide number of users (corresponding to number of users in a session you created), and the speed of hatching (how quckly they join the game.)

alt text

  1. Observe how they start playing and the response times, and if there are any failures there.

About

Locust script for load testing of oTree apps

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%