From 572f4ee3cfc1ebd06983ae327fafe97a57a9f214 Mon Sep 17 00:00:00 2001 From: lckjosh Date: Tue, 14 Nov 2023 10:37:18 +0800 Subject: [PATCH 1/2] Fix format in DG list implementation steps --- docs/DeveloperGuide.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 1d2741358..52cdc8d40 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -185,13 +185,20 @@ promote separation of concerns and to keep code more readable, we decided not to #### IV. Usage Scenario Example **Step 1**: User launches the application. `TransactionList` is initialized. -**Step 2**: User inputs `list` to list all transactions. The Parser identifies the command. + +**Step 2**: User inputs `list` to list all transactions. The Parser identifies the command. + **Step 3**: A `ListCommand` is created. This command is passed to `Nuscents`. + **Step 4**: `Nuscents` executes the `ListCommand`, which invokes `Ui.showTransactionList()` and `Ui.showBudgetExpense()`. + **Step 5**: `Ui.showTransactionList()` calls `TransactionList.getTransactions()`, which gets the Transactions in the TransactionList. + **Step 6**: The transactions in `TransactionList` are displayed to the user. -**Step 6**: `Ui.showBudgetExpense()` calls `TransactionList.getBudget()`, which gets the current budget set in the TransactionList. -**Step 7**: The budget details in `TransactionList` are displayed to the user. + +**Step 7**: `Ui.showBudgetExpense()` calls `TransactionList.getBudget()`, which gets the current budget set in the TransactionList. + +**Step 8**: The budget details in `TransactionList` are displayed to the user. The following sequence diagram shows how the list transaction operation works: From 16af0abddce0b059331714017fe980f7dbf604a6 Mon Sep 17 00:00:00 2001 From: lckjosh Date: Tue, 14 Nov 2023 10:43:58 +0800 Subject: [PATCH 2/2] Add instructions for manual testing --- docs/DeveloperGuide.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 52cdc8d40..75c272023 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -483,4 +483,24 @@ Managing and monitoring financial activities can sometimes be a hassle for stude **Transaction Logs:** Define a logging mechanism that captures relevant information for storage functions. Logs should be stored securely and be available for auditing purposes. ## Instructions for manual testing -Please refer to [User Guide](UserGuide.md) for instructions on testing. +Please refer to [User Guide](UserGuide.md) for example user inputs. +You may also vary the user input to an invalid one to see that the program handles it correctly. + +Here are some example invalid inputs to test: + +`foo bar` + +`allowance /amt -100 /desc negative /date 10-10-2010` + +`expense /amt 100 /desc missing date` + +`filter non-existent-category` + +`delete 0` + +`budget -100` + +`view first index` + +`edit first index` +