Manual test for expense CRUD¶
Table of contents¶
Purpose¶
User acceptance test to validate expense create, read, update, and delete operations with sync confirmation in the HomeBudget apps.
Prerequisites¶
- HomeBudget Windows app installed and running
- HomeBudget mobile app available for sync checks
- Live HomeBudget database configured and connected to the apps
- Copy
config/hb-config.json.sampleto%USERPROFILE%/OneDrive/Documents/HomeBudgetData/hb-config.json - Edit the config file to set
db_pathto your operational homebudget.db -
Or use
--dbflag to specify your operational database path -
Wrapper environment activated
- Package installed in editable mode
Test procedure¶
- User action: record the current expense count in the Windows app
- Automated: add an expense with the wrapper (uses config database by default)
homebudget expense add \
--date 2026-02-16 \
--category Dining \
--subcategory Restaurant \
--amount 25.50 \
--account Wallet \
--notes "TDD Test Expense"
Note: To use a specific database, add --db <path_to_your_homebudget.db>
- Automated: verify a new SyncUpdate entry exists
- User action: confirm the new expense appears in the Windows app
- User action: wait for sync and confirm the expense appears in the mobile app
- Automated: locate the new expense key using the list command
- Automated: update the expense amount with the wrapper using the new key
- User action: confirm the expense amount update in the Windows app
- Automated: delete the expense with the wrapper using the new key
- User action: confirm the expense is removed in the Windows app
- User action: wait for sync and confirm the deletion in the mobile app
- Record results and any notes
Results¶
- Result status
- Notes
- Timestamp