GithubHelp home page GithubHelp logo

compassionch / odoolocustforcompassion Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonathanguerne/odoolocustforcompassion

0.0 2.0 0.0 4 KB

Load testing for compassion Odoo via locust

Python 100.00%

odoolocustforcompassion's Introduction

OdooLocust for compassion CH

this code uses locust to stress test a running "compassion odoo" instance trough Http and RPC

Dependencies

This repo relies on OdooLocust by Odoo

Installation

Make sure to run this code in its own virtual environment. Some of the dependencies shared by locust and odoo don't use the same version and thus could not be run in the same environment

>>> pip install -r requirements.txt

configuration

Even before launching locust you should specify the session's configuration. The recommended way to do so is to use a locust.conf file. You'll find an example of such file in the repo.

You can configure locust with any of the parameters mentionned in its documentation.

A couple of custom parameters have been added via this repo. You should always pay attention to specify them otherwise locust won't be able to connect to Odoo.

Added custom parameters Description
login login of the user you want to use to connect to odoo
password password of the above mentionned user
database specify on which database you want to execute your query

Launching a stress test session

To start locust simply run the following command :

locust -f locust.py

This will setup the test process but not yet start it. After only a few seconds you should see a link in the command line to open the web interface.

[...] Starting web interface at http://0.0.0.0:8089

Once connected to the web interface you'll have the ability to start testing.

odoolocustforcompassion's People

Contributors

jonathanguerne avatar ecino avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.