use cases

advertisement
This is his example I the SRS template
This is
This is the example he has in the SRS template, I just copied and paste it here
Use case name and identifier
1. Unique Identifier
2. Objective - What is the ultimate objective of the use-case. What is it trying to achieve? What
was the source of the use-case requirement?
3. Priority – The overall priority of this use-case (Low, Medium, High)
4. Source – Who is the main source of this use case. Who cares most about this functionality? This
should be the one person you would ask if there is a question about this use-case. (Make up a
name and cite their: John Smith (End-user) here.)
5. Actors - Who is involved in the use-case? Which actors/stakeholders?
6. Flow of Events
6.1. Basic Flow - flow of events normally executed in the use-case
6.2. Alternative Flow(s) - a secondary flow of events due to infrequent conditions
6.3. Exception Flow(s) - Exceptions that may happen during the execution of the use case
7. Includes - other use case IDs that are referenced in steps in the flow of events.
8. Preconditions - Any condition that must be satisfied before the use case begins. If the condition
is “User is logged in”, then the first step of the use case is NOT “User logs in”. They are already
logged in if that is a pre-condition!
9. Post conditions - The conditions that will be satisfied after the use case successfully completes
10. Notes/Issues - Any relevant notes or issues that need to be resolved
1.1 Withdraw money from ATM (U2)
1. U2
2. Objective – The customer is withdrawing money from the ATM and the system will debit the
customer’s account.
3. Priority – High
4. Source – Carl Gnome (marketing)
5. Actors – Customer, central bank computer
6. Flow of Events
6.1. Basic Flow
6.1.1.Customer chooses the checking option on the ATM
6.1.2.Customer chooses the amount of money needed
6.1.3.Customer confirms the choice
6.1.4.System validates the amount
6.1.5.System asks central bank computer to debit the customer’s account
6.1.6.System issues money to the user
6.2. Alternative Flow 1 – At step 5.1.4 the amount is not a multiple of $20
6.2.1.An error message is displayed telling the customer they must use multiple of $20.
6.2.2.Return to step 5.1.2
6.3. Alternative Flow 2 – At any step the user presses “cancel”
6.3.1.System returns to the main menu
6.4. Alternative Flow 3 - At step 5.1.5 bank computer returns a failed status, “insufficient
funds”
6.4.1.An error message is shown to the user
6.4.2.Return to step 5.1.2
6.5. Exception Flow 1 –
6.5.1.Database is locked due to backup in progress. System executes use case U5
7. Includes
7.1. U5 – Exception occurs
8. Preconditions – User is logged in
9. Post conditions – Money has been returned to the user and their account balance has been
updated.
10. Notes/Issues - None
**This is what I created so far, it said we needed 7 but I don’t know if the unique identifiers are just
the 4 bubbles I created in the diagram? If so, then I’ll have to figure out what else to include. **
4.1
1. Login u1
2. Objective: Students can log in with their email and password to take their tests.
3. Priority: High
4. Source: John Jacob (Admin)
5. Student
6. Basic Flow
6.1 Basic Flow
6.1.1 Student creates login with email and a strong password
6.1.2 Once successfully created and logged in, student can see if there are any
test(s) to take
6.2 Alternative Flow
6.2.1 Password created does not meet password requirement
6.2.2 Account won’t be created, and student will see in red that is required the
password
6.2.3 Return to step 6.1.1
6.3 Exception Flow: Database is down due to outage. System will execute an apology
page apologizing for inconvenience and send notification to Admin.
7. Includes: None
8. Precondition: Student must log in to be able to test test(s)
9. Post Conditions: Successfully created and login and logged in, can now see the different
subject test(s)
10. Notes/Issues: None
4.2
1. View Test(s) Available u2
2. Objective: Student can see if they have any test(s) to take for any of the four subjects: Math,
Social Studies, Science, Language Arts
3. Priority: High
4. Source: John Jacob (Admin)
5. Actors: Student, Admin
6. Flow of Events
6.1 Basic Flow
6.1.1 Student chooses whichever test they wish to take
6.1.2 Student should see when tests are available for Math, Social Studies,
Science & Language Arts
6.2 Alternative Flow 1
6.2.1 If there are no test to take, no test will be displayed
6.3 Exception Flow: Database is down due to outage. System will execute an apology
page apologizing for inconvenience and send notification to Admin.
7. Includes: None
8. Precondition: User is logged in
9. Post Conditions: Can see the different test(s) they have to take
10. Notes/Issues: None
4.3
1. Take Test(s) u3
2. Objective: Students can take any of the test(s) they select
3. Priority: medium
4. Source: John Jacob(Admin)
5. Actors: Student, Admin
6. Flow of Events
6.1 Basic Flow
6.1.1 Once logged in, student can see if there are any test(s) available.
6.1.2 Student will see the questions and questions will have multiple option.
6.1.3 Once all questions are answered, student can submit test by clicking the
submit button at the bottom of the page
6.1.4 Application goes through each question and can check which questions
they answered correctly or incorrectly
6.2 Alternative Flow 1
6.2.1 Student misses a question but clicks submit
6.2.2 The page refreshes and show’s question not answered
6.2.3 Return to step 6.1.3
6.3 Exception Flow: Database is down due to outage. System will execute an apology
page apologizing for inconvenience and send notification to Admin.
7. Includes: None
8. Precondition: Student logged in and see test(s) they have to take
9. Post Conditions: They can click on the test(s) available and start answering the questions
10. Notes/Issues: None
4.4
1. View Test Scores u4
2. Objective: Students can view their test results
3. Priority: medium
4. Source: John Jacob(Admin)
5. Actors: Student, Admin
6. Flow of Events
6.1 Basic Flow
6.1.1 Once student submits test, system will go through each question to see if
they chose the right answer or wrong
6.1.2 System will then calculate and get the test score
6.1.3 System will then display questions answered incorrectly
6.1.4 System will show score on test
6.2 Alternative Flow 1
6.2.1 None
6.3 Exception Flow: Database is down due to outage. System will execute an apology
page apologizing for inconvenience and send notification to Admin.
7. Includes: None
8. Precondition: Student successfully took test(s)
9. Post Conditions: Can see result/score of tests
10. Notes/Issues: None
Download
Related flashcards
Create Flashcards