Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MSS use case to HTML/CSS format #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions book/css/useCases.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.custom-bullet-list > li {
list-style: none;
margin-left: -25px;
}

.custom-bullet-point {
list-style: none;
margin-left: -15px;
}
92 changes: 54 additions & 38 deletions book/requirements/useCases/details/mainSuccessScenario.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,59 @@
<link rel="stylesheet" href="{{baseUrl}}/book/css/useCases.css">

The Main Success Scenario (MSS) describes the most straightforward interaction for a given use case, which assumes that nothing goes wrong. This is also called the _Basic Course of Action_ or the _Main Flow of Events_ of a use case. Given below is another example of an MSS.

<tip-box>

```
System: Online Banking System (OBS)
Use case: UC23 - Transfer Money
Actor: User
MSS:
1. User chooses to transfer money.
2. OBS requests for details of the transfer.
3. User enters the requested details.
4. OBS requests for confirmation.
5. User confirms transfer.
6. OBS transfers the money and displays the new account balance.
Use case ends.

Extensions:
3a. OBS detects an error in the entered data.
3a1. OBS requests for the correct data.
3a2. User enters new data.
Steps 3a1-3a2 are repeated until the data entered are correct.
Use case resumes from step 4.

3b. User requests to effect the transfer in a future date.
3b1. OBS requests for confirmation.
3b2. User confirms future transfer.
Use case ends.

*a. At any time, User chooses to cancel the transfer
*a1. OBS requests to confirm the cancellation
*a2. User confirms the cancellation
Use case ends.

*b. At any time, 120 seconds lapse without any input from the User
*b1. OBS cancels the transfer
*b2. OBS informs the User of the cancellation
Use case ends.

```
Note how the MSS assumes that all entered details are correct and ignores problems such as timeouts, network outages etc. MSS does not tell us what happens if the user enters incorrect data.
<div>
<ul>
<li>System: Online Banking System (OBS)</li>
<li> Use case: UC23 - Transfer Money </li>
<li> Actor: User </li>
<li> MSS:
<ol>
<li>User chooses to transfer money.</li>
<li>OBS requests for details of the transfer.</li>
<li>User enters the requested details.</li>
<li>OBS requests for confirmation.</li>
<li>OBS transfers the money and displays the new account balance.</li>
<li class="custom-bullet-point">Use case ends.</li>
</ol>
</li>
<li> Extensions:
<ol class="custom-bullet-list">
<li>3a. OBS detects an error in the entered data.
<ol class="custom-bullet-list">
<li>3a1. OBS requests for the correct data.</li>
<li>3a2. User enters new data.</li>
<li>Steps 3a1-3a2 are repeated until the data entered are correct.</li>
<li>Use case resumes from step 4.</li>
</ol>
</li>
<li>3b. User requests to effect the transfer in a future date.
<ol class="custom-bullet-list">
<li>3b1. OBS requests for confirmation.</li>
<li>3b2. User confirms future transfer.</li>
<li>Use case ends.</li>
</ol>
</li>
<li>*a. At any time, User chooses to cancel the transfer.
<ol class="custom-bullet-list">
<li>*a1. OBS requests to confirm the cancellation.</li>
<li>*a2. User confirms the cancellation.</li>
<li>Use case ends.</li>
</ol>
</li>
<li>*b. At any time, 120 seconds lapse without any input from the User.
<ol class="custom-bullet-list">
<li>*b1. OBS cancels the transfer.</li>
<li>*b2. OBS informs the User of the cancellation.</li>
<li>Use case ends.</li>
</ol>
</li>
</ol>
</li>
</ul>
</div>

Note how the MSS assumes that all entered details are correct and ignores problems such as timeouts, network outages etc. MSS does not tell us what happens if the user enters incorrect data.

</tip-box>