From 73174ff4f57ed2cfe9f1b2ad15c10cc7795124f6 Mon Sep 17 00:00:00 2001 From: wesho1107 Date: Tue, 14 Nov 2023 12:02:24 +0800 Subject: [PATCH] Fix indents --- docs/DeveloperGuide.md | 682 ++++++++++++++++++++--------------------- 1 file changed, 340 insertions(+), 342 deletions(-) diff --git a/docs/DeveloperGuide.md b/docs/DeveloperGuide.md index 288a039c5eb..cda43ee044e 100644 --- a/docs/DeveloperGuide.md +++ b/docs/DeveloperGuide.md @@ -1669,16 +1669,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`
- 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. + 2. 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. + 3. 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. + 4. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is larger than the list size)
+ Expected: Similar to previous. @@ -1687,192 +1687,190 @@ testers are expected to do more *exploratory* testing. #### Viewing assignments 1. Viewing assignments with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `viewasssignments 1`
- Expected: List of assignments belonging to the student of index 1 is shown. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `viewasssignments 1`
+ Expected: List of assignments belonging to the student of index 1 is shown. 2. Viewing assignments with _invalid index_ - 1. Test case: `viewasssignments 0`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignments are not shown.
Reason: The person index provided does not exist. + 1. Test case: `viewasssignments 0`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignments are not shown.
Reason: The person index provided does not exist. #### Editing grades 1. Editing an assignment grade with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgrade 1 as/Functional Expressionism g/500` - Expected: Grade of the specified assignment has been edited to 500/500. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgrade 1 as/Functional Expressionism g/500` + Expected: Grade of the specified assignment has been edited to 500/500. 2. Editing an assignment grade with _invalid index_ - 1. Test case: `editgrade 0 as/Functional Expressionism g/500` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The person index provided does not exist. + 1. Test case: `editgrade 0 as/Functional Expressionism g/500` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The person index provided does not exist. 3. Editing an assignment grade with _invalid assignment name_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgrade 1 as/Finding Boyd g/500` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The assignment name does not exist. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgrade 1 as/Finding Boyd g/500` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The assignment name does not exist. 4. Editing an assignment grade with _invalid grade_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgrade 1 as/Functional Expressionism g/700` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The grade exceeds the maximum grade by more than 75. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgrade 1 as/Functional Expressionism g/700` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The grade exceeds the maximum grade by more than 75. #### Deleting grades 1. Deleting an assignment grade with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. The assignment has already been graded. - 2. Test case: `deletegrade 1 as/Functional Expressionism` - Expected: Grade of the specified assignment has been deleted. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. The assignment has already been graded. + 2. Test case: `deletegrade 1 as/Functional Expressionism` + Expected: Grade of the specified assignment has been deleted. 2. Deleting an assignment grade with _invalid index_ - 1. Test case: `deletegrade 0 as/Functional Expressionism` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not deleted.
Reason: The person index provided does not exist. + 1. Test case: `deletegrade 0 as/Functional Expressionism` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not deleted.
Reason: The person index provided does not exist. 3. Deleting an assignment grade with _invalid assignment name_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `deletegrade 1 as/Finding Boyd` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not deleted.
Reason: The assignment name does not exist. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `deletegrade 1 as/Finding Boyd` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not deleted.
Reason: The assignment name does not exist. #### Editing comments 1. Editing an assignment comment with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editcomment 1 as/Functional Expressionism c/Good job!` - Expected: Comment of the specified assignment has been edited to "Good job!". + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editcomment 1 as/Functional Expressionism c/Good job!` + Expected: Comment of the specified assignment has been edited to "Good job!". 2. Editing an assignment comment with _invalid index_ - 1. Test case: `editcomment 0 as/Functional Expressionism c/Good job!` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not edited.
Reason: The person index provided does not exist. + 1. Test case: `editcomment 0 as/Functional Expressionism c/Good job!` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not edited.
Reason: The person index provided does not exist. 3. Editing an assignment comment with _invalid assignment name_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editcomment 1 as/Finding Boyd c/Good job!` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not edited.
Reason: The assignment name does not exist. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editcomment 1 as/Finding Boyd c/Good job!` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not edited.
Reason: The assignment name does not exist. 4. Editing an assignment comment with _invalid comment_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editcomment 1 as/Functional Expressionism c/` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The comment cannot be empty. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editcomment 1 as/Functional Expressionism c/` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment grade is not edited.
Reason: The comment cannot be empty. #### Deleting comments 1. Deleting an assignment comment with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. The assignment has already been commented on. - 2. Test case: `deletecomment 1 as/Functional Expressionism` - Expected: Comment of the specified assignment has been deleted. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. The assignment has already been commented on. + 2. Test case: `deletecomment 1 as/Functional Expressionism` + Expected: Comment of the specified assignment has been deleted. 2. Deleting an assignment comment with _invalid index_ - 1. Test case: `deletecomment 0 as/Functional Expressionism` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not deleted.
Reason: The person index provided does not exist. + 1. Test case: `deletecomment 0 as/Functional Expressionism` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not deleted.
Reason: The person index provided does not exist. 3. Deleting an assignment comment with _invalid assignment name_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `deletecomment 1 as/Finding Boyd` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not deleted.
Reason: The assignment name does not exist. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `deletecomment 1 as/Finding Boyd` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Assignment comment is not deleted.
Reason: The assignment name does not exist. ### Graded Test #### Editing graded test scores 1. Editing the score(s) of a graded test with _valid parameters_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 - Expected: F.A.K.E.J.A.R.V.I.S. successfully edits the scores for the specified person's graded test. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 + Expected: F.A.K.E.J.A.R.V.I.S. successfully edits the scores for the specified person's graded test. 2. Editing the score(s) of a graded test with an _empty list_ - 1. Prerequisites: - 1. The list of persons is empty. - 2. Test case: editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 - F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited
Reason: The student list is empty. + 1. Prerequisites: + 1. The list of persons is empty. + 2. Test case: editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 + F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited
Reason: The student list is empty. 3. Editing the score(s) of a graded test with an _invalid index_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 0 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given index is invalid. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 0 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given index is invalid. 4. Editing the score(s) of a graded test with _empty parameter(s)_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The parameter(s) given is empty. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The parameter(s) given is empty. 5. Editing the score(s) of a graded test with _invalid parameter(s)_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra3/90 pee/100` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The parameter(s) given is/are invalid. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra3/90 pee/100` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The parameter(s) given is/are invalid. 6. Editing the score(s) of a graded test with _extra parameter(s)_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 ra2/75` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: Extra parameter(s) is/are given. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra1/90 ra2/85 mt/95 f/80 pe/75 ra1/88 ra2/75` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: Extra parameter(s) is/are given. 7. Editing the score(s) of a graded test with _fewer parameter(s)_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra1/90 ra2/85 mt/95` - Expected: F.A.K.E.J.A.R.V.I.S. displays a success message. Graded Test scores are edited. Reason: Graded Test fields are optional. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra1/90 ra2/85 mt/95` + Expected: F.A.K.E.J.A.R.V.I.S. displays a success message. Graded Test scores are edited. Reason: Graded Test fields are optional. 8. Editing the score(s) of a graded test with _parameters in different order_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra1/90 pe/75 f/80 ra2/85 mt/95` - Expected: F.A.K.E.J.A.R.V.I.S. displays a success message. Graded Test scores are edited. Reason: The order of Graded Test fields does not matter. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra1/90 pe/75 f/80 ra2/85 mt/95` + Expected: F.A.K.E.J.A.R.V.I.S. displays a success message. Graded Test scores are edited. Reason: The order of Graded Test fields does not matter. 9. Editing the score(s) of a graded test with _an invalid score_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra1/-100 ra2/85 mt/105 f/80 pe/75 ra1/88` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given score is invalid. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra1/-100 ra2/85 mt/105 f/80 pe/75 ra1/88` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given score is invalid. 10. Editing the score(s) of a graded test with _multiple invalid scores_ - 1. Prerequisites: - 1. There is at least 1 student being displayed in the students list. - 2. Test case: `editgradedtest 1 ra1/-90 ra2/-85 mt/-100 f/invalid pe/-75 ra1/-88` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given scores are invalid. + 1. Prerequisites: + 1. There is at least 1 student being displayed in the students list. + 2. Test case: `editgradedtest 1 ra1/-90 ra2/-85 mt/-100 f/invalid pe/-75 ra1/-88` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Graded Test scores are not edited.
Reason: The given scores are invalid. ### Consultation #### Creating a consultation 1. Creating a consultation with a single student and _valid parameters_. - 1. Prerequisites: - 1. Date and time inputs must be valid - 2. Student name must exist in student list. - 3. There must not be a duplicate consultation (same date, time and students). - - 2. Test case: `createconsult d/10/11/2023 tt/13:00 n/Alex Yeoh`
- Expected: A consultation on 10/11/2023 at 13:00 with student Alex Yeoh, is created and stored in the list of consultations. + 1. Prerequisites: + 1. Date and time inputs must be valid + 2. Student name must exist in student list. + 3. There must not be a duplicate consultation (same date, time and students). + 2. Test case: `createconsult d/10/11/2023 tt/13:00 n/Alex Yeoh`
+ Expected: A consultation on 10/11/2023 at 13:00 with student Alex Yeoh, is created and stored in the list of consultations. 2. Creating a consultation with multiple students and _valid parameters_. 1. Prerequisites: 1. Date and time inputs must be valid 2. Student names must exist in student list. 3. There must not be a duplicate consultation (same date, time and students). - 2. Test case: `createconsult d/10/11/2023 tt/13:00 n/Alex Yeoh n/Bernice Yu`
Expected: A consultation on 10/11/2023 at 13:00 with student Alex Yeoh and Bernice Yu, is created and stored in the list of consultations. @@ -1912,35 +1910,35 @@ testers are expected to do more *exploratory* testing. #### Deleting a consultation 1. Deleting a consultation with _valid parameters_. - 1. Prerequisites: - 1. Consultation must exist in the consultation list. - 2. Index must be a positive integer. - 2. Test case: `deleteconsult 2`
- Expected: Consultation at index 2 is deleted from the consultation list. Details of the deleted consultation is shown in the status message. + 1. Prerequisites: + 1. Consultation must exist in the consultation list. + 2. Index must be a positive integer. + 2. Test case: `deleteconsult 2`
+ Expected: Consultation at index 2 is deleted from the consultation list. Details of the deleted consultation is shown in the status message. 2. Deleting a consultation with _invalid parameters_. - 1. Test case: `deleteconsult 2` `deleteconsult 2`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is deleted on the second command.
- Reason: There is no consultation found with the given index in the consultation list. - 2. Test case: `deleteconsult -1`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is created.
- Reason: Index must be a positive integer. + 1. Test case: `deleteconsult 2` `deleteconsult 2`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is deleted on the second command.
+ Reason: There is no consultation found with the given index in the consultation list. + 2. Test case: `deleteconsult -1`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is created.
+ Reason: Index must be a positive integer. 3. Deleting a consultation with _missing parameters_. - 1. Test case: `deleteconsult`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is deleted.
- Reason: Index is missing. + 1. Test case: `deleteconsult`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is deleted.
+ Reason: Index is missing. #### Adding a student to a consultation 1. Adding to a consultation with _valid parameters_. - 1. Prerequisites: - 1. Consultation must exist in the consultation list. - 2. Index must be a positive integer. - 3. Student must exist in the address book. - 4. Student must not already in the consultation. - 2. Test case: `addtoconsult 2 n/Alex Yeoh`
- Expected: Alex Yeoh is added to the consultation at index 2. Details of the updated consultation is shown in the status message. + 1. Prerequisites: + 1. Consultation must exist in the consultation list. + 2. Index must be a positive integer. + 3. Student must exist in the address book. + 4. Student must not already in the consultation. + 2. Test case: `addtoconsult 2 n/Alex Yeoh`
+ Expected: Alex Yeoh is added to the consultation at index 2. Details of the updated consultation is shown in the status message. 2. Adding to a consultation with _invalid parameters_. 1. Test case: `addtoconsult 2 n/Alex Yeoh` `addtoconsult 2 n/Alex Yeoh`
@@ -1964,181 +1962,181 @@ testers are expected to do more *exploratory* testing. #### Removing a student from a consultation 1. Removing a student with _valid parameters_. - 1. Prerequisites: - 1. Consultation must exist in the consultation list. - 2. Index must be a positive integer. - 2. Student must exist in the student list. - 3. Student must exist in the consultation. - 1. Test case: `removefromconsult 2 n/Alex Yeoh`
- Expected: Alex Yeoh is removed from the consultation at index 2. Details of the updated consultation is shown in the status message. + 1. Prerequisites: + 1. Consultation must exist in the consultation list. + 2. Index must be a positive integer. + 3. Student must exist in the student list. + 4. Student must exist in the consultation. + 2. Test case: `removefromconsult 2 n/Alex Yeoh`
+ Expected: Alex Yeoh is removed from the consultation at index 2. Details of the updated consultation is shown in the status message. 2. Removing a student with _invalid parameters_. - 1. Test case: `removefromconsult 2 n/Alex Yeoh` `removefromconsult 2 n/Alex Yeoh`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated on the second command.
- Reason: Student must exist in the consultation. - 2. Test case: `removefromconsult 2 n/fakenamethatdoesnotexist`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
- Reason: Student must exist in the student list and the consultation. - 3. Test case: `removefromconsult -1 n/Alex Yeoh`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
- Reason: Index must be a positive integer. - 4. Test case: `removefromconsult x n/Alex Yeoh` (where x is greater than consultation list size)
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
- Reason: Consultation must exist in the consultation list. + 1. Test case: `removefromconsult 2 n/Alex Yeoh` `removefromconsult 2 n/Alex Yeoh`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated on the second command.
+ Reason: Student must exist in the consultation. + 2. Test case: `removefromconsult 2 n/fakenamethatdoesnotexist`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
+ Reason: Student must exist in the student list and the consultation. + 3. Test case: `removefromconsult -1 n/Alex Yeoh`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
+ Reason: Index must be a positive integer. + 4. Test case: `removefromconsult x n/Alex Yeoh` (where x is greater than consultation list size)
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
+ Reason: Consultation must exist in the consultation list. 3. Removing a student with _missing parameters_. - 1. Test case: `removefromconsult`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
- Reason: Both parameters are missing. + 1. Test case: `removefromconsult`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No consultation is updated.
+ Reason: Both parameters are missing. ### Session #### Creating a session 1. Creating a session with a single student with _valid parameters_ - 1. Prerequisites: - 1. Student name must exist in the student list. - 2. No session with the session number given exists in the session list. - 2. Test case: `createsession s/2 n/Alex Yeoh`
- Expected: A session with session number 2, containing the student Alex Yeoh, is created and stored in the session list. + 1. Prerequisites: + 1. Student name must exist in the student list. + 2. No session with the session number given exists in the session list. + 2. Test case: `createsession s/2 n/Alex Yeoh`
+ Expected: A session with session number 2, containing the student Alex Yeoh, is created and stored in the session list. 2. Creating a session with multiple students with _valid parameters_ - 1. Prerequisites: - 1. All student names must exist in the student list. - 2. No session with the session number given exists in the session list. - 2. Test case: `createsession s/2 n/Alex Yeoh n/Bernice Yu`
- Expected: A session with session number 2, containing the students Alex Yeoh and Bernice Yu, is created and stored in the session list. + 1. Prerequisites: + 1. All student names must exist in the student list. + 2. No session with the session number given exists in the session list. + 2. Test case: `createsession s/2 n/Alex Yeoh n/Bernice Yu`
+ Expected: A session with session number 2, containing the students Alex Yeoh and Bernice Yu, is created and stored in the session list. 3. Creating a session with a single student with _invalid parameters_ - 1. Test case: `createsession s/2 n/Alex Yeoh` `createsession s/2 n/Alex Yeoh`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created on the second command.
- Reason: There cannot exist two sessions with the same session number in the session list. - 2. Test case: `createsession s/2 n/fakenamethatdoesnotexist`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
- Reason: Student name must exist in the student list. + 1. Test case: `createsession s/2 n/Alex Yeoh` `createsession s/2 n/Alex Yeoh`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created on the second command.
+ Reason: There cannot exist two sessions with the same session number in the session list. + 2. Test case: `createsession s/2 n/fakenamethatdoesnotexist`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
+ Reason: Student name must exist in the student list. 4. Creating a session with _mix of valid and invalid students_ - 1. Test case: `createsession s/2 n/Alex Yeoh n/fakenamethatdoesnotexist`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
- Reason: All student names must exist in the student list. + 1. Test case: `createsession s/2 n/Alex Yeoh n/fakenamethatdoesnotexist`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
+ Reason: All student names must exist in the student list. 5. Creating a session with _missing parameters_ - 1. Test case: `createsession s/2`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
- Reason: Student name parameter is missing. - 2. Test case: `createsession n/Alex Yeoh`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
- Reason: Session number parameter is missing. + 1. Test case: `createsession s/2`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
+ Reason: Student name parameter is missing. + 2. Test case: `createsession n/Alex Yeoh`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No new session is created.
+ Reason: Session number parameter is missing. #### Updating a session remark 1. Updating a session remark with _valid parameters_ - 1. Prerequisites: - 1. Session must exist in the session list. - 2. Test case: `updatesessionremark s/2 r/Update the remark to this text`
- Expected: The session with session number 2 has its remark field updated to "Update the remark to this text". + 1. Prerequisites: + 1. Session must exist in the session list. + 2. Test case: `updatesessionremark s/2 r/Update the remark to this text`
+ Expected: The session with session number 2 has its remark field updated to "Update the remark to this text". 2. Updating a session remark with _missing parameters_ - 1. Test case: `updatesessionremark r/Valid remark, but missing session number`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
- Reason: Session number parameter is missing. - 2. Test case: `updatesessionremark s/2`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
- Reason: Session remark parameter is missing. - 3. Test case: `updatesessionremark` - Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
- Reason: Session number and session remark parameters are missing. + 1. Test case: `updatesessionremark r/Valid remark, but missing session number`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
+ Reason: Session number parameter is missing. + 2. Test case: `updatesessionremark s/2`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
+ Reason: Session remark parameter is missing. + 3. Test case: `updatesessionremark` + Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No update to any session's remarks.
+ Reason: Session number and session remark parameters are missing. #### Deleting a session 1. Deleting a session with _valid parameters_ - 1. Prerequisites: - 1. Session must exist in the session list. - 2. Test case: `deletesession s/2`
- Expected: Session with session number 2 is deleted from the session list. Details of the deleted session is shown in the status message. + 1. Prerequisites: + 1. Session must exist in the session list. + 2. Test case: `deletesession s/2`
+ Expected: Session with session number 2 is deleted from the session list. Details of the deleted session is shown in the status message. 2. Deleting a session with _invalid parameters_ - 1. Test case: `deletesession s/2` `deletesession s/2`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No session is deleted on the second command.
- Reason: The session with the given session number must exist in the session list. + 1. Test case: `deletesession s/2` `deletesession s/2`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No session is deleted on the second command.
+ Reason: The session with the given session number must exist in the session list. 3. Deleting sessions with _missing parameters_ - 1. Test case: `deletesession`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Session number parameter is missing. + 1. Test case: `deletesession`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Session number parameter is missing. #### Taking Attendance 1. Taking attendance of a _valid student_ - 1. Prerequisites: - 1. Session must exist in the session list. - 2. Student name must exist in the student list. - 2. Test case: `takeattendance s/2 n/David Li ap/present`
- Expected: David Li is added to the session with session number 2, marking him as present. + 1. Prerequisites: + 1. Session must exist in the session list. + 2. Student name must exist in the student list. + 2. Test case: `takeattendance s/2 n/David Li ap/present`
+ Expected: David Li is added to the session with session number 2, marking him as present. 2. Taking attendance of an _invalid student_ - 1. Test case: `takeattendance s/2 n/fakenamethatdoesnotexist ap/absent`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Student name must exist in the student list. + 1. Test case: `takeattendance s/2 n/fakenamethatdoesnotexist ap/absent`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Student name must exist in the student list. 3. Taking attendance with _missing parameters_ - 1. Test case: `takeattendance n/David Li ap/present`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Session number parameter is missing. - 2. Test case: `takeattendance s/2 n/David Li`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Attendance presence parameter is missing. - 3. Test case: `takeattendance s/2 ap/present`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Student name parameter is missing. - 4. Test case: `takeattendance`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
- Reason: Session number, student name and attendance presence parameters are missing. + 1. Test case: `takeattendance n/David Li ap/present`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Session number parameter is missing. + 2. Test case: `takeattendance s/2 n/David Li`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Attendance presence parameter is missing. + 3. Test case: `takeattendance s/2 ap/present`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Student name parameter is missing. + 4. Test case: `takeattendance`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. No attendance is taken.
+ Reason: Session number, student name and attendance presence parameters are missing. 4. Taking attendance of _multiple valid students_ - 1. Prerequisites: - 1. Session must exist in the session list. - 2. All student names must exist in the student list. - 2. Test case: `takeattendance s/2 n/Bernice Yu n/David Li ap/absent`
- Expected: Bernice Yu and David Li are removed from the session with session number 2, marking them as absent. + 1. Prerequisites: + 1. Session must exist in the session list. + 2. All student names must exist in the student list. + 2. Test case: `takeattendance s/2 n/Bernice Yu n/David Li ap/absent`
+ Expected: Bernice Yu and David Li are removed from the session with session number 2, marking them as absent. 5. Taking attendance of _mix of valid and invalid students_ - 1. Test case: `takeattendance s/2 n/fakenamethatdoesnotexist n/Alex Yeoh ap/present`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
- Reason: The name of all students must exist in the student list. + 1. Test case: `takeattendance s/2 n/fakenamethatdoesnotexist n/Alex Yeoh ap/present`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
+ Reason: The name of all students must exist in the student list. #### Viewing Attendance 1. Viewing attendance of a _valid student_ - 1. Prerequisites: - 1. Student name must exist in the student list. - 2. Test case: `viewattendance n/Bernice Yu`
- Expected: All sessions attended by Bernice Yu will be displayed. + 1. Prerequisites: + 1. Student name must exist in the student list. + 2. Test case: `viewattendance n/Bernice Yu`
+ Expected: All sessions attended by Bernice Yu will be displayed. 2. Viewing attendance of an _invalid student_ - 1. Test case: `viewattendance n/fakenamethatdoesnotexist`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
- Reason: The name of the student must exist in the student list. + 1. Test case: `viewattendance n/fakenamethatdoesnotexist`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
+ Reason: The name of the student must exist in the student list. 3. Viewing attendance of _multiple valid students_ - 1. Prerequisites: - 1. Student names must exist in the student list. - 2. Test case: `viewattendance n/Alex Yeoh n/Bernice Yu`
- Expected: All sessions attended by either Alex Yeoh or Bernice Yu, or both, will be displayed. + 1. Prerequisites: + 1. Student names must exist in the student list. + 2. Test case: `viewattendance n/Alex Yeoh n/Bernice Yu`
+ Expected: All sessions attended by either Alex Yeoh or Bernice Yu, or both, will be displayed. 4. Viewing attendance of _mix of valid and invalid students_ - 1. Test case: `viewattendance n/Alex Yeoh n/fakenamethatdoesnotexist`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
- Reason: The names of all students must exist in the student list. + 1. Test case: `viewattendance n/Alex Yeoh n/fakenamethatdoesnotexist`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
+ Reason: The names of all students must exist in the student list. 5. Viewing overall attendance across all students - 1. Test case: `viewattendance`
- Expected: All sessions will be displayed. + 1. Test case: `viewattendance`
+ Expected: All sessions will be displayed. ### Task @@ -2146,154 +2144,154 @@ testers are expected to do more *exploratory* testing. #### Adding tasks 1. Adding a task with _valid parameters_ - 1. Prerequisites: - 1. There is no other task with the same name and description. - 2. Test case: `addtask tn/finish up user guide td/please by tonight d/14/11/2023 tp/high`
- Expected: Task is added. + 1. Prerequisites: + 1. There is no other task with the same name and description. + 2. Test case: `addtask tn/finish up user guide td/please by tonight d/14/11/2023 tp/high`
+ Expected: Task is added. 2. Adding a task with _invalid name_ - 1. Test case: `addtask tn/--`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Name should only consist of alphanumeric characters. + 1. Test case: `addtask tn/--`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Name should only consist of alphanumeric characters. 3. Adding a task with _invalid description_ - 1. Test case: `addtask tn/do up developer guide td/the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Description should be less than 100 characters. + 1. Test case: `addtask tn/do up developer guide td/the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog the quick brown fox jumped over the lazy dog`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Description should be less than 100 characters. 4. Adding a task with _invalid date_ - 1. Test case: `addtask tn/test number 4 td/test number 4 please work d/29/02/2023`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Date should be a valid date that exists in the calendar. + 1. Test case: `addtask tn/test number 4 td/test number 4 please work d/29/02/2023`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Date should be a valid date that exists in the calendar. 5. Adding a task with _invalid priority_ - 1. Test case: `addtask tn/test number 5 td/test number 5 please work d/27/02/2023 tp/asdasdsa`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Priority should only be `HIGH`, `MEDIUM`, or `LOW`. + 1. Test case: `addtask tn/test number 5 td/test number 5 please work d/27/02/2023 tp/asdasdsa`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Task is not added.
Reason: Priority should only be `HIGH`, `MEDIUM`, or `LOW`. #### Viewing tasks 1. Listing all tasks with _no filters_ - 1. Prerequisites: - 1. There are multiple tasks in the task list which have been added using the `AddTask` command. - 2. Test case: `viewtasks`
- Expected: Displays all the tasks in the task list. + 1. Prerequisites: + 1. There are multiple tasks in the task list which have been added using the `AddTask` command. + 2. Test case: `viewtasks`
+ Expected: Displays all the tasks in the task list. 2. Listing tasks filtered using _date filter_ - 1. Prerequisites: - 1. There are tasks that have the date `22/10/2023`. - 2. Test case: `viewtasks d/22/10/2023`
- Expected: Displays all the tasks in the task list that have the date `22/10/2023`. + 1. Prerequisites: + 1. There are tasks that have the date `22/10/2023`. + 2. Test case: `viewtasks d/22/10/2023`
+ Expected: Displays all the tasks in the task list that have the date `22/10/2023`. 3. Listing tasks filtered using _name filter_ - 1. Prerequisites: - 1. There are tasks that have the keywords `user guide` in the Task Name. - 2. Test case: `viewtasks tn/user guide`
- Expected: Displays all the tasks in the task list that have `user guide` in the Task Name. + 1. Prerequisites: + 1. There are tasks that have the keywords `user guide` in the Task Name. + 2. Test case: `viewtasks tn/user guide`
+ Expected: Displays all the tasks in the task list that have `user guide` in the Task Name. 4. Listing tasks filtered using _description filter_ - 1. Prerequisites: - 1. There are tasks that have the keywords `homework` in the Task Description. - 2. Test case: `viewtasks td/homework`
- Expected: Displays all the tasks in the task list that have `homework` in the Task Description. + 1. Prerequisites: + 1. There are tasks that have the keywords `homework` in the Task Description. + 2. Test case: `viewtasks td/homework`
+ Expected: Displays all the tasks in the task list that have `homework` in the Task Description. 5. Listing tasks filtered using _priority filter_ - 1. Prerequisites: - 1. There are tasks that have `HIGH` priority. - 2. Test case: `viewtasks tp/HIGH`
- Expected: Displays all the tasks in the task list that have `HIGH` priority. + 1. Prerequisites: + 1. There are tasks that have `HIGH` priority. + 2. Test case: `viewtasks tp/HIGH`
+ Expected: Displays all the tasks in the task list that have `HIGH` priority. 6. Listing tasks filtered using _progress filter_ - 1. Prerequisites: - 1. There are tasks that have `PENDING` progress. - 2. Test case: `viewtasks tprog/PENDING`
- Expected: Displays all the tasks in the task list that have `PENDING` progress. + 1. Prerequisites: + 1. There are tasks that have `PENDING` progress. + 2. Test case: `viewtasks tprog/PENDING`
+ Expected: Displays all the tasks in the task list that have `PENDING` progress. 7. Listing all tasks with no tasks in the task list - 1. Prerequisites: - 1. There are no tasks in the task list. - 2. Test case: `viewtasks tprog/PENDING`
- Expected: No tasks will be shown. + 1. Prerequisites: + 1. There are no tasks in the task list. + 2. Test case: `viewtasks tprog/PENDING`
+ Expected: No tasks will be shown. 8. Listing all tasks with _invalid parameters_ - 1. Test case: `viewtasks tprog/asdasdasd`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
Reason: Progress should only be `NOT_STARTED`, `PENDING`, or `DONE`. Furthermore, the constraints of the parameters detailed in `AddTask` also apply here. + 1. Test case: `viewtasks tprog/asdasdasd`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error.
Reason: Progress should only be `NOT_STARTED`, `PENDING`, or `DONE`. Furthermore, the constraints of the parameters detailed in `AddTask` also apply here. #### Updating progress of tasks 1. Updating progress of a task as _pending_ - 1. Prerequisites: - 1. There is at least one task in the task list currently shown. - 2. Test case: `updateprogress 1 tprog/PENDING`
- Expected: Updates the task's progress to `PENDING`. + 1. Prerequisites: + 1. There is at least one task in the task list currently shown. + 2. Test case: `updateprogress 1 tprog/PENDING`
+ Expected: Updates the task's progress to `PENDING`. 2. Updating progress of a task as _not_started_ - 1. Prerequisites: - 1. There is at least one task in the task list currently shown. - 2. Test case: `updateprogress 1 tprog/NOT_STARTED`
- Expected: Updates the task's progress to `NOT_STARTED`. + 1. Prerequisites: + 1. There is at least one task in the task list currently shown. + 2. Test case: `updateprogress 1 tprog/NOT_STARTED`
+ Expected: Updates the task's progress to `NOT_STARTED`. 3. Updating progress of a task as _done_ - 1. Prerequisites: - 1. There is at least one task in the task list currently shown. - 2. Test case: `updateprogress 1 tprog/DONE`
- Expected: Updates the task's progress to `DONE`. + 1. Prerequisites: + 1. There is at least one task in the task list currently shown. + 2. Test case: `updateprogress 1 tprog/DONE`
+ Expected: Updates the task's progress to `DONE`. 4. Updating progress of a task as an _invalid parameter_ - 1. Prerequisites: - 1. There is at least one task in the task list currently shown. - 2. Test case: `updateprogress 1 tprog/asdasdasdsad`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Progress is not updated.
Reason: Progress should only be `NOT_STARTED`, `PENDING`, or `DONE`. + 1. Prerequisites: + 1. There is at least one task in the task list currently shown. + 2. Test case: `updateprogress 1 tprog/asdasdasdsad`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error. Progress is not updated.
Reason: Progress should only be `NOT_STARTED`, `PENDING`, or `DONE`. 5. Updating progress of a task with a non-integer index. - 1. Test case: `updateprogress abcd tprog/DONE`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must be a positive integer. + 1. Test case: `updateprogress abcd tprog/DONE`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must be a positive integer. 6. Updating progress of a task with a negative index. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. - 2. Test case: `updateprogress -1 tprog/DONE`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must be an integer. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. + 2. Test case: `updateprogress -1 tprog/DONE`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must be an integer. 7. Updating progress of a task with an out-of-bounds index. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. For this test, assume there are `X` number of tasks in the task list. - 2. Test case: `updateprogress [X + 1] tprog/DONE`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid index. Progress is not updated.
Reason: Index must be within the range of the size of the task list. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. For this test, assume there are `X` number of tasks in the task list. + 2. Test case: `updateprogress [X + 1] tprog/DONE`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid index. Progress is not updated.
Reason: Index must be within the range of the size of the task list. 8. Updating progress of a task without an index. - 1. Test case: `updateprogress tprog/DONE`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must not be blank. + 1. Test case: `updateprogress tprog/DONE`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Progress is not updated.
Reason: Index must not be blank. #### Deleting a task 1. Deleting the first task currently shown in the task list. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. - 2. Test case: `deletetask 1`
- Expected: First task is deleted. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. + 2. Test case: `deletetask 1`
+ Expected: First task is deleted. 2. Deleting the task with a non-integer index. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. - 2. Test case: `deletetask wasd`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must be an integer. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. + 2. Test case: `deletetask wasd`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must be an integer. 3. Deleting the task with an out-of-bounds index. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. For this test, assume there are `X` number of tasks in the task list. - 2. Test case: `deletetask [X + 1]`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid index. Task is not deleted.
Reason: Index must be within the range of the size of the task list. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. For this test, assume there are `X` number of tasks in the task list. + 2. Test case: `deletetask [X + 1]`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid index. Task is not deleted.
Reason: Index must be within the range of the size of the task list. 4. Deleting the task with a negative index. - 1. Prerequisite: - 1. There is at least one task in the task list currently shown. - 2. Test case: `deletetask -1`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must be a positive integer. + 1. Prerequisite: + 1. There is at least one task in the task list currently shown. + 2. Test case: `deletetask -1`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must be a positive integer. 5. Deleting the task without an index. - 1. Test case: `deletetask`
- Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must not be blank. + 1. Test case: `deletetask`
+ Expected: F.A.K.E.J.A.R.V.I.S. displays an error invalid command format. Task is not deleted.
Reason: Index must not be blank. @@ -2302,16 +2300,16 @@ testers are expected to do more *exploratory* testing. ### Saving data 1. Dealing with corrupted data files - 1. Prerequisite: - 1. F.A.K.E.J.A.R.V.I.S. has been initialized. - 2. Test case: Delete a part of any `.json` file in `data` folder, or add some random symbols (e.g `@#$%^&*()`. Then relaunch F.A.K.E.J.A.R.V.I.S.
- Expected: F.A.K.E.J.A.R.V.I.S. recognizes the corrupted data file. The corresponding tabs will be empty (i.e if `tasklist.json` is corrupted, `Task List` will be empty). + 1. Prerequisite: + 1. F.A.K.E.J.A.R.V.I.S. has been initialized. + 2. Test case: Delete a part of any `.json` file in `data` folder, or add some random symbols (e.g `@#$%^&*()`. Then relaunch F.A.K.E.J.A.R.V.I.S.
+ Expected: F.A.K.E.J.A.R.V.I.S. recognizes the corrupted data file. The corresponding tabs will be empty (i.e if `tasklist.json` is corrupted, `Task List` will be empty). 2. Dealing with missing data files - 1. Prerequisite: - 1. F.A.K.E.J.A.R.V.I.S. has been initialized. - 2. Test case: Delete the whole `.json` file in `data` folder. Then relaunch F.A.K.E.J.A.R.V.I.S.
- Expected: F.A.K.E.J.A.R.V.I.S. recognizes the missing data file and add a sample data file inplace of the missing file. + 1. Prerequisite: + 1. F.A.K.E.J.A.R.V.I.S. has been initialized. + 2. Test case: Delete the whole `.json` file in `data` folder. Then relaunch F.A.K.E.J.A.R.V.I.S.
+ Expected: F.A.K.E.J.A.R.V.I.S. recognizes the missing data file and add a sample data file inplace of the missing file. ## **Appendix: Planned Enhancements**