Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese...

7
ROW INN ROW CHINESE RESTAURANT Proposed Website By Raymond Chieng and Tim

Transcript of Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese...

Page 1: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

ROW INN ROW CHINESE

RESTAURANTProposed Website

By Raymond Chieng

and Tim

Page 2: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

INTRODUCTIONThis website design is based on a local

Chinese restaurant which basically need to facilitate online ordering and table reservations. Netbeans is the software mainly used to build this website.

In relation to this project, the following will be explained:

Requirements Design Code Testing

Page 3: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

REQUIREMENTS The purpose of the requirements

documentation is to get a better understanding and help the design of the project from different stakeholders.

The requirements are generated from-Customers

-Administrators -Bank -System

Page 4: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

DESIGN Technology applied - JDBC (Java Database Connectivity) - JSP (Java Server Page) - HTML (Hypertext Markup Language) - CSS (Cascading Style Sheet)

Page 5: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

JDBC CODE Establish a JDBC Connection – 2 steps1.Loading the JDBC driver - A line of code

Class.forName(“org.apache.derby.jdbc.ClientDriver”); - Class.forName – is used to create an instance of a driver and

register it with the DriverManager. When you have loaded a driver, it is available for making a connection with a DBMS (Database Management System).

2.Making the connection - To establish a connection you need to have the appropriate

driver connect to the DBMS. - Connection con = DriverManager.getConnection

("jdbc:derby://localhost:1527/ROWINNROW"); Create JDBC statements - You create a Statement object and then execute it, supplying

the appropriate execute method with the SQL - Statement stmt = con.createStatement();

Page 6: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

TESTING Black box testing – based on requirement document Use test cases to get actual results, comparing to

the expected results Example of a Test Case: Test Case #: 14 Objective: Login with wrong username Input(s): ” raymon”; “1234”; click “login”button Expected Output: Alert message and can not log in Requirement tested: WS-1001; WS-1002; WS-2001 Example of Test Result Actual Output: Message of “User Name not found

Try again” comes up; Can not login Result: Pass

Page 7: Proposed Website By Raymond Chieng and Tim. This website design is based on a local Chinese restaurant which basically need to facilitate online ordering.

CONCLUSION A practical project of setting up a

website for restaurant/ catering business

Useful techniques: JDBC, JSP, CSS, HTML Problem Solving – google; related

journals or articles; consulting friends/teamwork

Need good Project planning – time related, effect related, need good teamwork