








































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









































Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have
Authors: Andrew Blossom Derek Gebhard Steven Emelander Robert Meyer Customer: Mr. Borzoo Bonakdarpour Instructor: Prof. Betty H.C. Cheng
The Software Requirements Specification is designed to document and describe the agreement between the customer and the developer regarding the specification of the software product requested [5]. Its primary purpose is to provide a clear and descriptive “statement of user requirements” [5] that can be used as a reference in further development of the software system. This document is broken into a number of sections used to logically separate the software requirements into easily referenced parts. This Software Requirements Specification aims to describe the Functionality, External Interfaces, Attributes and Design Constraints [4] imposed on Implementation of the software system described throughout the rest of the document. Throughout the description of the software system, the language and terminology used should unambiguous and consistent throughout the document.
Defining and describing the functions and specifications of the Book E-Commerce System (BECS) is the primary goal of this Software Requirements Specification (SRS). This Software Requirements Specification illustrates, in clear terms, the system’s primary uses and required functionality as specified by our customer. The intended audience of this document is our primary Book E-Commerce System customer: Mr. Borzoo Bonakdarpour, the CSE435 instructor Dr. Betty Cheng, the fall semester 2007 CSE435 Group 4 members, as well as the other students attending CSE435 that will require access to such documentation.
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have
The software system being produced is called Book E-Commerce System or BECS. It is being produced for a customer interested in selling books via the Internet. This system is designed to “provide automation support” [2] for the process of placing books for sale on the Internet and facilitating the actual sale. This system is largely cross-platform and is available to anyone using the Computer Science Department’s provided computer resources in the MSU Engineering Building. The system will be run on a central server with each user having a remote user interface through a web browser to interact with it. The Book E-Commerce System will allow any user to create an account to become a customer. The customer, through the process of account creation, will have the option to become a member of the site. The system will allow customers to browse, search, select, and add books to a shopping cart. Then, provided they have books in their shopping cart, check out books in shopping cart and decrement the stock that the inventory the system maintains. The BECS also allows a manager to manage the inventory with full create, retrieve, update and delete (CRUD) functionality with regards to books in the system. It will also allow, on an inventory wide basis, customers and managers to interact with a promotion system that handles percentage-off promotions that can be applied to member’s orders. This interaction includes the creation (by managers) and the application to orders (by customers) of the promotions. The BECS has full email capabilities; the automated email functionality will be used to send promotions to members of the system as well as provide the managers with low-stock notifications. The BECS will have numerous constraints on what it can do. The system will not have full credit-card processing capabilities. It will not allow managers to be customers. The manager will be a hard-coded user and only a single manager will exist. There will be no actual book ordering and order completion, however the system will provide the customer with a receipt and it will log the transaction details. The system will not allow multiple promotions to be added to a single shopping cart nor will it allow a customer to add more than one of each item to their cart. The system also will not allow users to retrieve passwords or edit their user details.
BECS (^) Book E-Commerce System Barcode (^) A unique identifier assigned to single items Book (^) An instance of an Item that has these additional attributes: Title, Author Button (^) A user interface element that allows a User to click and inform the system to take an action Checkbox (^) A user interface element that allows a User to inform the system that he/she selected a particular item Checkout (^) The process a Customer goes through to purchase an Item CRUD (^) Create, Retrieve, Update, Delete Customer (^) A person that is a user of the system but has created an account Inventory (^) An object that holds items available for purchase by the Customer Item (^) An individual entity in the inventory which has several descriptive attributes:
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have
BECS is an online bookstore website which supports a number of functions for both the consumer and store's management. The website must be available to anyone using the Computer Science Department’s provided computer resources in the MSU Engineering Building and as such must work correctly in both Internet Explorer and Mozilla Firefox. As stated by the customer, there are no hardware or software requirements beyond these including, but not limited to, memory or specific software packages that need to be utilized nor software packages that need not be utilized.
BECS will provide a number of functions; each is listed below.
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have needs to be reordered.
The typical BECS user is simply anyone that has access to the Internet and a web browser in the computer science department at Michigan State University. It is assumed that the user is familiar enough with a computer to operate the browser, keyboard and mouse and is capable of browsing to, from and within simple websites [1].
As stated by the customer, security is not a concern for this system. The database may store passwords in plain text and there doesn't need to be a password recovery feature nor lockout after numerous invalid login attempts. As such, the system may not work correctly in cases when security is a concern. These cases include those listed above in addition to lack of an encrypted connection when sending credit card information and forcing users to use “strong” passwords. A strong password is a password that meets a number of conditions that are set in place so that user's passwords cannot be easily guessed by an attacker. Generally, these rules include ensuring that the password contains a sufficient number of characters and contains not only lowercase letters but also capitals, numbers, and in some cases, symbols. The system may not behave correctly when used with Internet browsers other than Firefox and Internet Explorer. SCR (^) "Software Cost Reduction (SCR) is a set of techniques for designing software systems developed by David Parnas and researchers from the U.S. Naval Research Laboratory beginning in the late 1970s." [7] Mode Class (^) "A mode class is a finite state machine, with states called system modes" [8] System State The current state or mode that the system is in. The system must be in exactly one state at any moment in time. Event (^) An event is any action that can trigger an action within the software system. Examples include but are not limited to changing values of variables or user-triggered events. Event Notation (^) We may need to refer to both the old and new value of a
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have @T - t - CustomerLoggedIn ManagerLoggedIn - - - @T UserLoggedOut CustomerLoggedIn - - - @T UserLoggedOut Event Table UserLoggingIn @T(User::Login() == TRUE) never UserLoggingOut never @T(Logout() == TRUE) User::LoggedIn TRUE FALSE Condition Table Mode Conditions UserLoggedOut FALSE TRUE ManagerLoggedIn TRUE FALSE CustomerLoggedIn TRUE FALSE UserLoggedIn TRUE FALSE
Client: We have assumed that all of the computer systems in the Engineering building labs are in proper working condition and that the user is capable of operating these system's basic functions including but not limited to being able to power on the system, login and open either Internet Explorer or Mozilla Firefox, and navigate the browser to the address of this BECS website. Provider: We have assumed that the BECS will be running on a properly working web server and database system with an Internet connection that allows this system to perform all communications with clients. Assumptions:
As stated by the customer, security is not a concern of this project. As such, it is beyond the scope of this system to encrypt personal user data, encrypt credit card information, prevent unauthorized login attempts, or any other concern of this nature. Additionally, the system is not responsible for the following:
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have 3.5.2.3. A text box to hold the credit card number 3.5.2.4. A button to complete the order 3.5.3. Order details sent via email after the checkout has completed 3.5.4. On order completion the inventory is decremented based on items purchased by user 3.6. Authentication System 3.6.1. User Levels 3.6.1.1. Manager (single, hardcoded user, no orders) 3.6.1.2. Customer (unlimited, open creation, unlimited orders) 3.6.2. Account Creation 3.6.2.1. Everyone is allowed to create an account 3.6.2.2. Required Information 3.6.2.2.1. Listed in section 2. 3.6.3. Account Modification 3.6.3.1. Users are not able to modify any aspect of their account after creation (“it would be nice but not needed”) 3.6.4. Login and Logout 3.6.4.1. There is no lost-password recovery 3.6.4.2. Logging in allows one to logout 3.6.4.3. Logging in allows checkout 3.6.4.4. There is a 30-minute session time out after which a logged in user will be logged out automatically. 3.7. Promotions 3.7.1. Specifications 3.7.1.1. Applies to entire order 3.7.1.2. Percentage-off type promotion (x% off entire order) 3.7.1.3. Expiration occurs at manager specified date 3.7.1.4. Multiple coupons cannot be applied to same order 3.7.1.5. Non-member users cannot apply promotions to order 3.7.2. Creation 3.7.2.1. Promotion created by manager 3.7.2.2. Each promotion has a unique identifying number (can be auto generated) 3.7.2.3. Email containing promotion sent to all member users of the BECS system 3.7.2.4. 3.7.3. Deletion 3.7.3.1. Promotions are auto-deleted when the expiration date has passed 3.8. Automated Reorder 3.8.1. Specifications 3.8.1.1. Manager sets reorder threshold on a per-item basis 3.8.1.2. If item reaches the reorder threshold, an email is sent informing the manager of the item’s status and the system automatically reorders the item 3.8.1.2.1. If the item has a stop-order applied to it, it will not automatically reorder until the manager removes it. 3.8.1.3. A manager may increase the stock of an item using the manager’s account 3.9. Order Logging 3.9.1. Specifications 3.9.1.1. Required Information: 3.9.1.1.1. Listed in section 2. 3.9.1.2. A manager can view all past transactions from all users
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have Order log entries are generated when a user successfully checks out their shopping cart
The purpose of this diagram is to demonstrate how objects will interact with BECS and map out the basic functionality of the system. Below is a list of the elements that you will see in the diagram on the next page as well what is included in the use case templates that follow. Actors (^) Shown in the diagram as stick figures with a name underneath. They represent elements that will be directly interacting with the system. Use Cases Oval shapes that have their names in the center. These represent direct functionality within the system that must be implemented. Interactions (^) Lines that connect the actors with the different Use Cases. These show that there is some form of direct interaction between the actor and that specific functionality. Includes (^) Dotted lines labeled “<
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have Extends: None Cross Ref: Required for 4 Use-Cases: None Use Case: Add Items to Cart Actors: Customer Type: Primary and Essential Description: Allows the Customer to place items selected in the Browse Inventory screen to their shopping cart for later purchase. Includes: None Extends: None Cross Ref: Required for Elicitation Meeting Use-Cases: Customer must have completed the Log In use case. Use Case: Add Item Actors: Manager Type: Primary and Essential Description: Allows the Manager to add an additional book to the inventory that should include the books price, title, number in stock, stop-order, and reordering threshold. Includes: None Extends: None Cross Ref: Required for 1 Use-Cases: Manager must have completed the Log In use case Use Case: Edit Item Actors: Manager Type: Primary Description: Lets the Manager edit all of the attributes of a particular item in the inventory. Includes: None Extends: None Cross Ref: Required for 1 and 5 Use-Cases: Manager must have completed the Log In use case Use Case: Add Promotion Actors: Manager Type: Primary Description: This allows the manager to add a special promotion such as a certain percentage off for members. This will email all customers who are members to inform them of the new promotion. Includes: None Extends: None Cross Ref: Required for 5 Use-Cases: Manager must have completed the Log In use case Use Case: Checkout Actors: Customer
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have Type: Primary and Essential Description: This takes the items in the customers shopping cart and processes them for a purchase. Includes: Use Promotion Extends: None Cross Ref: Required for 3 Use-Cases: Customer must have completed the Log In use case Use Case: Use Promotion Actors: Customer Type: Primary Description: If the user is a member they are presented with the option to enter in a promotion code that will take off a percentage from the total. Includes: None Extends: None Cross Ref: Required for 6 Use-Cases: Customer must have completed the Log In and Checkout use cases Use Case: Purchase Item Actors: Customer Type: Secondary Description: Acted on when the user presses the finalize order button in checkout. This decrements the inventory of all items within the order, email the user, create a log of the transaction, and check stock to see if a reorder needs to take place. Includes: Send Email, Check Stock Extends: None Cross Ref: Required for 3 and 7 Use-Cases: Customer must have completed the Log In and Checkout use cases Use Case: Check Stock Actors: System Type: Secondary Description: Checks to see if stop-order is on for a particular item and if it is checks to see if the amount in stock is below the reorder amount. If it is then it will reorder. Includes: Send Email, Reorder Extends: None Cross Ref: Required for 5 Use-Cases: None Use Case: Reorder Actors: System Type: Secondary Description: Reorders a particular item and emails the manager. Includes: None Extends: None Cross Ref: Required for 5 Use-Cases: None
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have related to the other. The first number is the minimum and the second number is the maximum. An asterisk ‘’ means many, so “1..” can be read as 1 to many. If no number exists it is assumed to be 1. Class
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have This is a base class in which manager and customer extend. This class provides the login ability that is shared between the two as well as some shared variables. Public: Yes Associations: None Relationships Aggregations: None Generalization: None Variables - Username:String, Password:String, Email:String, LastActivity:Time, PostalAddress:String, Name:String, LoggedIn:Boolean User Functions - Login(), Logout() Class There is only one instance of this class because there is only one manager. This manager has the additional ability of adding items, creating promotions, and modifying books. Public: No Associations: Inventory, Book, Promotion Relationships Aggregations: None Generalization: User Variables - None Manager Functions - None Class There are many customers in the system and they all have their own shopping cart. A customer is a member if IsMember is set to True. Public: No Associations: Shopping Cart Relationships Aggregations: None Generalization: User Variables - IsMember:Boolean Customer Functions - None Class This class contains a list of items and all the functions that are required to be acted on those items. The functions AddItem(), SetPrice(), and SetReorder() are only accessible by the Manager. PurchaseItem() only by a Shopping Cart. Browse() can be accessed by any User. Public: No Associations: User, Manager, Shopping Cart Relationships Aggregations: None Generalization: None Inventory Variables - Items:Vector
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have Associations: Shopping Cart Relationships Aggregations: None Generalization: None Variables - TimeDate:Time, Username:String, Items:Vector Functions - None Class Each customer has its own shopping cart and it stores items and is responsible for processing the order for the customer. Public: No Associations: Customer, Inventory Relationships Aggregations: None Generalization: None Variables - Items:Vector, PromotionAdded:Boolean Shopping Cart Functions - AddPromotion(), Checkout(), AddItem(), RemoveItem(), Email(), BrowseCart()
The sequence diagrams use the class diagram and demonstrate specific sequences of actions in the system. The purpose is to ensure that the BECS system runs in an expected way and that the class structure is sufficient to accomplish the tasks needed. Below is a list of the items that you will see in the diagram and their definitions. Axis’s (^) The x-axis identifies movement between objects and the y- axis identifies time. Comments (^) These are the boxes that are along the left side. These explain the actions that are occurring in the sequence and other helpful information. Instances (^) Solid boxes along the top that have dotted lines that stretch vertically below them. These are specific instances of an object. The first part of the title is the name of that specific instance and the object it is an instance of follows it. (Special Note: If there are multiple instances that have the same title then they are actually the same instance and are only there to diagram calls onto themselves.) Calls (^) Lines that have filled triangles at the ends. These are transitions from one instance to another and have a label above them that is a function call, a variable being set, or both. It can also have a guard statement that precedes it. Variable being set (^) Have a variable name followed by either a ‘:=’, ‘+=’, or ‘-=’ and then another variable name with the first being set to the
Template based on IEEE Std 830-1998 for SRS. Modifications (content and ordering of information) have later. := means that its being set directly to the variable that follows. += (^) means that the variable that follows is being added to the current value.