Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages