Skip to content

Commit

Permalink
Merge branch 'master' into add-instructions-ug
Browse files Browse the repository at this point in the history
  • Loading branch information
KrashKart authored Nov 8, 2024
2 parents 8f1e6fd + 320961a commit 66c997d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 11 deletions.
55 changes: 45 additions & 10 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,16 +544,16 @@ testers are expected to do more *exploratory* testing.

1. Deleting a person while all persons are being shown

1. Prerequisites: List all persons using the `list` command. Multiple persons in the list.
1. Prerequisites: List all persons using the `list` command. Multiple persons in the list.

1. Test case: `delete 1`<br>
Expected: First contact is deleted from the list. Details of the deleted contact shown in the status message. Timestamp in the status bar is updated.
1. Test case: `delete 1`<br>
Expected: First contact is deleted from the list. Details of the deleted contact shown in the status message.

1. Test case: `delete 0`<br>
Expected: No person is deleted. Error details shown in the status message. Status bar remains the same.
1. Test case: `delete 0`<br>
Expected: No person is deleted. Error details shown in the status message.

1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)<br>
Expected: Similar to previous.
1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)<br>
Expected: Similar to previous.

### Categorizing a tag

Expand All @@ -574,13 +574,48 @@ testers are expected to do more *exploratory* testing.
2. Test case: `cattag t/A foo` </br>
Expected: Error message "`Invalid category: foo`" is shown. Message for invalid tag is not shown for this case.

### Undoing the last operation

### Saving data
1. Undoing an execution that modifies the CampusConnect data
1. Prerequisites: Perform any operation that modifies the state (all executions except for list and find) to ensure there is an action to undo.

1. Dealing with missing/corrupted data files
1. Test case: undo
Expected: The last operation is undone, restoring the previous state. The list updates accordingly, and a status message confirms the undo action.

1. _{explain how to simulate a missing/corrupted file, and the expected behavior}_
1. Test case: undo immediately after starting the application (with no operations performed)
Expected: No undo operation is performed. An error message appears in the status message, indicating there is no action to undo.

### Finding a person

1. Finding a person with tags

1. Prerequisites: There are contacts in the contact list. Add some if this is not the case.
1. Assumption: Pick any 2 tags (or substring of the tags) present in any contact in the contact list. Call these x and y.
1. Test case: `find t/x` where `x` is the substring/tag chosen<br>
Expected: All contacts with tags containing x will be displayed with a success message.
1. Test case: `find t/x t/y` where `x` and `y` are the substrings/tags chosen<br>
Expected: The contact(s) with tags containing x or y will be displayed with a success message.

1. Finding a person with multiple fields
1. Prerequisites: There are contacts with tags in the contact list. Add some if this is not the case.
1. Assumption: Pick any name and tag within the same contact. Call these name x and tag y.
1. Test case: `find n/x t/y` where `x` and `y` are the name and tag chosen<br>
Expected: The contact(s) with name containing x and tags containing y will be displayed with a success message.

1. Other incorrect find commands to try: `find`, `find x` (with no prefix)<br>
Expected: No filtering of contacts will occur and an error message will be displayed.

### Deleting a tag from a person

1. Deleting a tag.
1. Prerequisites: There are contacts with tags in the contact list. Add some if this is not the case.
1. Assumption: Pick any contact with at least one tag. Let `i` be the index (one-based) of this contact and `x` be the name of the tag.
1. Test case: `deltag i t/x` where `i` is the index and `x` is the tag chosen<br>
Expected: The tag x will be deleted from person i and the tag will also disappear from the Tag List. A success message will be displayed.

1. Other incorrect delete tag commands to try: `deltag`, `deltag M t/x` (where M is larger than the list size or smaller than 0), `deltag 1 x`<br>
Expected: No deleting of tags will occur and an error message will be displayed.

--------------------------------------------------------------------------------------------------------------------
## **Appendix: Future features**
Below is a list of features that we feel would further enhance the user experience.
Expand Down
Binary file modified docs/images/CampusConnectLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/main/resources/images/CampusConnectLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/images/HelpWindowLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/view/HelpWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?import javafx.scene.control.Hyperlink?>
<fx:root resizable="false" title="CampusConnect Help" type="javafx.stage.Stage" xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1">
<icons>
<Image url="@/images/CampusConnectLogo.png" requestedWidth="100"/>
<Image url="@/images/HelpWindowLogo.png" requestedWidth="100"/>
</icons>
<scene>
<Scene>
Expand Down

0 comments on commit 66c997d

Please sign in to comment.