You are on page 1of 5

SOFTWARE ENGINEERING

ASSIGNMENT#4

SUBMITTED BY:
ADNAN HAIDER SP20-BSE-037
USAMA AHMAD SP20-BSE-036
ZAKIR KHAN SP20-BSE-065
JUNAID KHAN SP20-BSE-066
SECTION: BSE 3B
Date 17-05-021
Draw fully dressed Use case for “Add New Student” Use case.
Use case 1:
Primary actor: New customer.

Secondary actor: Server.

Pre-condition:

1. Customer must have visited the website.


2. The customer must have a secure and strong internet connection.

Post-condition:

1. Details provided by the customer in registration form are saved.


2. Customer gets registered.

Extension: If password provided by the customer is less than eight digits then an error message is
displayed.

Main success scenario:

1. The new customer visits the site of online shop and clicks on the register button to register
himself so that he can shop.
2. After that a registration form will be displayed by the server to the new customer in which the
he has to provide the details like first name, last name, email id, password and address.
3. The server will authenticate the email id provided by the new customer by sending code to that
email and then ask the customer to rewrite that code in registration form.
4. After the customer fills the registration form his details will be saved and he will be now a
registered customer.

Log-in
Use case 2:
Primary actor: Registered customer/old customer.

Secondary actor: Server.

Pre-condition: The customer should be registered.

Post-condition: Now the customer can view items for shopping.

Extension: Error message is displayed if the customer provides the wrong password as was given by him
in the registration form.

Main success scenario:

1. The registered customer will now login to the online shopping system by entering email and
password that he has provided in the registration form.
2. If he enters the correct email id and password then he will be able to view the items for
shopping.

View items
Use case 3:
Primary actor: Customer

Secondary actor: Server

Pre-condition: Customer should be logged in.

Post-condition: Now the customer can select items that he desires after he has viewed the items.

Extension: A message displays in case some items are out of stock.

Main success scenario:

1. The server will display the categories of items on the screen and the customer will be able to
view the categories of item and he will select the category he want to shop in.
2. He can also search for the particular item and if some items are out of stock or if some items are
on sale then server will display the message about that.

Use case 4:
Primary actor: Customer Add to cart

Secondary actor: Server

Pre-condition: The customer should have viewed the items in order to add them to cart.

Post-condition: The items that the customer has added to the cart must be saved by the server in order
to make the bill.

Extension: The customer can remove the items from the cart.

Main success scenario:

1. After viewing the items the customer will add the items that he wants in the cart.
2. He can also remove the items from the cart.

Take order and


Use case 5: make receipt

Primary actor: Customer

Secondary actor: Server

Pre-condition: The customer might have added at least one item in the cart.

Post-condition:

1. The server will save the order.


2. The receipt must be generated by the server and must store its copy for future reference.
3. The customer should be able to view the receipt.

Extension: The customer can remove the order if he wants before confirming it.

Main success scenario:

1. After the customer has added the items in the cart the server will take the order and will ask the
customer to confirm it.
2. The customer can cancel the order or otherwise he will confirm it.
3. The server will generate the receipt of the order and will send a copy of that receipt to the
customer and one copy will be saved by the server for future reference.

Use case 6: Log-out


Primary actor: Customer

Secondary actor: None.

Pre-condition: The customer must be logged in.

Post-condition: After the customer clicks on the log out button he should be out of the online shopping
site and will not be able to shop. If he want to shop again he has to log in again.

Main success scenario:

1. If the customer has done the shopping or he has only viewed the items by logging in to the site
and now he wants to leave the site he will click on the log out button.
2. After clicking the log out button he will be out of the system.

Use case 7: Pay after


delivery

Primary actor: Customer

Secondary actor: Delivery boy.

Pre-condition: The customer might have received the order.

Post-condition: After taking the bill from the customer the delivery boy will take a sign from the
customer to make sure that the customer has received the order.

You might also like