[16.0][ADD] testing: add Locust load test for KMITL ERP - #1201
Open
n3n wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
testing/directory: a Locust load test (locustfile.py) simulating KMITL staff logging in and exercising Discuss, Todo, purchase requests, theagx_approvalbudget-approval flow (create → verify → reserve budget), and procurement/budget browsing.base.automationXML snippet to auto-create anhr.employeeonres.userscreation (needed forapproval.request.owner_id), plusREADME.md,requirements.txt, andlocust.conffor 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.txtlocust -f testing/locustfile.py --host=<odoo-host>and confirm login + tasks run against a test/UAT servertesting/README.mdfor the constants that need re-pointing (BUDGET_ACCOUNT_ID, analytic dimension IDs,CATEGORY_ID, product/partner IDs) before running against a different database