Documente Academic
Documente Profesional
Documente Cultură
AROCKIA JANCY.A
Register No: 116070909
CHINDHU.S
Register No: 116070911
Under the Supervision and Guidance of
Smt.L.GOWRI
School of Computing
SASTRA University
April – 2015
DEPARTMENT OF COMPUTER APPLICATION
School of computing
SASTRA University
(A university established under section 3 of the UGC Act, 1956)
Thanjavur – 613 401
April – 2015
Bonafide Certificate
Certified that this mini project report entitled as
ONLINE GIFT SHOP
Is a Bonafide record of work done by
AROKIA JANCY.A
Register No: 116070909
CHINDHU.S
Register No: 116070911
In partial fulfillment of the requirements for award of the
Degree of
Master of Computer Application
During the year 2014-2016
We first of all praise the almighty for the successful completion of this project.
Our heartfelt gratitude and thanks to our parents, who have constantly encouraged,
and continuously supported our entire academic life.
2 Project Schedule
4 System Analysis
4.1 use case diagram
4.2 class diagram
4.3 activity diagram
5 Design
5.1 sequence diagram
5.2 database design
5.3 form design
6 Implementation
6.1 sample code
7 Testing
7.1 test plan documentation
7.1.1 unit testing
7.1.2 integration testing
7.1.3 validation testing
8 Deployment
8.1 problem faced
8.2 lessons learnt
9 Future plans
10 Bibliography / References
SYNOPSIS
The project is entitled as “ONLINE GIFT SHOP”. It is also called as electronic commerce system for users
to buy gifts using internet. The project is developed from a user point of view. It provides the user with
catalog of different types of gifts available for purchase in this website. A shopping cart is provided to the
registered user to add or remove a selected gift item. The registered user can compare prices and order the
gifts sitting at home. A guest user can only view the gifts. Offers are only viewed by registered user. When a
registered confirms an order, a bill is generated automatically by the system. The registered user can give
their feedback about the gift purchased. Using this system, the admin maintains the details the details of
stock, payment and registered user details. Admin sends offer mails to registered user on occasional days.
This website will be useful to anyone who wants to purchase gifts using internet. User can select gifts online
quickly and comfortably. It saves user time and schedule of shopping and provides security through valid
registration. The system is implemented using two tier approach, with ASP.NET as front-end and SQL
SERVER 2005 as back-end.
INTRODUCTION
A guest user can only view the gifts present in this site .They may miss out the offers that is available on
this site. So to know more about the gifts and offers they have to register first. Then the guest user becomes
registered user and they can enjoy online gift shopping.
The role of administrator is to maintain stock details of the gifts. The admin also maintains registered user
details. Payment details are also maintained by the admin. When there is an offer it is the duty of the admin
to send mail or message to the user about offer sale.
The user can buy gifts 24/7 anywhere, anytime. The users save their time and energy at a mouse click. It is
user-friendly and easy to access.
2.PROJECT SCHEDULE
USECASE SPECIFICATION<LOGIN>
1. Usecase name
LOGIN
This usecase describes how the registered user logs into the online gift shop system.
1.2Flow of Events
This usecase starts when the registered user wishes to login to thesystem.
1.2.1.1 The system requests the registered user to enter username and password.
1.2.1.3 If the username and password are valid, then the system allows the registered
user to log into system and the homepage is displayed.
If the registered user enters an invalid username and password, then the system displays
an Error message. The registered user can choose either return to the beginning of the
basic flow or cancel the login at which point the usecase ends.
None
The registered user should own a login id and enter the username and password.
1.5 Post condition
If the usecase is successful, the registered user gives the valid username and password
then the user successfully enters into the system. If not the system state is unchanged.
None
USECASE SPECIFICATION<VIEW CATALOG DETAILS>
2. Usecase name
This usecase describes how the user (registered and guest) can view the gift items.
2.2.1Basic Flow
The usecase begins when the user wishes to view gift details.
2.2.1.1 The user needs to select from the list of options provided like model, color, and
size or based on price.
2.2.1.2 Based on the option selected by the user, the system will display the related gift
items.
None
None
If the usecase is successful, then the user can view the details of the gifts. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<SEARCH AN ITEM>
3. Usecase name
Search an Item
This usecase describes how the registered user can search a particular gift item.
The usecase begins when the registered user wishes to search particular gift.
3.2.1.1 The registered user needs to select from the list of options provided like based
on price, color, model using filter mechanism.
3.2.1.2 Based on the search option selected by the registered user, the system will
display the related gift items.
If a particular gift item is not found, the system generates the message called “No Item
Found”.
None
If the usecase is successful, then the registered user can search the details of the gift. If
not, the system state is unchanged.
None
USECASE SPECIFICATION<MAINTAIN THE CART>
4. UseCase Name
This usecase describes how the user can view or edit the cart.
This usecase starts when the user wishes to maintain the items from the cart.
4.2.1.1 The user can browse the catalog, view, add or remove items from the cart.
If an existing item is added to the cart, it shows a message “Already Item Exists”.
None
If the use case is successful, then the gift items will be added or removed. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<CONFIRM ORDER>
5. Usecase name
Confirm Order
This usecase describes how the registered user confirms the order.
5.2.1Basic Flow
The usecase begins when the user wishes to confirms the order.
5.2.1.1 The system requests the user to enter the personal details
5.2.1.5 The registered user selects online mode to pay for the
gifts.
If the registered user doesn’t enter any mandatory fields, then the system will display
incomplete registration and the system requests the user to enter all the fields.
None
If the usecase is successful, the gift items get added in the system. If not, the system state
is unchanged.
None
USECASE SPECIFICATION<REGISTERED>
6. Usecase name
Registered
This usecase describes how the guest user fills the registration form in the system.
This usecase starts when the guest user wishes to register the details.
6.2.1.1 The system requests the guest user to register their details like name, address,
email id & phone no.
6.2.1.3 The system validates the entered name and registers it.
6.2.1.4 Then the guest user enters into the system with the new username and
password.
If the guest user doesn’t enter any mandatory fields, then the system will display
incomplete registration and the system requests the guest user to enter all the details.
None
None
None
USECASE SPECIFICATION<MAINTAIN STOCK DETAILS>
7. UseCase Name
This usecase describes how the admin can maintain the stock details.
This usecase starts when the admin wishes to maintain the details of the stock.
The system requests the admin to select the option such as add, update or delete
information. Depending upon the selection appropriate option will be done
successfully.
If the admin doesn’t update any field, the system shows “Error Message”.
If the user id is not available, the system will generate the error message “No Record
Found”.
None
If the use case is successful, then the stock details are updated in the system. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<MAINTAIN REGISTERED USER DETAILS>
8. UseCase Name
This usecase describes how the admin can maintain the registered user details.
This usecase starts when the admin wishes to maintain the details about the registered
user.
The system requests the admin to select the option such as add, update or delete
information. Depending upon the selection appropriate option will be done
successfully.
Of the user
If the admin doesn’t update any field, the system shows “Error Message”.
If the user id is not available, the system will generate the error message “No Record
Found”.
None
If the use case is successful, then the user details are updated in the system. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<MAINTAIN PAYMENT DETAILS>
9. UseCase Name
This usecase describes how the clerk can maintain the employee details.
This usecase starts when the clerk wishes to maintain the employee details.
The system requests the clerk to select the option such as update or delete information.
Depending upon the selection appropriate option will be done successfully.
If the admin doesn’t update any field, the system shows “Error Message”.
If the gift model number is not available, the system will generate the error message “No
Record Found”.
None
If the use case is successful, then the payment details are updated in the system. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<SEND OFFER MAIL>
10.2.1Basic Flow
The usecase begins when the admin wishes to send an offer mail.
10.2.1.1 If there is any offer available on a special occasion, the admin has to send a
mail to the registered users.
None
If the usecase is successful, an offer mail is sent to the registered users. If not, the
system state is unchanged.
None
USECASE SPECIFICATION<GENERATE BILL>
Generate Bill
This usecase describes how the admin generates a bill when an order is confirmed.
The usecase begins when the admin wishes to generate a bill when an order is confirmed.
11.2.1.1 When a gift item is ordered, the bill is generated for that.
11.2.1.2 If the registered user order only one item, service charges plus tax is included.
11.2.1.3 If the items are purchased more than three, there are no service charges.
None
None
If the usecase is successful, then the admin checks how many orders are placed and
generates bill for each order. If not, the system state is unchanged.
None
Use Case Specification: <View Feedback>
12.4 Pre-Conditions
The user should be a registered user.
it won’t allow.
3. The Registered user can enter their feedback about the gifts.
13.4 Pre-Conditions
The user should be a registered user.
3.3.2RESOURCES REQUIREMENTS:-
Cabinet AT ATX
Rational administration
Rational requisite pro
Rational rose
4. SYSTEM DESIGN
4.1 USE CASE DIAGRAM
View Feedback
Search an item
Registered User
View Catalog Details
Login
User
Maintain Stock details
Registered
Guest User
Generate Bill
4.2 CLASS DIAGRAM
4.3 ACTIVITY DIAGRAM
LOGIN
Accepted
Display user
Homepage
VIEW CATALOG DETAILS
Display
Homepage
Display gift
catalog
search for
particular item
Display particular
No item found details
MAINTAIN CART DETAILS
Registered User
Login
select option
Enter product
detail
product detail is
entered
confirm detail
get registered
MAINTAIN REGISTEREDUSER DETAILS
Admin login
select option
Incomplete/blank [UPDATE]
field Enter the user [NotFound] "Error Message"
[check user detail]
ID "NoRecordFound"
"ErrorMessage"
Incorrect [Found]
[check details] Invalid Data
System retrieve
[check user Id] the user detail
[ correct ]
[invalid]
[ valid ]
Store the detail
Retrieve the Confirm to
User detail delete
Admin login
select option
Incomplete/blank
[check product detail] field [Not Found]
[check productdetail] No record
[In correct] Found
[ correct ] [Found]
Admin confirm
System retrieves the
to delete
payment detail
Update the
payment detail
MAINTAIN STOCK DEAILS
Admin login
Select option
[ADD] [DELETE]
[UPDATE]
[invalid]
Invalid data [not found] No record found
Add stock validate check item
[valid] [found]
Select feedback
menu
Select feedback
menu
feedback is
added
5. DESIGN
5.1 SEQUENCE DIAGRAM
LOGIN
validate
Login successful
REGISTERED
validate
Registration successfull
VIEW CATALOG DETAILS
Validate
add( )
Added successfully
Validate
delete( )
Deleted successfully
CONFIREM ORDER
Booking Confirmed
GENERATE BILL
Num of item < 3 calculate tax & service charge and generate bill
MAINTAIN STOCK DETAILS
Added successfully
validate
Deleted successfully
validate
Updated sucessfully
MAINTAIN REGISTEREDUSER DETAILS
Added Successfully
Updated successfully
MAINTAIN PAYMENT DETAILS
validate
Updated successfully
validate
Deleted successfully
SEND OFFER MAIL
check
recevied()
5.2 DATABASE DESIGN
LOGIN
REGISTERED
CATALOG
STOCK
PAYMENT
OFFER MAIL
HOMEPAGE
SIGNUP
VIEW CATALOG
STOCK DETAILS
PAYMENT DETAILS
REGISTEREDUSER DETAILS
OFFER DETAILS
VIEW FEEDBACK
ENTER FEEDBACK
6. IMPLEMENTATION
SIGNUP
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassSignup : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
string gender;
}
}
}
LOGIN
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace Online_gift_shopss
{
publicpartialclassLogin : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
else
{
MessageBox.Show("Invalid Login");
}
}
elseif (DropDownList1.Text == "User")
{
dbconnection.database();
cmd = newSqlCommand("select * from register where name='" +
TextBox2.Text + "' and pwd='" + TextBox1.Text + "'", dbconnection.con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
MessageBox.Show("Welcome to online gift shop");
Session["username"] = TextBox2.Text.Trim();
Response.Redirect("usermenu.aspx");
}
else
{
MessageBox.Show("Invalid login");
}
}
}
protectedvoid CustomValidator1_ServerValidate(object source, ServerValidateEventArgs
args)
{
}
}
}
FORGOT PASSWORD
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace Online_gift_shopss
{
publicpartialclassFordet : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
CONFIRM ORDER
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassPayment : System.Web.UI.Page
{
string v;
SqlCommand cmd;
SqlDataReader dr;
string cart;
protectedvoid Page_Load(object sender, EventArgs e)
{
if (Session["username"] != null)
{
Label3.Text = Convert.ToString(Session["username"]);
Textbox2.Text = Convert.ToString(Session["username"]);
}
else
{
}
if (Session["productid"] != null)
{
Textbox5.Text = Convert.ToString(Session["productid"]);
}
else
{
}
if (Session["amount"] != null)
{
Textbox3.Text = Convert.ToString(Session["amount"]);
}
else
{
}
Textbox4.Text = DateTime.Now.ToString("dd/MM/yyyy");
dbconnection.database();
cmd = newSqlCommand("insert into payment
values('"+Textbox2.Text+"','"+Textbox5.Text+"','"+Textbox3.Text+"','"+Textbox4.Text+"',
'"+v+"')",dbconnection.con);
cmd.ExecuteNonQuery();
dbconnection.con.Close();
MessageBox.Show("Confirm Success");
dbconnection.database();
cmd = newSqlCommand("select count(customername) as counts from
payment",dbconnection.con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
cart=dr["counts"].ToString();
Session["counts"] = cart;
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassStockDetails : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
int a,b;
string id;
}
else
{
dbconnection.database();
cmd = newSqlCommand("select * from productid", dbconnection.con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
id = dr["productid"].ToString();
a = Convert.ToInt32(id);
}
}
b = a + 1;
TextBox3.Text = Convert.ToString(b);
}
}
dbconnection.database();
cmd = newSqlCommand("insert into productid
values('"+TextBox3.Text+"')",dbconnection.con);
cmd.ExecuteNonQuery();
dbconnection.con.Close();
TextBox3.Text = "";
TextBox2.Text = "";
TextBox1.Text = "";
}
}
TextBox3.Text = "";
TextBox2.Text = "";
TextBox1.Text = "";
dbconnection.database();
cmd = newSqlCommand("select * from productid", dbconnection.con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
id = dr["productid"].ToString();
a = Convert.ToInt32(id);
}
}
b = a + 1;
TextBox3.Text = Convert.ToString(b);
TextBox3.Text = "";
TextBox2.Text = "";
TextBox1.Text = "";
dbconnection.database();
cmd = newSqlCommand("select * from productid", dbconnection.con);
dr = cmd.ExecuteReader();
if (dr.HasRows)
{
while (dr.Read())
{
id = dr["productid"].ToString();
a = Convert.ToInt32(id);
}
}
b = a + 1;
TextBox3.Text = Convert.ToString(b);
}
}
}
REGISTEREDUSER DETAILS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace Online_gift_shopss
{
publicpartialclassViewregister : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;
SqlDataReader dr;
}
else
{
dbconnection.database();
cmd = newSqlCommand("select distinct name from register",
dbconnection.con);
da = newSqlDataAdapter(cmd);
ds = newDataSet();
da.Fill(ds, "register");
DropDownList1.DataSource = ds.Tables["register"];
DropDownList1.DataValueField = "name";
DropDownList1.DataBind();
dbconnection.con.Close();
}
dbconnection.database();
cmd = newSqlCommand("update register set gender='" + TextBox2.Text +
"',address='" +TextBox1.Text+ "',phoneno='" + TextBox4.Text +
"',emailid='"+TextBox3.Text+"' where name='" +DropDownList1.Text+ "'",
dbconnection.con);
cmd.ExecuteNonQuery();
dbconnection.con.Close();
MessageBox.Show("Update data");
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
TextBox4.Text = "";
}
}
}
PAYMENT DETAILS
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassViewpayment : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataAdapter da;
SqlDataReader dr;
DataSet ds;
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Net;
using System.Net.Mail;
using System.Text;
namespace Online_gift_shopss
{
publicpartialclassOffers : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
SqlDataAdapter da;
DataSet ds;
}
else
{
dbconnection.database();
cmd = newSqlCommand("select distinct name from register",
dbconnection.con);
da = newSqlDataAdapter(cmd);
ds = newDataSet();
da.Fill(ds, "register");
DropDownList1.DataSource = ds.Tables["register"];
DropDownList1.DataValueField = "name";
DropDownList1.DataBind();
dbconnection.con.Close();
}
}
TextBox2.Text = dr["emailid"].ToString();
}
}
}
builder.Append("<br/>");
builder.Append("Offers :" + TextBox1.Text);
builder.Append("<br/>");
builder.Append("</pre>");
mail1.Body = builder.ToString();
mail1.IsBodyHtml = true;
SmtpClient smtp1 = newSmtpClient();
smtp1.Host = "smtp.gmail.com";
smtp1.Credentials = new
System.Net.NetworkCredential("chindhusolaiyappan@gmail.com",
"smaackrschin593");
smtp1.EnableSsl = true;
smtp1.Send(mail1);
}
}
}
VIEW FEEDBACK
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassViewfeedback : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataAdapter da;
DataSet ds;
SqlDataReader dr;
}
else
{
dbconnection.database();
cmd = newSqlCommand("select distinct customername from feedback",
dbconnection.con);
da = newSqlDataAdapter(cmd);
ds = newDataSet();
da.Fill(ds, "feedback");
DropDownList1.DataSource = ds.Tables["feedback"];
DropDownList1.DataValueField = "customername";
DropDownList1.DataBind();
dbconnection.con.Close();
}
}
protectedvoid Button3_Click(object sender, EventArgs e)
{
Response.Redirect("Default.aspx");
}
}
}
}
ENTER FEEDBACK
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace Online_gift_shopss
{
publicpartialclassFeedback : System.Web.UI.Page
{
SqlCommand cmd;
SqlDataReader dr;
}
else
{
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Online_gift_shopss
{
publicpartialclassAdminmenu : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace Online_gift_shopss
{
publicpartialclassusermenu : System.Web.UI.Page
{
protectedvoid Page_Load(object sender, EventArgs e)
{
if (Session["username"] != null)
{
Label4.Text = Convert.ToString(Session["username"]);
}
else
{
}
}
Testing is the major quality control measure employed during software development. Its basic function is to
detect errors. Testing is the process of executing a program with the intention of finding errors. It is complete
verification to detect whether the objective is met and the user requirements are satisfied. After the coding phase,
testing is done to test the proper working of the new system. Testing represents the ultimate review of specification,
design and coding. Thus the goal of testing is to uncover the requirements, design encoding errors in the program.
System testing is actually a series of different test whose primary purpose is to fully exercise the computer-
based program.
1. Unit Testing
2. Integration Testing
3. Validation Testing
7.1. UNIT TESTING
Unit testing involves the design of test cases that validate the internal program logic is functioning properly,
and that program input produces valid outputs. All decision branches and internal code flow should be validated. It is
the testing of individual unit before integration. This is a structural testing, that relies on knowledge of its construction
and is invasive. Unit test perform basic tests at component level and test a specific business process, application, and/or
system configuration. Unit tests ensure that each unique path of a business process performs accurately to the
documented specifications and contains clearly defined inputs and expected results. In the lines of this strategy all, the
individual functions and modules were put to the independently. By following this strategy all, the errors in coding
were identified and corrected.
Unit testing is a procedure used to validate the individual units of source code is working properly. The goal of
unit testing is to isolate each part of the program and show that the individual parts are correct. A unit test provides a
strict, written contract that the piece of code must satisfy. As a result, it affords server benefits.
Unit testing is typically done by software developers to ensure that the code they have written meets software
requirements and behaves as the developer intended. Each unit of the system implemented in the source code is
checked for correctness. All error-handling paths are tested. User authentication form and other each individual
modules form are taken as independently. Here login and organization form are taken as smallest unit.
S. Test Condition Expected Result Actual Result Result
No
1. Check whether the It displays the message welcome It displays the message Success
username and password to online gift . welcome to online gift shop.
provided by the
customer matches each
other.
S. Test Condition Expected Result Actual Result Result
No
1. Check whether the customer It displays the message It displays the message Success
fills all the columns. Registered success. Registered success.
7.2. VALIDATION TESTING
Validation testing is done to validate the inputs given by the user. The user inputs are checked for their
correctness and range. If there are errors, the error message is given and the user is prompted again to enter the new
value. If the user types some characters in the numeric and an error message and it is demonstrated in the following
figure.
TC.ID Test Condition Test Input Expected Result Actual Result Result
VT-1.1 Check whether Empty field It displays the error It displays the error Success
the username is message as please message as please
empty in the login enter username enter username
process
VT-1.2 Check whether Empty field It displays the error It displays the error Success
the password is message as please message as please
empty in the login enter password. enter password .
process
VT-1.3 Check whether Incorrect It displays the error It displays the error Success
the username and username and message as enter message as enter
password is password valid username and valid username and
incorrect password password
VT-1.4 Check whether Incorrect It displays the error It displays the error Success
username and username and message as Please message as Please
password is password register first. register first.
matched
7.3. INTEGRATION TESTING
Testing is done for each module. After testing all the modules, the modules are integrated and testing of the
final system is done with the test data, specially designed to show that the system will operate successfully in all its
aspects conditions. Thus the system testing is a confirmation that all is correct and an opportunity to show the user that
the system works.
8. DELOYMENT
This project has given to me some wonderful experience and made me familiar to work with ASP.Net.
I learnt how to make database connection in an efficient manner. This project also helped me to gain
knowledge about system analysis and system designing software’s like rational rose. Through this project I
learnt various testing methodologies like unit testing, validation testing, integration testing and debugging. I
learnt new concepts in ASP.Net and how to work with SQL connectivity and code writing procedure.
9. FUTURE PLAN
It is not possible to develop a system that makes all the requirements of the user. The user requirements are
keep on changing as the system is being used. Some of the future enhancements that can be done to the system are
References for the project development were taken from the following Books and Websites.
BOOKS
1. MICROSOFT ASP.NET
SHAM SERIES
WEB SITES
www.pureasp.net.com
www.microsoftsqlserver.com
www.w3schools.com