Skip to content

chapkovski/locust-otree

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 
 
 

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages