Lab&Assignment02 UseCaseSpec
Lab&Assignment02 UseCaseSpec
1. SUBMISSION GUIDELINES
When you want to submit your individual work for the Case Study, you have to push your
work to your individual GitHub repository, complied with the naming convention
“TeamName-StudentID.StudentName” (e.g. “ISD. 20232-20202012.HoangNghiaPhu”).
For this lab, you have to turn in your work twice before the following deadlines:
§ Right after class: Push all the work you have done during class time to Github.
§ 10 PM the day before the next class: Create a branch named “release/lab02” in
your GitHub repository and push the full submission for this lab, including in-class
tasks and homework assignments, to this branch.
Receiver
1. Yes Do Minh Hieu
Name
Phone
2. Yes 10 digits 0987654321
Number
Shipping
5. No
instructions
We also need to specify which the output to the actor(s) since it is the main factor
that impacts on the input from actor(s). For instance, the output data are shown in
the following table.
8. Total 2,346,600
3. Province Hanoi
Note that we do not describe the details of the user interface unless it is necessary
to understand the behavior of the system. Specifying user interface details too early
will limit design options.
Now, we can finally validate the data. For list of media in the cart, we need to check
if a media is out-of-stock. For delivery information, we need to check if a mandatory
field is left blank and valid condition for the phone number. Thus, we need insert
at least two more events into the flow so as to validate the two corresponding
inputs.
After validation, in case there is an exception, the flow cannot continue normally.
Consequently, we need alternative flows or sub-flows for the next events in these
cases. For instances, the sub-flows for UC “Place Order” is shown as follows.
The alternative flows of events of the use case “Place order” are illustrated (may be
not complete) in Table 3.
Table 4 - Alternative flow of events for UC “Place Order”
Resume
No Location Condition Action
location
1. At Step 3 If the products are not § The AIMS software notifies that Use case
available the the products in the cart are ends
not available and stay at the use
case “View cart”
2. At Step 5 If the delivery info is invalid § AIMS software notifies that the At Step 3
delivery info is invalid (blank or
wrong format)
3. At Step 5 If the user chooses to place a § AIMS software inserts use case At Step 6
rush order “Place rush order”
The last questions are what we should save and when we save it.
HANDS-ON LAB GUIDELINES
© SOICT- HUST
ITSS SOFTWARE DEVELOPMENT & SOFTWARE DESIGN AND CONSTRUCTION
6
By saving the data, we can save a lot of time and efforts for us, the system, and the
users. To illustrate, the customer cannot finish placing order for some reasons.
Thus, we can save some information for later such as the list of media in cart, so
that the customer does not have to add them to the cart again.
3.2. USE CASE SPECIFICATION
Finally, we may provide the pre-condition and the post-condition. For example, the
pre-condition for UC “Place Order” can be “There is at least one item in the cart.” A
post-condition can be “a new order is created, and its information is sent via email
to the customer or nothing happens if payment is not successful”.
Template of Use Case Specification is shown as below.
6. Alternative flows
Table N-Alternative flows of events for UC Place order
7. Input data
Table A-Input data of …
1.
8. Output data
Table B-Output data of …
1.
9. Postconditions
For this part, given the above suggestion, you are asked to make a use case
specification for UC “Place Order” by using the template. Remember to validate
data and save information if need be. When you finish the task of this part, please
export your work to a PDF file, namely “Use case specification – Place Order.” Then
put both files in the directory “Use case specification”.
The alternative flows of events of this use case are illustrated in the following table.
In this use case, the output data when displaying the invoice is shown in the
following tables (the rows with green shading are repeated for all media products
in the cart/invoice).
Table 5-Output data of invoice
9. Currency VND
Phone
11. 0987654321
number
Shipping
14. instructions