SE Lab Report 3.docx 3
SE Lab Report 3.docx 3
and Engineering
Lab Report-3
1. Introduction:
This Software Requirement Specification (SRS) document describes the
Online Retail Portal, an e-commerce platform for customers to browse, select,
and buy products online. The portal will provide a complete shopping
experience by allowing users to search for products, add them to a cart, and
securely complete their purchases. This document outlines the features and
requirements needed to develop the portal, helping both developers and
stakeholders understand the project’s goals and expectations.
● Security:
Implement secure authentication and encryption for user data protection.
● Reliability:
Ensure minimal downtime and robust error handling for smooth shopping
experiences.
● Usability:
Intuitive and accessible user interface with clear instructions and
navigational ease.
● Scalability:
Designed to handle a growing number of users and an expanding product
catalog.
● Compatibility:
Compatible with multiple devices, browsers, and operating systems.
Login Diagram:
User
-email: string
-password: string
Extends
Customer
-email: string
-password: string
Extends
Admin
-email: string
-username: string
-password: string
+login(username,password): Boolean
+login(isername,password):Boolean
Search diagram:
-item: List<item>
Customer
Item
-id: string -customerId : string
-name: string -name : string
-description: string -email : string
-price: double
+getItemId() : string +getCustomerId() : string
+getName() : string +getName() : string
+getDescription() : string +getEmail() : string
+getPrice() : double
Shopping Cart
-item : List<item>
-customer : customer
+addItem(item : Item) : void
+removeItem(item : Item) : void
+checkout() : void
Item
-productId : int
-name : string
-price : double
+Item(product : int, name : string, price :
double)
+getProduct() : int
+getName () : string
+getPrice() : double
Order
-orderId : int
-items : List<Item>
-totalPrice : double
-paymentId : int
-methodType : string
Order
-order : int
-items : List<Item>
-totalPrice : double
-paymentMethod : paymentMethod
+order(order : int, items : List<item>, TotalPrice : double , paymentMethod :
paymentmethod
+getOrderId() : int
+getTotalPrice() : double
+getPaymentMethod () : paymentMethod
Sequence Diagram
Login Diagram:
Search Diagram:
Payment Diagram:
Add to cart Diagram:
Conclusion: