Online Shopping Project Documentation Template

[Pages:79]ONLINE SHOPPING CART APPLICATION

A Paper Submitted to the Graduate Faculty

of the North Dakota State University of Agriculture and Applied Science

By Swati Gupta

In Partial Fulfillment of the Requirements for the Degree of

MASTER OF SCIENCE

Major Program: Software Engineering

June 2013

Fargo, North Dakota

North Dakota State University Graduate School

Title Online Shopping Cart Application

By Swati Gupta

The Supervisory Committee certifies that this disquisition complies with North Dakota State University's regulations and meets the accepted standards for the degree of

MASTER OF SCIENCE

SUPERVISORY COMMITTEE: Kendall E. Nygard

Chair

Kenneth Magel

Brian Slator

Linda Langley

Approved by Department Chair:

7/1/2013 Date

Dr. Brian Slator Signature

ABSTRACT Electronic commerce, also known as ecommerce is a type of industry where buying and selling of a product is conducted over electronic systems such as the internet. The purpose of this application is to bring knowledge to students about ecommerce and how an interactive ecommerce application can be designed from scratch using client-side languages, such as JavaScript and HTML, combined with the server-side Java language through Java Server Faces. The server side, mostly Java, contains all the implementation related to setting up the database, creating session models for joining different user-interface (UI) pages, calculating the shipping costs and sales tax, etc. It is responsible for taking information from the database and making it available to the UI by mapping the category or item ID to the respective IDs stored in the database. The client side is responsible for showing the entire user interface, containing the CSS, HTML, and JavaScript.

iii

ACKNOWLEDGMENTS I would like to express my deep sense of gratitude and convey thanks to everyone who helped me and supported during the completion of this project and my research paper. First, I would like to express a deep sense of gratitude to Dr. Kendall Nygard for helping, guiding, and supporting me throughout my master's degree and research completion. I also convey thanks to my all committee members for helping me from time to time and for being on my committee. I acknowledge my department for providing the courses and a great atmosphere that helped complete different chapters of this paper. I especially thank my supervisor, Mickey Arora, for supporting me and my concepts and for allowing me to do something the way I liked, as well as my company, Thomson Reuters, for helping me develop the skills necessary to design this application as part of my master's research. Last but not least, I would like to thank my family members for their constant and unrelenting support towards my education and for their impartial love for me. I would also like to thank my friends, without whom this project would have been impossible.

iv

TABLE OF CONTENTS ABSTRACT................................................................................................................................... iii ACKNOWLEDGMENTS ............................................................................................................. iv LIST OF TABLES ........................................................................................................................ vii LIST OF FIGURES ..................................................................................................................... viii CHAPTER 1. INTRODUCTION .................................................................................................. 1

1.1. Motivation........................................................................................................................... 2 1.2. Aim of the Software............................................................................................................ 2 1.3. Literature Review................................................................................................................ 3 1.4. Paper Organization.............................................................................................................. 6 CHAPTER 2. OBJECTIVES.......................................................................................................... 7 2.1. Requirements Analysis ....................................................................................................... 7

2.1.1. Product Perspective..................................................................................................... 9 2.1.1.1. User Interface...................................................................................................... 9 2.1.1.2. Hardware Interface.............................................................................................. 9 2.1.1.3. Software Interface ............................................................................................. 10

2.1.2. Product Function ....................................................................................................... 10 2.1.3. User Characteristics .................................................................................................. 11 2.1.4. Constraints ................................................................................................................ 12 2.1.5. Assumptions and Dependencies ............................................................................... 12 2.1.6. Specific Requirements .............................................................................................. 12

2.1.6.1. Functional Requirements .................................................................................. 13 2.1.6.2. Performance Requirements ............................................................................... 15

v

2.1.7. Design Constraint...................................................................................................... 16 2.1.8. Software System Quality Attribute........................................................................... 16 CHAPTER 3. IMPLEMENTATION............................................................................................ 17 3.1. Detailed Scope .................................................................................................................. 17 3.2. Static Decomposition and Dependency Description......................................................... 18 3.2.1. High-Level Use Case Diagram ................................................................................. 18 3.2.2. Activity Diagram ...................................................................................................... 29 3.2.3.Class Diagram ............................................................................................................ 31 3.3.The Shopping Cart Application Implementation ............................................................... 33 3.4. The Shopping Cart Application Interface ......................................................................... 38 CHAPTER 4. TESTING.............................................................................................................. 57 4.1. Methodology ..................................................................................................................... 57 4.2. Interface Testing ............................................................................................................... 58 4.3.Test Cases .......................................................................................................................... 59 4.4. Results............................................................................................................................... 65 CHAPTER 5. CONCLUSION/FUTURE WORK........................................................................ 66 5.1. Conclusion ........................................................................................................................ 66 5.2. Future Work ...................................................................................................................... 67 REFERENCES ............................................................................................................................. 69

vi

LIST OF TABLES

Table

Page

1. List of Functional Requirements.............................................................................................. 59

2. List of Test Cases..................................................................................................................... 60

3. List of Test-Case Results. ........................................................................................................ 65

vii

LIST OF FIGURES

Figure

Page

1. Online Shopping Cart Application System Use-Case Diagram: Admin.. ............................... 19

2. Online Shopping-Cart Application System Use-Case Diagram: User. ................................... 20

3. Activity Diagram for Online Shopping-Cart Application. ...................................................... 30

4. Class Diagram. ......................................................................................................................... 33

5. The Database Package.. ........................................................................................................... 34

6. Web-Content Package.............................................................................................................. 35

7. Implementation of the Default Page for the Shopping-Cart Application ................................ 35

8. Session Model Code Snippet. .................................................................................................. 36

9. Screenshot of the Home Page.. ................................................................................................ 39

10. Screenshot of the Electronics Category. ................................................................................ 40

11. Screenshot of the Clothing Category. .................................................................................... 41

12. Screenshot of the Jewelry Category....................................................................................... 41

13. Screenshot of the Shoes Category.......................................................................................... 42

14. Screenshot of the Furniture Category. ................................................................................... 42

15. Screenshot of the Entertainment Category. ........................................................................... 43

16. Screenshot of the View Cart. ................................................................................................. 44

17. Screenshot of the Updated Cart After Deleting an Item.. ...................................................... 45

18. Screenshot of the Updated Cart After Adding an Item.......................................................... 45

19. Screenshot of the Empty Cart: Checkout Button Disappears. ............................................... 46

20. Screenshot of the User-Authentication Form. ....................................................................... 46

21. Screenshot with Invalid Credentials.. .................................................................................... 47

viii

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download