Skip to main content

Locust custom client: odoorpc

Project description

Locust odoorpc

Description

Locust custom client integrating the odoorpc library, so you can run load-testing on your odoo services. Have a look at the feature list of locust to see what you can do.

Installation

virtualenv .env
source .env/bin/activate
pip install locustodoorpc

Usage

For the general documentation on Locust, heads on https://docs.locust.io/en/latest/ A few options can be customized with environment variables or command line parameters. These can also be specified in the Locust Web UI now.

Name

Option

Usage

ODOO_DB_NAME

–odoo-db-name

Configure the name of the database to load-test (default: odoo)

ODOO_LOGIN

–odoo-login

Login to use for the actions (default: admin)

ODOO_PASSWORD

–odoo-password

Password for the user (default: admin)

ODOO_VERSION

–odoo-version

Force an Odoo version (e.g. 9.0, 10.0, 11.0), normally automatically recognized

Example:

ODOO_DB_NAME=demo locust -f examples/locustfile.py --host http://localhost:8069

Also Valid:

locust -f examples/locustfile.py --host http://localhost:8069 --odoo-db-name=demo

Check the examples

https://raw.githubusercontent.com/camptocamp/locustodoorpc/master/images/locustodoorpc.png

Release History

0.0.4 (2023-02-17)

  • update locust version

  • allow Odoo Configuration from the Locust Web UI (#5 by @HP-bkeys)

0.0.3 (2022-08-25)

  • fix python3 support

  • update locust package name

  • adapt to new locust API

  • bump dependencies version of locust and odoorpc

  • update examples to work with Odoo 15.0 out of the box

0.0.2 (2017-11-03)

  • Fix support of jsonrpc-ssl

0.0.1 (2017-11-03)

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

locustodoorpc-0.0.4.linux-x86_64.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

locustodoorpc-0.0.4-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page