Skip to content

[16.0][ADD] testing: add Locust load test for KMITL ERP - #1201

Open
n3n wants to merge 1 commit into
16.0from
16.0-add-locustfile-kmitl-testing
Open

[16.0][ADD] testing: add Locust load test for KMITL ERP#1201
n3n wants to merge 1 commit into
16.0from
16.0-add-locustfile-kmitl-testing

Conversation

@n3n

@n3n n3n commented Aug 24, 2026

Copy link
Copy Markdown
Member

Summary

  • New testing/ directory: a Locust load test (locustfile.py) simulating KMITL staff logging in and exercising Discuss, Todo, purchase requests, the agx_approval budget-approval flow (create → verify → reserve budget), and procurement/budget browsing.
  • Includes a base.automation XML snippet to auto-create an hr.employee on res.users creation (needed for approval.request.owner_id), plus README.md, requirements.txt, and locust.conf for setup.
  • users.csv (real KMITL test credentials) and editor/OS artifacts (.vscode/, .DS_Store, .venv) are gitignored, not committed.

Test plan

  • pip install -r testing/requirements.txt
  • locust -f testing/locustfile.py --host=<odoo-host> and confirm login + tasks run against a test/UAT server
  • Review testing/README.md for the constants that need re-pointing (BUDGET_ACCOUNT_ID, analytic dimension IDs, CATEGORY_ID, product/partner IDs) before running against a different database

Simulates staff logging in, browsing Discuss/Todo/purchase requests,
running the agx_approval budget-approval flow (create, verify, reserve
budget), and browsing procurement/budget records. Real KMITL credentials
(users.csv) and editor/OS artifacts are gitignored, not committed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant