Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix format in DG list implementation steps, add instructions for manual testing #191

Merged
merged 3 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,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:

Expand Down Expand Up @@ -475,5 +482,25 @@ These additions provide users with a warning feature, enhancing the financial tr

**Transaction Logs:** Define a logging mechanism that captures relevant information for storage functions. Logs should be stored securely and be available for auditing purposes.

## Appendix D: Instructions for manual testing
Please refer to [User Guide](UserGuide.md) for instructions on testing.

## Instructions for manual 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`
Loading