Coder Social home page Coder Social logo

locustodoo's Introduction

Locust odoorpc

Links

Description

This is a clone from locustodoorpc , i also updated the code because some classes in locust are deprecated and replaced by other classes. 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:

Name Usage
ODOO_DB_NAME Configure the name of the database to load-test (default: odoo)
ODOO_LOGIN Login to use for the actions (default: admin)
ODOO_PASSWORD Password for the user (default: admin)
ODOO_VERSION Force an Odoo version (e.g. 9.0, 10.0, 11.0), normally automatically recognized

Examples:

ODOO_DB_NAME=demo locust -f examples/locustfile.py --host http://localhost:8069
ODOO_DB_NAME=testing locust --headless -f examples/locustfile.py -H http://localhost -r 1 -u 10 -t 60 --html report.html

Using Dockerfile:

Docker build . -t locustodoo
docker run --env ODOO_DB_NAME=testing --network=host -v $PWD:/mnt/locust -w /mnt/locust locustodoo locust --headless -f examples/locustfile.py -H http://localhost -r 1 -u 10 -t 60 --html report.html

Check the examples

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

locustodoo's People

Contributors

tarekmokhtarjr avatar

Watchers

 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.