You are on page 1of 8

EX1:

1;
1. Online Book Store:
 This represents the online bookstore system itself.
 It encompasses all the functionalities mentioned, such as registration, login,
search, shopping cart, checkout, order management, store management, and
statistics.
2. Customer:
 This entity represents the customers who interact with the online bookstore.
 Customers can register, log in, search for books, create/update/view/cancel their
shopping cart, proceed to checkout, select shipment and payment options, and
create/update/view/cancel orders.
3. Staff/Manager:
 This entity represents the staff or manager of the online bookstore.
 Staff/manager can log in, search for books, store items in the inventory, put items
on the selling web, process (view, update, cancel) orders, and view statistics of
item selling.

The context diagram illustrates the system as a central entity with the external entities (customers
and staff/manager) connected to it. It shows the high-level interactions between the system and
its external entities, without going into the internal details of the system or its processes.

2;
- Online Book Store
- User Management
- Customer Registration
- Customer Login/Logout
- Staff/Manager Login/Logout
- Search Functionality
- Search by Title
- Search by Author
- Search by Genre
- Shopping Cart
- Create Cart
- View Cart
- Update Cart
- Remove Item from Cart
- Cancel Cart
- Checkout Process
- Select Shipment
- Provide Shipping Details
- Select Payment Method
- Order Management
- Create Order
- View Order
- Update Order
- Cancel Order
- Store Management
- Search Inventory
- Add New Book
- Update Book Details
- Remove Book
- Put Item on Selling Web
- Statistics and Reporting (Manager)
- View Sales Statistics
- Generate Sales Reports
- Additional Functionality
- Wish Lists
- Customer Reviews/Ratings
- Recommendations
- Book Recommendations from Staff/Manager

3;
4;
1. Register as a Customer:
 Scenario: New Customer Registration
 The customer clicks on the "Register" button.
 The system presents a registration form.
 The customer fills in the required information, including name,
email, and password.
 The customer submits the form.
 The system validates the information and creates a new customer
account.
 The system displays a confirmation message and redirects the
customer to the login page.
2. Login:
 Scenario: Customer Login
 The customer navigates to the login page and enters their
credentials.
 The system verifies the entered information and authenticates the
customer.
 The system redirects the customer to their account dashboard.
3. Search Books:
 Scenario: Book Search by Title
 The customer enters a book title in the search bar.
 The system performs a search based on the entered title.
 The system displays a list of books matching the title.
4. Add Book to Cart:
 Scenario: Adding a Book to the Cart
 The customer selects a book from the search results.
 The system displays the book details.
 The customer clicks on the "Add to Cart" button.
 The system adds the selected book to the customer's cart.
5. Proceed to Checkout:
 Scenario: Checkout Process
 The customer views their cart and confirms the items.
 The customer clicks on the "Proceed to Checkout" button.
 The system presents the shipment options.
 The customer selects a shipment method.
 The system prompts the customer to provide shipping details.
 The customer enters the required shipping information.
 The system displays the available payment methods.
6. Create Order:
 Scenario: Placing an Order
 The customer selects a payment method.
 The customer enters the necessary payment details.
 The system validates the payment information and creates a new
order.
 The system generates an order confirmation with a unique order ID.
 The system deducts the payment amount from the customer's
chosen payment method.
7. View Order:
 Scenario: Viewing Order Details
 The customer navigates to their account dashboard.
 The customer selects the "Order History" section.
 The system displays a list of the customer's previous orders.
 The customer clicks on a specific order to view its details.
 The system presents the order details, including the book(s)
purchased, payment information, and shipment details.
8. Search Inventory:
 Scenario: Staff/Manager Inventory Search
 The staff/manager logs into the system and accesses the inventory
management section.
 The staff/manager enters a book title or other relevant information
in the inventory search bar.
 The system performs a search based on the entered information.
 The system displays a list of books matching the search criteria.
9. Add Book to Inventory:
 Scenario: Adding a Book to the Inventory
 The staff/manager selects the "Add New Book" option.
 The system presents a form to enter the book details, such as title,
author, ISBN, genre, and quantity.
 The staff/manager fills in the required information.
 The staff/manager submits the form.
 The system validates the information and adds the book to the
inventory.
10. View Sales Statistics:
 Scenario: Manager Accessing Sales Statistics
 The manager logs into the system and accesses the statistics
section.
 The system presents various statistical reports, such as total sales,
bestselling books, revenue by genre, etc.
 The manager selects a specific report to view the corresponding
sales statistics.
 The system generates and displays the selected report, providing
insights into sales performance.

5;

1. Register as a Customer:

User Story: As a new customer, I want to register an account so that I can access the
online bookstore.

Acceptance Criteria:

 Given that I am on the registration page,


 When I enter my name, email, and password,
 And I click on the "Register" button,
 Then I should be redirected to the login page,
 And a new customer account should be created.
2. Login:

User Story: As a customer, I want to log in to my account to access personalized features


and make purchases.

Acceptance Criteria:

 Given that I am on the login page,


 When I enter my valid email and password,
 And I click on the "Login" button,
 Then I should be redirected to my account dashboard.
3. Search Books:

User Story: As a customer, I want to search for books by title, author, or genre to find
the ones I'm interested in.

Acceptance Criteria:

 Given that I am on the search page,


 When I enter a book title, author, or genre in the search bar,
 And I click on the "Search" button,
 Then I should see a list of books matching the entered criteria.
4. Add Book to Cart:

User Story: As a customer, I want to add books to my shopping cart for purchase later.

Acceptance Criteria:

 Given that I am viewing the details of a book,


 When I click on the "Add to Cart" button,
 Then the selected book should be added to my shopping cart.
5. Proceed to Checkout:

User Story: As a customer, I want to proceed to checkout after reviewing the items in my
cart.

Acceptance Criteria:

 Given that I am viewing my shopping cart,


 When I click on the "Proceed to Checkout" button,
 Then I should be presented with shipment options,
 And I should be prompted to provide shipping details.
6. Create Order:

User Story: As a customer, I want to create an order to purchase the books in my cart.

Acceptance Criteria:

 Given that I have selected a shipment method,


 And I have provided valid shipping details,
 When I select a payment method and enter the necessary payment information,
 And I click on the "Create Order" button,
 Then a new order should be created with a unique order ID,
 And the payment amount should be deducted from my chosen payment method.
7. View Order:

User Story: As a customer, I want to view the details of my previous orders.

Acceptance Criteria:

 Given that I am logged into my account,


 When I navigate to the "Order History" section,
 And I select a specific order,
 Then I should be able to view the order details, including the purchased book(s),
payment information, and shipment details.
8. Search Inventory:

User Story: As a staff/manager, I want to search for books in the inventory for
management purposes.

Acceptance Criteria:

 Given that I am logged into the system as a staff/manager,


 When I enter a book title or relevant information in the inventory search bar,
 And I click on the "Search" button,
 Then I should see a list of books matching the search criteria.
9. Add Book to Inventory:

User Story: As a staff/manager, I want to add new books to the inventory.

Acceptance Criteria:

 Given that I am logged into the system as a staff/manager,


 When I select the "Add New Book" option,
 And I enter the book details, such as title, author, ISBN, genre, and quantity,
 And I click on the "Submit" button,
 Then the book should be added to the inventory with the provided details.
10. View Sales Statistics:

User Story: As a manager, I want to view sales statistics for analysis and decision-making
purposes.

Acceptance Criteria:

 Given that I am logged into the system as a manager,


 When I access the statistics section,
 Then I should be presented with various reports, such as total sales, bestselling
books, revenue by genre, etc.,
 And I should be able to select a specific report to view the corresponding sales
statistics.

You might also like