Format Project Report
Format Project Report
Format Project Report
ON
“PROJECT NAME”
Submitted To Submitted By
(Batch: 2018-2021)
1
CERTIFICATE
(Faculty Name)
(Designation)
2
ACKNOWLEDGEMENT
It is our proud privilege to express our profound gratitude to the entire management of
Vivekananda Institute of Professional Studies and teachers of the institute for providing us with
the opportunity to avail the excellent facilities and infrastructure. The knowledge and values
inculcated have proved to be of immense help at the very start of my career. Special thanks to
Hon’ble Founder, Vivekananda Institute of Professional Studies, Delhi for having provided us
an excellent infrastructure at VSIT.
I am grateful to Dr. Supriya Madan (Dean, VSIT), and “project guide” for their astute guidance,
constant encouragement and sincere support for this project work.
Sincere thanks to all my family members, seniors and friends for their support and assistance
throughout the project.
Student Name
3
Table of Contents Page No.
1 INTRODUCTION 6
2 REQUIREMENT ANALYSIS 10
6 CONCLUSION
50
6.1 Conclusion
6.2 Future Scope 50
50
Biblography 51
4
Table of Figures
3 Fig. 3.1 Actor and Use case 17
5
Chapter 1
INTRODUCTION
Online Auction System specializes in auctioning various products with the interaction of the customers
to each other. It is an online system through which customers can register themselves, add items to sell,
bid on the items to purchase, etc. Online auction service is a major sale and purchase service provided
by our company in many cities all over India. Most of the people use online websites to sell and
purchase the used products. Our company is registered and fulfils all the requirements and security
standards set by the sale and purchase department. The project has 2 different types of logins:-
1. User login
2. Admin login
USER LOGIN
It is the basic login interface for any customer or user of the website. It provides the user with the
information of different items added to be auctioned. Also, the user can add his or her item by using the
add auction option on the member home of the website. He can also bid for the already added items for
auction to purchase them as well as can check the status of auction of every item.
ADMIN LOGIN
This login is meant for the manager of the auction website. It gives an overview of all the auctions
placed, who has placed them, highest bid on the items, etc. It also provides the admin with the advantage
to cancel or finalize any auction. It also has a messages section where the admin can receive the
messages of its users and reply to it appropriately.
6
4. Provides attractive discounts
5. Accepts Customer Feedback
6. Provides the Tracking Facility
7. Provides a convenient solution for billing pattern
And on the other hand, the user can get/bid his best price to sell/purchase the items from different users
sitting at his home. He also gets to know the status of all the auctions whether added by him or others.
The manager supervises all the auctions which are being made by the users, receive all the feedbacks
and reply to them when he feels necessary. The admin has the right to cancel or finalize any auction
item.
2. User friendly: The proposed system is user friendly because the retrieval and storing of data is fast
and data is maintained efficiently. Moreover the graphical user interface is provided in the proposed
system, which provides user to deal with the system very easily.
3. Customer Feedback: The users of the system are entitled to a feedback about the auctioned item that
they have added.
4. No or very few paperwork: The proposed system either does not require paper work or very few
paper works is required. All the data is feted into the computer immediately and various feedbacks and
reports can be generated through computers. Since all the data is kept in a database no data of the
7
organization can be destroyed. Moreover work becomes very easy because there is no need to keep data
on papers.
6. Computer operator control: Computer operator control will be there no errors. Moreover storing
and retrieving of information is easy. So work can be done speedily and in time.
Following are the problems associated with the previous project which led to the creation of the
proposed project:-
1.Inability of modification of data: The managing of huge data effectively and efficiently for efficient
results, storing the details of the products etc. in such a way that the database can be modified as not
possible in the current system.
2.Not user friendly: The existing system is not user friendly because the retrieval and storing of data is
slow and data is not maintained efficiently.
3.Difficulty in reports generating: Either no reports generating in a current system or they are
generated with great difficulty reports take time to generate in the current system.
4.Manual operator control: Manual operator control is there and leads to a lot of chaos and errors.
5.Lot of paperwork: Existing system requires lot of paper work and even a small transaction require
many papers fill. Moreover any unnatural cause (such as fire in the organization) can destroy all data of
the organization. Loss of even a single paper led to difficult situation because all the papers are
interrelated.
8
6.Inability of sharing the data: Data cannot be shared in the existing system. This means that no two
persons can use the same data in existing system. Also the two departments in an organization cannot
interact with each other without the actual movement of data.
8.No support in strategic competitive advantage: Existing system does not support strategic
competitive advantages.
9
Chapter 2
REQUIREMENT ANALYSIS
Before we begin a new system it is important to study the system that will be improved or replaced (if
there is one).We need to analyze how this system uses hardware, software, network and the people
resources to convert data resources, such as transaction data, into information products, such as reports
and displays. Thus we should document how the information system activities of input, processing,
output, storage and control are accomplished.
10
2.2 Feasibility Study
All projects are feasible if they have unlimited resources and infinite time. But the development of
software is plagued by the scarcity of resources and difficult delivery rates. It is necessary and prudent to
evaluate the feasibility of a project at the earliest possible time. The three considerations are involved in
the feasibility analysis.
Technical feasibility centers on the existing mobile system (hardware, software…etc) and to what extent it can
support the proposed addition if the budget is a serious constraint, then the project is judged not feasible. The
technical feasibilities are important role in my project because here I am using Java J2EE. It requires ECLLIPSE
(software) to develop this application. A easily available software and easy to use.
11
All this can be done using a internet connection and a web browser installed in user’s system. The system
specifications that a user may want are as follows:
Inquiry Form/Interviews
Q) What kind of system?
Q) Data security?
Data should be in encrypted format so that no third party could access the user credentials.
Q) Using of system
A more user oriented interface that is basically designed for the users only
Since the user is providing of its credentials to the application so its rights to use needs to be of the user
i.e. without user permissions it cannot be exchanged or changed
12
developer. Some IT developers might consider it as an time wasting process but, they would be missing
out on a very important lesson ignoring this step. The people who are in the IT field for a long time
knows the mindset of the user pretty well and might help in giving some important pointers which in
turn would help in improvement of the project. Following were the outcome of the discussion held with
our IT experts:
So, it was a very eventful and important step taken in the development of the project which leads to
some interesting improvements in the project.
Better GUI: All the elements used in the system should be of interactive in nature that is its look and
feel is not so boring that the user could get bored while using it.
Data security: Access to the organizational data is not to be granted to any unknown person which is
not a part of the transaction
Confidentiality: Whatever the user is providing to the organization ,the user has the full rights to
modify it and it could be not be accessed/modified without users permission
Better Management of information: All the information should be managed that is the flow of the
information is to be in right track
Presentation: The content that is to be presented to the user is to be presented in such a way that is self
explanatory to the user and he/she is satisfied with the data.
13
Chapter 3
3. Software requirements
RAM Minimum 4 GB
To know the detailed system requirements an SRS has to be prepared .Software requirement
specification abbreviated as SRS is a means of translating the idea of files into a formal document. The
main features of SRS include:
Establishing the basis for an agreement between the client and the developer.
Producing a reference for validation of the final product. SRS assist clients in determining if the
software meets the requirements.
Mainly there are six requirements which an SRS must satisfy.
14
(e) It should record throughout the lifecycle.
The user of the proposed system requires that the developed software should be user friendly, have
security access, and ensure the privacy of the administrator and produce results in timely manner. The
users are not frequently exposed to the reservation system, so the system interface to the user must be
simple and understandable. The web pages must be user-friendly and must be in an easy-to-use style.
The user must be able to easily switch among various I/O screens. The product is well designed so that it
can be used easily by the users who are novices to the system.
The database should be designed in such a way that it enhances the efficient searching , reservation and
manipulation of all the information associated. For instance all general information regarding an item
attribute should be stored in a particular table.
The database should be organized in such a way that it helps in searching and reserving various essential
summaries needed for users.
15
(c) User can easily do reservation.
Non-functional requirements define the system properties and constraints that arise through user needs,
because of the budgeted constraints or organizational policies, or because of the need for interoperability
with other software or due to the external factors such as safety regulations privacy registrations and so
on.
Design Requirements
(c) The best thing in the input design is to achieve all the objectives mentioned in the simplest manner
possible.
The primary goal of the system analysis is to improve the efficiency of the existing system. For that the
study of specification of the requirements is very essential. For the development of the new system, a
preliminary survey of the existing system will be conducted. Investigation done whether the upgradation
of the system into an application program could solve the problems and eradicate the inefficiency of the
existing system
The proposed system consists of mainly 6 important modules and various other sub modules. The main
6 modules of the system are as follows
16
1 Create Account-this module is used by the customer to get himself/herself registered to the website.
The customer has to provide some basic information regarding him to get registered to the website. The
information to be provided by the customer for getting himself registered is: name, contact, address,
password and email. Once the user is registered he is ready to use the functionalities present in the
website.
2 Login-Once a user has been registered to the website, he is free to use the services offered to him by
logging into his account using appropriate details. The proposed website accepts two kinds of logins
which are as follows:
User Login: it is the basic normal login for any customer of the website. The user enters his username
and password to login.
Admin Login: this is the login portal made especially for admin(s) of the website. It allows the admin to
gain access to privileged root user powers.
3 Feedback: user can give his/her feedback or suggestions which could help in overall quality of the
product.
4 Messages: user can send or/and receive messages to and from other users that can be thought of as a
chat messenger, as well as to the admin.
A use case is a set of scenarios that describe an interaction between a user and a system.
A use case diagram displays the relationship among actors and use cases. The two main components of a
use case diagram are use cases and actors.
USE CASE
17
An actor is represents a user or another system that will interact with the system you are modelling.
A use case is an external view of the system that represents some action the user might perform in order
to complete a task.
LOGIN
LOG IN
LOG OUT
LOG OUT
AUCTIO MANAGES
N
AUCTIONS
ADMIN
User BIDS
MANAGES
MESSAGES
MESSAGES
In The above diagram there are 2 actors or users who use the system. These two users are as follows:
1. User-The customer is allowed to login to the system, logout of it, add items to auction, bid for
the items added to the website to purchase and view the status of his bookings.
2. Admin-The admin can also login and logout of the system. Other than that the admin of the
system manages all the auctions and can cancel/finalize the item for the auction.
18
3.4 ER DIAGRAM
Entity – Relationship model (ER model) in software engineering is an abstract way to describe
a database. This article refers to the techniques proposed in Peter
ITEMChen's 1976 paper. However, variants
of the idea existed previously, and have been devised subsequently such as super type and subtype data
entities and commonality relationships.
CONTACT AUCID NAME
NAME
ADDS
EMAIL USER BUYNO
ITEM
W
BALANC
BID
ADD
SENDS
&
SEND
AUCTION
FEEDBACK MESSAGES
PASSWOR CANCEL
D /
In The above diagram shows the entity relationship. An Entity Relationship Diagram (ERD) is a visual
representation of different data using conventions that describe how these data are related to each other.
For example, the elements writer, novel, and consumer may be described using ER diagram. In the
diagram, the elements inside rectangles are called entities while the items inside diamonds denote the
19
relationships between entities. This ER diagram tutorial for beginners covers most things related to ER
diagram
A data flow diagram (DFD) is a graphical representation of the "flow" of data through an information
system, modelling its process aspects. Often they are a preliminary step used to create an overview of
the system which can later be elaborated. DFDs can also be used for the visualization of data
processing (structured design).
UPDATES INFO
ADMIN LOG IN TRAINS
MANAGES
CHEF LOG IN INVENTORY
A DFD shows what kinds of information will be input to and output from the system, where the data
will come from and go to, and where the data will be stored. It does not show information about the
timing of processes, or information about whether processes will operate in sequence or in parallel
(which is shown on a flowchart).
Chapter 4
20
Fig. 4.1 member table
This fig shows the table which is said to be a member table. It contains the data about the members who
are user in the auction website. It contains eleven fields name ,address ,country ,phone ,email
,password ,securityques ,status ,balance. This table is the part of our auction’s database.
MESSAGES TABLE
21
Fig 4.2 Message Table
This fig shows the table which is said to be a message table. It contains the data about all the messages
who are user in the auction website. It contains eleven fields msdid, sender, receiver, subject, message..
This table is the part of our auction’s database. This table also contains feedback those are send by the
user and it is send to admin.
AUCTION TABLE
22
Fig. 4.3
This fig shows the table which is said to be a auction table. It contains the data about the members who
are user in the auction website and who auctioned on the website their product . It contains eight fields
ownerid, item, currentbid, buynow, sender, description, aucid. This table is the part of our auction’s
database.
Platform Independent: Since the project is done completely in java, it also executes main properties of
language. The chat application is platform independent. So the client systems may have vista, Linux,
Mac or any other operating system, but they can connect to server easily without any dependencies of
OS.
23
4.2 Languages used
The Apache HTTP Server, commonly is a web server software notable for playing a key role in the
initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the
100 million website milestone.
Apache was the first viable alternative to the Netscape Communications Corporation web server
(currently named Oracle iPlanet Web Server), and since has evolved to dominate other web servers in
terms of functionality and performance. Typically Apache is run on a Unix-like operating system, and
was developed for use on Linux.
4.4 CODING
4.4.1 Login.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@include file="HEADER1.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>lOGIN </title>
24
</head>
<body>
<table>
<br><br><br><br>
<form action="loginservlet" method="get">
<tr><td><b>E-mail :</b></td><td><input type="text" name="email" max length="40"
required></td></tr>
<tr><td><b>Password :</b></td><td><input type="password" name="password" max length="30"
required></td></tr>
<tr><td></td><td><input type="submit"></td></tr>
<tr><td>not registered?<a class="cust1" href="register.jsp">register now</a></td>
<tr><td><a class="cust1" href="forgot.jsp">forgot password?</a></td></tr>
</form>
</table>
</body>
</html>
4.4.2 Loginservlet.java
package Controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServlet("/loginservlet")
public class loginservlet extends HttpServlet {
25
private static final long serialVersionUID = 1L;
public loginservlet() {
super();
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:system/pass@localhost:1521:XE","Auction","995
3330821");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select email,password,status from member where
email='"+email+"' and password='"+pass+"'");
while(rs.next())
{
flag=1;
String status=(String)rs.getString(3).trim();
String mail=(String)rs.getString(1).trim();
if(status.equals("member"))
{
HttpSession sess=request.getSession(true);
26
sess.setAttribute("s3cret", "secret");
sess.setAttribute("email",mail);
sess.setAttribute("status",status);
request.getRequestDispatcher("memberhome.jsp").forward(request, response);
break;
}
else if(status.equals("admin"))
{
HttpSession sess=request.getSession(true);
sess.setAttribute("s3cret", "secret");
sess.setAttribute("email",mail);
sess.setAttribute("status",status);
request.getRequestDispatcher("adminhome.jsp").forward(request, response);
break;
}
break;
}
if(flag==0)
{
request.setAttribute("error", "Enter a Valid Id and Password");
request.getRequestDispatcher("error.jsp").forward(request, response);
}
27
catch(Exception e)
{
out.println(e);
}
}
28
Fig. 4.4 home page
This fig show the home page of this auction website. Which contains the images related to this site and
the various modules.
4.4.3 Register.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@include file="HEADER1.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<br><br><br><br>
<table>
<form action="registerservlet" method ="get">
<tr><td><b>Name:</b></td><td><input type="text" name="rname" required
maxlength="50" ></td></tr>
<tr><td><b>Address:</b></td><td><input type="text" name="radd" required
maxlength="50"></td></tr>
<tr><td><b>Country:</b></td><td><input type="text" name="rcountry" required
maxlength="20"></td></tr>
<tr><td><b>Email ID:</b></td><td><input type="email" name="rid" required
maxlength="30"></td></tr>
<tr><td><b>Phone No:</b></td><td><input type="text" name="rpno" required
maxlength="10"></td></tr>
<tr><td><b>Password:</b></td><td><input type="password" name="rpass"
required maxlength="20"></td></tr>
<tr><td><b>Confirm Password:</b></td><td><input type="password"
name="rcpass" required maxlength="20"></td></tr>
<tr><td><b>Select Security question :</b></td><td><select name="sq">
<option value=1>whats your favorite color? </option>
<option value=2>whats the name of your 1st pet? </option>
<option value=3>whats your favorite cartoon? </option>
</select></td></tr>
<tr><td><b>Answer</b></td><td><input type="text" name="rans" required
maxlength="25"></td></tr>
<tr><td><input type="submit"></td></tr>
</form>
</body>
</html>
29
4.4.4 Registerservlet.java
package Controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
@WebServlet("/registerservlet")
public class registerservlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public registerservlet() {
super();
// TODO Auto-generated constructor stub
}
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
PrintWriter out=response.getWriter();
String usename=(String)request.getParameter("rname");
String useadd=(String)request.getParameter("radd");
String usecountry=(String)request.getParameter("rcountry");
String useno=(String)request.getParameter("rpno");
String usepass=(String)request.getParameter("rpass");
String usecpass=(String)request.getParameter("rcpass");
String usemail=(String)request.getParameter("rid");
30
String usesq=(String)request.getParameter("sq");
String useans=(String)request.getParameter("rans");
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:Auction/9953330821@localhost:1521:XE");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select name,phone from member");
while(rs.next())
{
String check1=(String)rs.getString(1);
String check2= (String)rs.getString(2);
if(check1.equalsIgnoreCase(usename) ||
check2.equalsIgnoreCase(useno))
{
request.getRequestDispatcher("register.jsp").forward(request, response);
}
else
{
int q=Integer.parseInt(usesq);
switch(q)
{
case 1:
{
31
int r=st.executeUpdate("insert into member
values('"+usename+"','"+useadd+"','"+usecountry+"','"+useno+"','"+usemail+"','"+usepass+"','whats you
faviorite color?','"+useans+"','member',10000)");
if(r>0)
{
request.getRequestDispatcher("sucessreg.jsp").forward(request, response);
break;
}
break;
}
case 2:
{
int r=st.executeUpdate("insert into member
values('"+usename+"','"+useadd+"','"+usecountry+"','"+useno+"','"+usemail+"','"+usepass+"','whats the
name of your 1st pet?','"+useans+"','member',10000)");
if(r>0)
{
request.getRequestDispatcher("sucessreg.jsp").forward(request, response);
break;
}
break;
}
case 3:
{
32
int r=st.executeUpdate("insert into member
values('"+usename+"','"+useadd+"','"+usecountry+"','"+useno+"','"+usemail+"','"+usepass+"','whats you
faviorite cartoon?','"+useans+"','member',10000)");
if(r>0)
{
request.getRequestDispatcher("sucessreg.jsp").forward(request, response);
break;
}
break;
}
default:
out.println("Not a valid choice");
}
}
}
catch(Exception e)
{
out.println("error"+e.getMessage());
}
}
else{
request.setAttribute("error", "the passwords do not match");
request.getRequestDispatcher("error.jsp").forward(request, response);
33
}
}
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws
ServletException, IOException {
// TODO Auto-generated method stub
}
4.4.5 Feedback.jsp
34
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@include file="mheader.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table >
<form action="feedback" method="get">
<%
if(sess.getAttribute("s3cret")!=null)
{
%>
<h2>Feedback</h2>
<tr><td><b>Subject : </b><input type="text" name="subject" max length="20"
required></td></tr>
<tr><td><b>Feedback</b></td></tr>
<tr><td><TEXTAREA NAME="message" ROWS="5" max length="120"
required></TEXTAREA></td></tr>
<tr><td><input type="submit" value="send"></td></form><form
action="gateway"><td><input type="submit" value="back"></td></tr></form>
<%
}
else
request.getRequestDispatcher("login.jsp").forward(request,response);
%>
</table>
</body>
</html>
4.4.6Feedbackservlet.java
package Controller;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
35
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
@WebServlet("/feedback")
public class feedback extends HttpServlet {
private static final long serialVersionUID = 1L;
public feedback() {
super();
// TODO Auto-generated constructor stub
}
try{
36
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:Auction/9953330821@localhost:1521:XE");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from messages");
while(rs.next())
{
count++;
}
st.executeUpdate("insert into messages
values("+count+",'"+email+"','admin','"+subject+"','"+message+"')");
request.setAttribute("success","Thank you for your valuable feedback");
request.getRequestDispatcher("success.jsp").forward(request, response);
}
catch(Exception e)
{
out.println(e);
}
}
else
request.getRequestDispatcher("login.jsp").forward(request,response);
37
Fig. 4.6 Feedback Page
This fig. show the feedback page. This page contains all the mandatory fields which is to be filled by
the existing user to give the feedback to the admin about his/her experience for using this website. To
be the member of this website a person should give a feedback to the admin .
4.4.7 Mymessages.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.sql.*" %>
<%@include file="mheader.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<table border="2">
<tr>
<th>S.no</th><th>Sender</th><th>Subject</th><th>Message</th>
</tr>
<%
38
if(sess.getAttribute("s3cret")!=null)
{
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection
con=DriverManager.getConnection("jdbc:oracle:thin:Auction/9953330821@localhost:1521:XE");
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from messages where reciever='"+email+"'");
while(rs.next())
{ count++;
int msgid=(int)rs.getInt(1);
String sender=(String)rs.getString(2);
String subject=(String)rs.getString(4);
String message=(String)rs.getString(5);
%>
<tr>
<td><%=count %></td>
<td><%=sender%></td>
<td><%=subject%></td>
<td><%=message%></td>
<%
}
else
39
request.getRequestDispatcher("login.jsp").forward(request,response);
%>
4.4.8 Sendmessage.jsp
40
<%
if(sess.getAttribute("s3cret")!=null)
{
%>
<h2>Send a Message</h2>
<tr><td><b>Recipient</b><input type="text" name="reciever" max length="30" required></td></tr>
<tr><td><b>Subject</b><input type="text" name="subject" max length="30" required></td></tr>
<tr><td><b>Message</b></td></tr>
<tr><td><TEXTAREA NAME="message" ROWS="5" max length="120"
required></TEXTAREA></td></tr>
<tr><td><input type="submit" value="send"></td></form><form action="gateway"><td><input
type="submit" value="back"></td></tr></form>
<%
}
else
request.getRequestDispatcher("login.jsp").forward(request,response);
%>
</table>
</body>
</html>
41
Chapter 5
Software testing is a critical element of software quality assurance and represents the ultimate review of
specification design and coding. Testing is an exposure of a system to trial input to see whether software
meets correct output. Testing cannot be determined whether software meets user’s needs, only whether it
appears to confirm to requirements. Testing can show that a system is free of errors, only that it contains
error. Testing finds errors, it does not correct errors. Software success is a quality product, on time and
within cost. Through testing can reveal critical mistakes. Testing should therefore,
Validate Performance
Detects Errors
Identify Inconsistencies
There is strong evidence that effective requirement management leads to overall project cost
savings. The three primary reasons for this are,
Requirement errors typically cost well over 10 times more to repair than other errors.
Requirement errors typically comprise over 40% of all errors in a software project.
Small reduction in the number of requirement errors pays big dividend in avoided rework costs
and schedule delays.
System are not designed as entire systems nor are they tested as single systems the analyst must
perform both unit and system testing. For this different level testing are use:
In unit testing Module is tested separately and the programmer simultaneously along with the coding of
the module performs it.
42
In unit testing the analyst tests the programs making up a system. For this reason, unit testing is
sometime called program testing. Unit testing gives stress on modules independently of one another, to
find errors. This helps the tester in detecting errors in coding and logic that are contained within that
module alone. The errors resulting from the interaction between modules are initially avoided.
Unit testing can be performed from the bottom up, Starting with smallest and lowest-level modules and
proceeding one at a time., for each module in Bottom-up testing a short program is used to execute the
module and provides the needed data, so that the module is asked to perform the way it will when
embedded within the larger system.
This is performed after the system is put together. The system is tested against the system requirement to
check if all the requirements are met and if the system performs of specify by the requirements.
Testing is an important function to the success of the system. System testing makes a logical assumption
that if all the parts of the system are correct, the goal will be successfully activated. Another reason for
system testing is its utility as a user-oriented vehicle before implementation.
The function of testing is to detect the defects in the Software. The main goal testing is to uncover
requirement, design and coding errors in the programs. The types of testing are discussed below:
43
1. Top down integration: Modules are integrated by moving downwards through the control
hierarchy, beginning with main control module are incorporated into the structure in either a
depth first or breadth first manner.
2. Bottom up integration: It begins with construction and testing with atomic modules i.e. modules
at the lowest level of the program structure. Because modules are integrated from the bottom up,
processing required for the modules subordinate to a given level is always available and the need
of stubs is eliminated.
Black-box testing is a method of software testing that tests the functionality of an application as opposed
to its internal structures or workings.
The system is tested just to assure whether it is meeting all the expectations or requirements from it,
tester is not concerned with the internal logic of the module or system to be tested. Some inputs are
given to system and it is observed whether the system is working as per the client’s requirements or not
or according to the requirements specified in SRS document. Specific knowledge of the application's
code/internal structure and programming knowledge in general is not required.
Test cases are built around specifications and requirements, i.e., what the application is supposed to do.
It uses external descriptions of the software, including specifications, requirements, and designs to
derive test cases. These tests can be functional or non-functional, though usually functional. The test
designer selects valid and invalid inputs and determines the correct output. There is no knowledge of the
test object's internal structure. This method of test can be applied to all levels of software
testing: unit, integration, functional, system and acceptance. It typically comprises most if not all testing
at higher levels, but can also dominate unit testing as well. Black box testing or functional testing is used
to check that the outputs of a program, given certain inputs, conform to the functional specification of
the program. The term black box indicates that the tester does not examine the internal implementation
of the program being executed
44
White box testing does not account for errors caused by omission, and all visible code must also be
readable.
Contrary to black-box testing, software is viewed as a white-box, or glass-box in white-box testing, as
the structure and flow of the software under test are visible to the tester. Testing plans are made
according to the details of the software implementation, such as programming language, logic, and
styles. Test cases are derived from the program structure. White-box testing is also called glass-box
testing, logic-driven testing or design-based testing. There are many techniques available in white-box
testing, because the problem of intractability is eased by specific knowledge and attention on the
structure of the software under test.
45
Fig. 5.1 Registration Page
This fig. shows the validation of the mandatory fields. All the fields are mandatory to be filled, this the
validation for the fields when a user is registering himself on this particular website.
46
Fig. 5.2 Home page
This fig. shows the validation of password do not match. This means if the password is not matched with
the previous one then it will produce this error. A user must match ot fulfilled this validation to login
himself successfully.
Username/Password=wrong
47
Fig. 5.3 Home Page
This fig. shows the validation of not fulfilling the right id and password. A user must entered the right id
and password.
48
Name=Null
This fig. shows the validation of the mandatory fields. All the fields are mandatory to be filled, this the
validation for the fields when a user is registering himself on this particular website.
49
Chapter 6
CONCLUSION
6.1CONCLUSION
Now a day’s there is a big demand of different types of applications, which is because IT has become
the main part of our New World. There is a big need of different applications. People want application
for every specific task from work to entertainment. We have developed the Java application “GO Grab
it” which works easy on any given web browser.
The application has been tested on platform of java and found to be working as per the given criteria. It
can be safely concluded that the application possesses a highly efficient UI system and is working
properly and meeting to all the requirements of the user. The application gives the user maximum
flexibility in the types of touch and other device movements.
50
BIBLOGRAPHY
http://www.w3schools.com
http:// www .stackoverflow.com
http://wikipedia.com
Java The Complete Reference, by Herbert Schildt
51