Skip to content

Commit

Permalink
Merge pull request #271 from gingerbreaf/branch-DGFixes
Browse files Browse the repository at this point in the history
Interview use cases and appendix for DG
  • Loading branch information
yashpola authored Apr 14, 2024
2 parents ffe909d + c916b04 commit 680e6ea
Showing 1 changed file with 75 additions and 13 deletions.
88 changes: 75 additions & 13 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,52 @@ Precondition: There is at least 1 applicant or interviewer in the system.

Use case resumes at step 1.

**Use case: UC07 - Filtering interviews by date**
**Use case: UC07 - Add an interview**

**MSS**

1. User requests to list interviews
2. System shows a list of interviews
3. User requests to add a new interview to the list
4. System adds the interview and updates the displayed list

Use case ends.

**Extensions**

* 3a. Any of the given description, date, time, phone number are invalid.

* 3a1. System shows an error message.

Use case resumes at step 2.

**Use case: UC08 - Delete an interview**

**MSS**

1. User requests to list interviews
2. System shows a list of interviews
3. User requests to delete a specific interview in the list
4. System deletes the interview

Use case ends.

**Extensions**

* 2a. The list is empty.

* 2a1. System shows an error message.

Use case resumes at step 2.

* 3a. The given index is invalid.

* 3a1. System shows an error message.

Use case resumes at step 2.


**Use case: UC09 - Filtering interviews by date**

**MSS**

Expand All @@ -629,7 +674,7 @@ Precondition: There is at least 1 applicant or interviewer in the system.

Use case resumes at step 2.

**Use case: UC08 - View overall statistics**
**Use case: UC10 - View overall statistics**

**MSS**

Expand All @@ -638,7 +683,7 @@ Precondition: There is at least 1 applicant or interviewer in the system.
3. System displays number of applicants (total, and by status), number of interviewers (total, and by status), and number of interviews

Use case ends.

*{More to be added}*

### Non-Functional Requirements
Expand Down Expand Up @@ -804,6 +849,33 @@ testers are expected to do more *exploratory* testing.
7. Test case: `filter_by_status accepted`<br>
Expected: Displayed list of persons doesn't change. Message is displayed stating no persons found with the given status.

### Deleting an interview

1. Deleting an interview while all interviews are being shown

1. Prerequisites: List all interviews using the `list_interviews` command. One interview in the list.

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

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

4. Other incorrect delete commands to try: `delete`, `delete x`, `...` (where x is an invalid phone number)<br>
Expected: Similar to previous.

### Filtering interviews by date

1. Filtering interviews by date

1. Prerequisites: Tether already contains multiple interviews in the list, specifically there exists multiple interviews with date `2024-05-05` and there is no existing interview with date `2024-06-06`. Additionally, ensure that the original interview list is displayed by using the `list_interviews` command.

2. Test case: `filter_interviews_by_date 2024-05-05` <br>
Expected: Interviews with date `2024-05-05` is displayed on the list.

3. Test case: `filter_interviews_by_date 2024-06-06` <br>
Expected: A message indicating that no interviews are found is displayed, and the displayed interview list does not change.

### View overall statistics

1. View overall statistics
Expand Down Expand Up @@ -845,17 +917,7 @@ testers are expected to do more *exploratory* testing.
3. Close and launch Tether again. <br>
Expected: New data file created at `data/addressbook.json` containing some sample data.

### Filtering interviews by date

1. Filtering interviews by date

1. Prerequisites: Tether already contains multiple interviews in the list, specifically there exists multiple interviews with date `2024-05-05` and there is no existing interview with date `2024-06-06`. Additionally, ensure that the original interview list is displayed by using the `list_interviews` command.

2. Test case: `filter_interviews_by_date 2024-05-05` <br>
Expected: Interviews with date `2024-05-05` is displayed on the list.

3. Test case: `filter_interviews_by_date 2024-06-06` <br>
Expected: A message indicating that no interviews are found is displayed, and the displayed interview list does not change.

## **Appendix: Planned Enhancements**

Expand Down

0 comments on commit 680e6ea

Please sign in to comment.