From f936259a5131fbec8da6e02eab4df473d57a897b Mon Sep 17 00:00:00 2001 From: KrashKart Date: Thu, 7 Nov 2024 23:52:27 +0800 Subject: [PATCH 1/3] Add instructions for manual testing --- docs/DeveloperGuide.md | 48 ++++++++++++++++++++++++++++++------------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index e0738e6c87b..4a548b03ada 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -540,32 +540,52 @@ testers are expected to do more *exploratory* testing. 1. Re-launch the app by double-clicking the jar file.
Expected: The most recent window size and location is retained. -1. _{ more test cases …​ }_ - ### Deleting a person 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`
+ 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 0`
+ Expected: No person is deleted. Error details shown in the status message. Status bar remains the same. + + 1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)
+ Expected: Similar to previous. + +### Finding a person - 1. Test case: `delete 1`
- 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. Finding a person with tags - 1. Test case: `delete 0`
- Expected: No person is deleted. Error details shown in the status message. Status bar remains the same. + 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
+ Expected: All contacts with tags containing x will be displayed. + 1. Test case: `find t/x t/y` where `x` and `y` are the substrings/tags chosen
+ Expected: The contact(s) with tags containing x or y will be displayed - 1. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)
- Expected: Similar to previous. +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
+ Expected: The contact(s) with name containing x and tags containing y will be displayed -1. _{ more test cases …​ }_ +1. Other incorrect find commands to try: `find`, `find x` (with no prefix)
+ Expected: Similar to previous. -### Saving data +### Deleting a tag from a person -1. Dealing with missing/corrupted data files +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
+ Expected: The tag x will be deleted from person i and the tag will also disappear from the Tag List. - 1. _{explain how to simulate a missing/corrupted file, and the expected behavior}_ +1. Other incorrect find commands to try: `deltag`, `deltag M t/x` (where M is larger than the list size or smaller than 0), `deltag 1 x`
+ Expected: Similar to previous. -1. _{ more test cases …​ }_ -------------------------------------------------------------------------------------------------------------------- ## **Future features** From 7ae5e7fccb262032b41dfeb9d20db6c4b8b509e8 Mon Sep 17 00:00:00 2001 From: KrashKart Date: Fri, 8 Nov 2024 00:07:22 +0800 Subject: [PATCH 2/3] Change minor thing --- docs/DeveloperGuide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 4a548b03ada..6dac3dd370f 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -583,7 +583,7 @@ testers are expected to do more *exploratory* testing. 1. Test case: `deltag i t/x` where `i` is the index and `x` is the tag chosen
Expected: The tag x will be deleted from person i and the tag will also disappear from the Tag List. -1. Other incorrect find commands to try: `deltag`, `deltag M t/x` (where M is larger than the list size or smaller than 0), `deltag 1 x`
+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`
Expected: Similar to previous. From a2e93117c26037cd37ecc6e62e2007428437a7ed Mon Sep 17 00:00:00 2001 From: KrashKart Date: Fri, 8 Nov 2024 00:12:34 +0800 Subject: [PATCH 3/3] Change expected results for deltag and find --- docs/DeveloperGuide.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 5f49a898fbf..ee85f3cf33b 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -547,10 +547,10 @@ testers are expected to do more *exploratory* testing. 1. Prerequisites: List all persons using the `list` command. Multiple persons in the list. 1. Test case: `delete 1`
- 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. + Expected: First contact is deleted from the list. Details of the deleted contact shown in the status message. 1. Test case: `delete 0`
- Expected: No person is deleted. Error details shown in the status message. Status bar remains the same. + 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)
Expected: Similar to previous. @@ -562,18 +562,18 @@ testers are expected to do more *exploratory* testing. 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
- Expected: All contacts with tags containing x will be displayed. + 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
- Expected: The contact(s) with tags containing x or y will be displayed + 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
- Expected: The contact(s) with name containing x and tags containing y will be displayed + 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)
- Expected: Similar to previous. + Expected: No filtering of contacts will occur and an error message will be displayed. ### Deleting a tag from a person @@ -581,10 +581,10 @@ testers are expected to do more *exploratory* testing. 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
- Expected: The tag x will be deleted from person i and the tag will also disappear from the Tag List. + 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`
- Expected: Similar to previous. + Expected: No deleting of tags will occur and an error message will be displayed. -------------------------------------------------------------------------------------------------------------------- ## **Appendix: Future features**