Skip to content

Commit

Permalink
Merge pull request #278
Browse files Browse the repository at this point in the history
Update manual testing for find and deltag
  • Loading branch information
KrashKart authored Nov 7, 2024
2 parents 71f26df + a2e9311 commit ee76f1f
Showing 1 changed file with 35 additions and 10 deletions.
45 changes: 35 additions & 10 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,23 +544,48 @@ 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.

### Saving data
### Finding a person

1. Dealing with missing/corrupted data files
1. Finding a person with tags

1. _{explain how to simulate a missing/corrupted file, and the expected behavior}_
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

0 comments on commit ee76f1f

Please sign in to comment.