Skip to content

Latest commit

 

History

History

locust

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Performance Tests with Locust

Installation

python3 -m venv env
. env/bin/activate
pip install -r requirements.txt

Running the tests

  • Edit locust.conf to your needs
  • Run
export ODOO_DB_NAME=Test
export ODOO_LOGIN=admin
export ODOO_PASSWORD=admin
locust --config=locust.conf

Advanced topics

It is possible to set the weight of the users (CRMUser, SaleUser, ProjectUser, PurchaseUser, AccountUser, StockUser) by editing the values in locustfile.py.

You can also run specific user, for example:

locust --config=locust.conf SaleUser