Use Cases (With Tests for each Use Case) - 401ChemistryGenealogy/ChemistryGenealogy GitHub Wiki
If you would like to download these cases, we have uploaded a docx file with all of the use cases here:
https://github.com/401ChemistryGenealogy/ChemistryGenealogy/blob/master/doc/Use%20Cases.docx
Note: With regards to tests, there are going to be (1) acceptance tests and (2) unit tests. Unit tests will be denoted with a [u] immediately before the test. Unless there is a [u], the test is an acceptance test.
1 | |
---|---|
Use Case Name | Register for website |
Participating Actors | Not Logged In User |
Goal | Obtain a new personal account for this particular user. |
Trigger | User chooses to register for a new account from the login dialog box. |
Precondition | User does not have an account and desires a new one. |
Postcondition | User's information for a new account is sent to an administrator for approval. |
Basic Flow |
|
Exceptions | 2. Email is already in use 2.1. System displays a notification to the user informing them that the email is already taken. 2.2. System returns to step 1. |
Tests |
|
2 | |
---|---|
Use Case Name | Log into website |
Participating Actors | Not Logged In User |
Goal | Obtain logged in status on website with a registered account. |
Trigger | User desires to be logged into the website. |
Precondition | User is not logged into the website. |
Postcondition | User is logged into the website. |
Basic Flow |
|
Exceptions | 3. Incorrect email and password combination. 3.1. System displays a notification to the user stating that they entered incorrect email or password. 3.2. System returns to step 1. |
Tests |
|
3 | |
---|---|
Use Case Name | Ability to Log Out |
Participating Actors | Logged In Users |
Goal | User is logged out of the System. |
Trigger | User opens the login dialog box. |
Precondition | User is logged into the System. |
Postcondition | User is logged out of the System. |
Basic Flow |
|
Tests |
|
###General User Functions
|4|| |---|---| |Use Case Name|Visualization| |Participating Actors|Users| |Goal|Display a visual representation of the database data.| |Trigger|User desires to see a visual representation of the website’s data.| |Precondition|The user doesn’t see a visual representation of the data.| |Postcondition|The user now sees a visual representation of the data.| |Basic Flow|
- User searches for a person in the search bar from the homepage.
- System searches for the person and displays the results.
- User has the information displayed for a particular person where visualizations of relationships that the person has, represented by the node-vertex relationship, are presented on the page the user is currently on.
- Test if the method can be interacted with by the User.
- Test if the User is taken to the Visualization page.
- Test if the Visualizations and search options are displayed.
5 | |
---|---|
Use Case Name | Search |
Participating Actors | Users |
Goal | To search for a particular person on the website and obtain the results. |
Trigger | User wants to find someone through the search page. |
Precondition | User does not see the person through the search. |
Postcondition | User is presented with the data of the search. |
Basic Flow |
|
Exceptions | 4. The field desired to be searched for does not exist. 4.1. Proceed to the same final search page (step 4) however (refer to 4.2): 4.2. System displays a notification displaying to the User their search query had no results. |
Tests |
|
6 | |
---|---|
Use Case Name | Detail Information |
Participating Actors | Users |
Goal | To obtain information of a particular person. |
Trigger | User desires to learn more about a particular person. |
Precondition | User does not know information about the other person. |
Postcondition | Information of the person is displayed to the User. |
Basic Flow |
|
Tests |
|
7 | |
---|---|
Use Case Name | Submit Information |
Participating Actors | Logged In User |
Goal | User submits new information. |
Trigger | User would like to submit information. |
Precondition | User knows what information they would like to submit. |
Postcondition | Submitted information is sent to an administrator for approval. |
Basic Flow |
|
Tests |
|
8 | |
---|---|
Use Case Name | Edit Information |
Participating Actors | Logged In User |
Goal | User chooses to edit information. |
Trigger | User desires to edit information. |
Precondition | User knows what information they would like to edit. |
Postcondition | Information is changed in the system. |
Basic Flow |
|
Tests |
|
9 | |
---|---|
Use Case Name | View Audit Trail of Edits |
Participating Actors | Administrator |
Goal | Administrator can see the edits made to the information. |
Trigger | Administrator would like to view edits made |
Precondition | Edited information exists in the system. |
Postcondition | System displays a log of edits to the Administrator. |
Basic Flow |
|
Tests |
|
10 | |
---|---|
Use Case Name | Notifications |
Participating Actors | Administrator |
Goal | Administrator views notifications for new user and data information. |
Trigger | Administrator would like to view their notifications. |
Precondition | A new user or data entry is submitted to the system. |
Postcondition | The System displays the Administrator's new notifications. |
Basic Flow |
|
Tests |
|
11 | |
---|---|
Use Case Name | Information Verification |
Participating Actors | Administrator |
Goal | Administrator approves new information coming into the System. |
Trigger | Administrator would like to approve or disapprove new information while checking their notifications. |
Precondition | A new user or data entry is submitted to the system and the Administrators are notified. |
Postcondition | The System is modified depending on the Administrator's decision. |
Basic Flow | 1. Administrator chooses the information they would like to approve or disapprove. 2. If the Administrator decides to approve the modification. 2.1. Administrator confirms the data modification. 2.2. The System makes the changes to the database and the webpage. If the change is a new user, then the user is notified that their account has been approved. 3. If the Administrator decides to disapprove the modification. 3.1. Administrator denies the data modification. 3.2. The System drops any modifications that could have been made to the System. |
Tests |
|