Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Title page
Software Engineering
Online shopping system
Version 1.0
Submitted by:
Fahad Bhatti (400410)
Abdul Haseeb Asghar (401056)
Dilshad Riaz (401331)
Aashir Athar (401368)
Submitted to:
Dr. Umair Khan
12/8/2019 Page 1
ONLINE SHOPPING SYSTEM
Table of Contents
Title page.................................................................................................................................................... 1
1 Introduction ............................................................................................................................................. 3
1.1 Purpose....................................................................................................................................... 4
1.2 Overview .................................................................................................................................... 4
1.3 Scope .......................................................................................................................................... 4
1.4 Definitions.................................................................................................................................. 4
2 Specific Requirements ....................................................................................................................... 4
2. 1 Registration ..................................................................................................................................... 4
2.2 Login ................................................................................................................................................ 5
2.3 Search......................................................................................................................................... 6
2.4 Add items to shopping cart ........................................................................................................ 6
2.5 Delete from Shopping Cart ........................................................................................................ 7
2.6 Change to cart ............................................................................................................................ 7
2.7 Checkout .................................................................................................................................... 8
2.8 Payment ..................................................................................................................................... 8
2.9 Logout ........................................................................................................................................ 9
2.10 Reverse....................................................................................................................................... 9
2.11 Report Generation .................................................................................................................... 10
2.12 Contact Us................................................................................................................................ 10
2.13 Update Account Information ................................................................................................... 11
2.14 View Shipping Status............................................................................................................... 11
2.15 Help .......................................................................................................................................... 12
2.16 View Account Purchase History .............................................................................................. 12
2.17 Live Customer Care ................................................................................................................. 12
2.18 Security .................................................................................................................................... 13
3 Use case Diagram ............................................................................................................................ 14
3.1 Use case diagram for customer registration, Searching Product, login and logout ....................... 14
3.2 Use case Diagram for customer order ...................................................................................... 14
3.3 Use case Diagram for Managing cart ....................................................................................... 15
12/8/2019 Page 2
ONLINE SHOPPING SYSTEM
1 Introduction
This project is a web based shopping system for an existing shop. The project objective is to
deliver the online shopping application into android platform.
This project is an attempt to provide the advantages of online shopping to customers of a real
shop. It helps buying the products in the shop anywhere through internet by using an android
device. Thus the customer will get the service of online shopping and home delivery from his
favorite shop.
12/8/2019 Page 3
ONLINE SHOPPING SYSTEM
1.1 Purpose
This document is meant to delineate the features of OSS, so as to serve as a guide to the
developers on one hand and software validation document for the prospective client on the
other. The OSS (online shopping system) for electronics item shop web application is intended
to provide complete solutions for vendors as well as customers through a single get way using
the internet. It will enable vendors to setup online shops, customer to browse through the shop
and purchase them online without having to visit the shop physically. The administration
module will enable a system administrator to approve and reject request for new shops and
maintain various lists of shop category.
1.2 Overview
This system provides an easy solution for customer to buy the product without going to the
shop and also to shop owner to sale the product.
This proposed system can be used by anywhere users and it does not require any educational
level, experience or technical expertise in computer field but it will be of good use if user has
the good knowledge of how to operate a computer or mobile.
1.3 Scope
This system can be implemented to any shop in the locality or to multinational branded shops
having retail outlet chains. The system recommends a facility to accept the orders 24*7 and a
home delivery system which can make customers happy. If shops are providing an online
portal where their customer can enjoy easy shopping from anywhere, the shop won't be losing
any more customers to the trending online shops such as flipchart or eBay. Since the
application is available in the smart phone it is easily accessible and always available.
1.4 Definitions
SRS Software Requirements Specifications
2 Specific Requirements
2. 1 Registration
12/8/2019 Page 4
ONLINE SHOPPING SYSTEM
2.2 Login
Description If any customer wants to buy the product then he/she must be login.
Inputs The system shall require the following information from the user: Email
Address & Password.
Source The system will check information from the database, that "is there any account
on that email?" and then log in the user.
Outputs If there's no account on user's email, then it will show There's no account on
that email address. If there's account on user's email, then it will show
Congratulations! You're logged in.
Destination If user is logged in, then he/she can use the website.
Action It will log in the user's account.
Requires A user should have an account to log in, because the system shall require the
following information from the user: Email Address & Password.
Precondition If a user has account on system then he/she will use this function to log account
into system.
Post Whenever a user logged in, it can use the other functions of system.
condition
Side Effects None.
12/8/2019 Page 5
ONLINE SHOPPING SYSTEM
2.3 Search
Description If any customer wants to buy the product then he/she will search the product.
Inputs The system shall require the specific product name that user wants to search.
Source The system will check information from the database, "is that product available
or not?"
Outputs Whenever a user will search, the system will check information from the
database, "is that product available or not?" If the product is available, it will
show Product. If the product is not available, it will show Product is not
available.
Destination He/she can use this function to search the product(s).It will show the product(s)
on page.
Action This function is used to search the product from the database and will show the
product(s).
Requires The system shall require the specific product(s) name that user wants to search.
Precondition If a user wants to search a product then he/she will use this function.
Post Whenever a user will search the product, the product will be shown if it will
condition available.
Side Effects None.
Description If any customer wants to buy the product then he/she will press that Add to cart
Button.
Inputs The system shall require the specific product(s) to add to cart that user wants to
buy.
Source The system will check information from the database, "is that product available
or not?"
Outputs Whenever a user will press button, it will add the product to cart & If the
product is not available, it will show Product is not available.
Destination He/she can use this function to add temporarily product(s) to the cart.
Action This function is to add product that he/she wants to buy by pressing Add to cart.
Requires The system shall require the specific product(s) that user wants to buy, to add to
the cart.
Precondition If a user wants to buy a product, he/she have to add to cart.
Post Whenever a user will press the Add to cart button, the product will be added to
condition cart.
12/8/2019 Page 6
ONLINE SHOPPING SYSTEM
Function Delete from cart: It will delete the product(s) from the cart.
Description If the user don't want to buy the product(s) but user has already added to cart,
then this function will be used for deleting the product(s) from cart.
Inputs The user has to press the Delete from cart button to delete the product(s).
Source This function will be used to delete the products from the cart.
Destination He/she can use this function to delete the product(s) from the cart.
Action This function will be used to delete the product(s) that the user doesn’t want to
buy, but user has already added to cart.
Requires This function will require that user have to press the Delete from cart button to
delete the product(s).
Precondition If the user doesn’t want to buy the product(s) but the user has already added to
cart, then this function will be used for deleting the product(s) from cart.
Function Change to cart: It will change the product(s) from the cart.
Description If the user don't want to change the product(s) but user has already added to cart,
or increased/decreased the quantity of the product(s) then this function will be
used for change the product(s) from cart.
Inputs The user has to press the change from cart button to change the product(s).
Source This function will be used to change the products from the cart.
12/8/2019 Page 7
ONLINE SHOPPING SYSTEM
button.
Post condition This function can be used to remove the unwanted product(s) from the cart.
Side Effects None.
2.7 Checkout
Function Checkout: The checkout function shall allow account members to purchase
product online securely
Description The system shall allow a registered and logged-in user to purchase product that
are in their shopping cart. The credit card on file will be charged for the total of
the products in the shopping cart.
Inputs The user has to press the checkout button to checkout.
Source This function will be used to checkout from the cart.
Outputs The system will show to user that your checkout process is completed and show
order summary.
Destination The product will be displayed to the screen for payment
Action This function will check or get all the information about the user (name,
address, phone number) and its product details.
Requires This function will require that user have to put name address phone number
Email address.
Precondition The user has to buy some product to reach at checkout process.
Post The system shall allow the user to modify their credit card information on file if
condition he/she so desires (before the card is charged).The user will receive a
confirmation number.
Side Effects None.
2.8 Payment
Function Payment: It will deal the mode of payment by cash, credit card, debit card, and
cash on delivery.
Description In the process system will ask from the user that how does you want to pay?
(By cash, credit card, debit card, cash on delivery)?
Inputs The user has to give his details according to his selected payment.
Source This function will get details about his payment.
Outputs If the putting information is right then the function will tell the user that your
payment process is successful and show receipt of payment. If the putting
information is wrong then the function will tell the user that your payment
process is unsuccessful please put your right information.
Destination The function will show to user that your payment is completed and show order
summary.
Action This function will detect the money for the user's account.
Requires This function will require that user have to put account information for the
payment.
12/8/2019 Page 8
ONLINE SHOPPING SYSTEM
Precondition The user has to pass the checkout process before the payment.
2.9 Logout
Description If the user doesn't logout in 5mintunes after payment function will logout the
user automatically.(If the user doesn't do any activity in 5 minutes function will
logout the user automatically).
Inputs The user has to press the logout button to logout.
Source This function will be used to logout the user.
Outputs The system will show to user that you have logged out.
Destination The user will have logged out.
Action This function wills logout the user.
Requires This function will require that user should press the logout button to logout.
Precondition Any time if user wants to logout then he/she has to press the logout button.
2.10 Reverse
Description The function will allow a user to reverse the product if he/she doesn't like. User
has to inform in 7 days. After 7 days user can not able the reverse the product.
User has to tell us why he/she wants to reverse the product.
Inputs The user has to inform in 7 days. User has to tell us why he/she wants to
reverse the product.
Source The user has to login and click the contact us button (live customer care).
Outputs The system will tell the user that you have to send the product through courier.
This function will also show the company address.
Destination The product will be reversed if the request is a accepted.
Action This system will check the product if user's arguments are right then it will be
reversed. If user's arguments are wrong then it will not be reversed and it will
be sent back.
Requires This function will require that user have to give reasonable arguments to
reverse the product.
Precondition The user has to inform us in 7 days.
Post This system will tell to user whether it has reversed able or not.
condition
12/8/2019 Page 9
ONLINE SHOPPING SYSTEM
Function Report Generation: It will generate the report about order summary.
Description After order for the product, the system will sent one copy of the bill to the
customer's Email-address and another one for the system data base.
Inputs None
Source Database, Email
Outputs The system will sent one copy of the bill to the customer's Email-address and
another one for the system data base.
Destination After order for the product, the system will sent one copy of the bill to the
customer's Email-address and another one for the system data base.
Action This system will check the details of order. If order details are right then
successful report forward to the user. If order details are wrong then it will
create unsuccessful report and sent to the user.
Requires This function will require the detail of order.
Precondition Data collection, details of order
Post Successful or un successful report sent to the user.
condition
Side Effects None
2.12 Contact Us
Function Contact Us: It will allow the client to contact product owner.
Description The function will allow a user to contact the manager about the product. This
function will have the contact number of product owner.
Inputs Client has to press the contact us button.
Source The user has to login and click the contact us button; Phone Number or E-mail.
Outputs The system will tell the user that You're message is forwarded to product
owner. Product owner will contact you as soon as possible.
Destination Function defined in the coding.
Action This system will allow the client to contact the product owner as soon as
possible.
Requires This function will require that client have to give the Name, E-mail Address &
Phone Number in the form.
Precondition The client wants to contact.
Post This system will give the contact number to the product owner, so he/she can
condition contact client as soon as possible.
12/8/2019 Page 10
ONLINE SHOPPING SYSTEM
Description This function will allow the user to change the information of his/her account;
Name, Shipping Address, E-mail Address & Contact Number.
Inputs The user has to click the Update Account Information button & change the
information that he/she want to change now.
Source This function will allow changing his/her account details from database.
Outputs This function will show that You're Account Information is updated.
Destination Function is defined in coding.
Action This function will allow the user to change the information of his/her account;
Name, Shipping Address, E-mail Address & Contact Number. He/she have to
click the button, change it & save it.
Requires Information required that the user want to update.
Precondition There will be a button on interface. & If user want to change.
Function View Shipping Status: It will show the shipping status of client's order.
Description This function will ask the order number from client & then it will show the
shipping status of order.
Inputs A user has to submit the order number to the form to view shipping status.
Source This function will allow the client to view shipping status of his/her order from
database.
Outputs This function will show the shipping status of client's order.
Destination Function defined in coding.
Action This function will ask the order number from client & then it will show the
shipping status of order.
Requires This function will require the user to enter order number in the form, when
he/she will click the View Shipping Status button.
Precondition There should be a button on interface & if user wants to see shipping status.
Post This function will show the shipping status of client's order.
condition
12/8/2019 Page 11
ONLINE SHOPPING SYSTEM
2.15 Help
Description This function is created to help the user that how they will use the website to
purchase their product.
Inputs User has to click the Help button.
Source It will help the user with tutorials.
Outputs User will get guidance easily.
Destination Function is created in coding.
Action This function is created to help the user that how will they use the website to
purchase their product.
Requires User has to click the Help button.
Precondition There will be Help button & If any user is getting some problems, then he/she
will use this function.
Function View Account Purchase History: It will show the previous purchase history.
Description The function will allow a user to see his/her previous purchase history.
Inputs Client has to press the View Account Purchase History button.
Source The user has to login and click the View Account Purchase History button.
Outputs This function will allow the user to see his/her previous purchase history.
Destination Function defined in coding.
Action A user will be allowed to see his/her previous purchase history..
Requires Client has to press the View Account Purchase History button.
Precondition There should be a View Account Purchase History button on interface of
website & if user wants to see his/her previous purchase history.
Post This function will show the previous purchase history of user's account.
condition
Side Effects None.
Function Live Customer Care: It will allow the client to contact manager live.
Description The function will allow a user to contact the manager about the
12/8/2019 Page 12
ONLINE SHOPPING SYSTEM
product/website live.
Inputs Client have to press the Live Customer Care tab.
Source The user has to login and click the contact us button; Phone Number or E-mail.
Outputs This function will allow the user to live chat to the manager of website.
Destination Function defined in coding.
Action A user will be allowed to live chat with the manager.
Requires A user have to click on the Live Customer Care tab to chat with manager.
Precondition There should be a Live Customer Care tab on interface of website & if user is
having some problem.
Post The manager will solve the client's problem.
condition
Side Effects --
2.18 Security
Description The function will secure the user's account information; Credit Card Details,
Password & Automatically Logout(after 5 minutes). Client's accounts will be
secured from hackers.
Inputs Users have to create a account for his own security.
Source The user has to login & Unauthorized person can't access the website.
Outputs This function will secure the user's account information.
Destination Function defined in coding.
Action A user will be secured from hackers.
Requires Users have to create a account for his own security.
Precondition It will be defined first in the coding that unauthorized persons are not allowed.
They can't log in.
Post This function will secure each client.
condition
Side Effects None.
12/8/2019 Page 13
ONLINE SHOPPING SYSTEM
12/8/2019 Page 14
ONLINE SHOPPING SYSTEM
12/8/2019 Page 15
ONLINE SHOPPING SYSTEM
12/8/2019 Page 16
ONLINE SHOPPING SYSTEM
12/8/2019 Page 17
ONLINE SHOPPING SYSTEM
5 Activity Diagrams
5.1 Activity Diagram of Admin Side
12/8/2019 Page 18
ONLINE SHOPPING SYSTEM
12/8/2019 Page 19
ONLINE SHOPPING SYSTEM
12/8/2019 Page 20
ONLINE SHOPPING SYSTEM
12/8/2019 Page 21
ONLINE SHOPPING SYSTEM
5.5 Search viewing add to cart Product and Order Activity Diagram
12/8/2019 Page 22
ONLINE SHOPPING SYSTEM
12/8/2019 Page 23
ONLINE SHOPPING SYSTEM
12/8/2019 Page 24
ONLINE SHOPPING SYSTEM
12/8/2019 Page 25
ONLINE SHOPPING SYSTEM
6.4 Payment
12/8/2019 Page 26
ONLINE SHOPPING SYSTEM
12/8/2019 Page 27
ONLINE SHOPPING SYSTEM
7 Sequence Diagram
7.1Customer Side
12/8/2019 Page 28
ONLINE SHOPPING SYSTEM
12/8/2019 Page 29
ONLINE SHOPPING SYSTEM
8 Test Cases
Test Case no.1 (Login) Input Expected Output
Step.1 Enter username and Login Successful
Password (Valid) Welcome Page Displayed
Step.2 Enter username and Display Massage “login Failed”
Password (invalid) login page opened
Step.3 Enter username(valid) Display Massage “login Failed”
and Password(Invalid) login page opened
Step.4 Enter Display Massage “login Failed”
username(Invalid) and login page opened
Password(valid)
12/8/2019 Page 30
ONLINE SHOPPING SYSTEM
12/8/2019 Page 31