COVER PAGE OF THE PROJECT REPORT
PROJECT REPORT ON
HOTEL RESERVATION SYSTEM
1
TABLE OF CONTENTS 1. Introduction/Objectives…………………………………………............6 2. Sste! An"#sis 2.1 Identi$ic"tion o$ Need………………………………………………%&' 2.2 (re#i!in"r Investi)"tion……………………………………............' 2.* Fe"sibi#it Stud…………………………………………………..+&12 2., (roject Sc-edu#in)………………………………………………1*&16 2. SS………………………………………………………………1%&2, 2.6 So$t0"re En)ineerin) ("r"di)!…………………………………2&26 2.% "t" ode#s…………………………………………………….2%&*2 *. Sste! esi)n *.1 odu#"ris"tion………………………………………………..…**&*6 *.2 "t"b"se esi)n………………………………………………....*%&,3 *.* 4ser Inter$"ce esi)n…………………………………………....,1&,* *., Test C"ses 54nit Test C"ses "nd Sste! Test C"ses…….……..,,&, ,. Codin)……………………………………………………………….,6&,' ,.1 S"!7#e (roject Codin)…………………………………………..,'&1 ,.2 Co!!ents "nd escri7tion o$ Codin) Se)!ents…………….....2&* ,.* Error 8"nd#in)………………………………………..…………….., ,., ("r"!eters C"##in)/7"ssin)…………………………………………, ,. 9"#id"tion c-ec:s…………………………………..……………&6 . Testin) .1 Testin) Tec-ni;ues "nd Testin) Str"te)ies used…………….…..%&' .2 Test e7orts 54nit Test C"ses "nd Sste! Test C"ses…………'&61 6. Sste! e"sures 6.1 "t"Securit Securit…………………………………………………….62&6* %. e7orts………………………………………………………………6,&6 '. Future Sco7e "nd Furt-er En-"nce!ent o$ t-e (roject…………………66 +. Bib#io)r"7-…………………………………………………………….6% 13.
2
Introduction
STE is deve#o7ed $o##o0in) sste! deve#o7!ent st")es $or s!oot- runnin) "nd !"n")e!ent o$ t-e -ote#. T-e sste! 0"s c"re$u## desi)ned to ensure !"?i!u! e$$icienc o$ t-e sste! "t t-e -ote#. T-e sste! c"ns:i#$u## "nd c"re$u## coded to se"# "n 7ossib#e #oo7-o#es in t-e sste!. T-e sste! 0i## indeed -e#7 t-e -ote# !"n")e!ent "nd t-e estee!ed st"$$ !e!bers to !"n")e "nd steer t-e -ote#@s $unction"#it "nd tr"ns"ctions to re"#ie its !"?i!u! 7otenti"# in "ddition to its co!7etence in t-e -ote# business $ie#d. T-e objective o$
T8E BASIC OBDECTI9ES OF T8E (O(OSE S>STE 1. To en"b#e on#ine boo:in) vi" t-e internet. 2. To en"b#e "uto!"ted d"t" entr !et-ods. *. Ensure e$$icient "nd re#i"b#e co!!unic"tion 0it-in t-e -ote#. ,. Avoid d"t" entr errors b use o$ in7ut !"s:s. . En"b#e e"s "ut-oried !odi$ic"tion o$ d"t". 6. En$orce securit !e"sures to "void un"ut-oried "ccess to )uest records. %. En"b#e $"st "nd e"s retriev"# o$ )uest records "nd d"t" $or $"st re$erence "ctivities.
3
S>STE ANAL>SIS Identification of Need: T-e current !"nu"# sste! uses 7"7er0or: "nd direct -u!"n #"n)u")e co!!unic"tion b !out- to !"n")e t-e -ote#. T-is de#"s in$or!"tion tr"ns!ission in t-e -ote#. Boo:in) is done t-rou)- 7-one c"##s or t-rou)- visit to t-e -ote# boo:in) o$$ice. T- e )uest@s 7erson"# det"i#s suc- "s N"!e A)e N"tion"#it "nd ur"tion o$ st" "re in7ut durin) boo:in) in. T-e boo:in) o$$ice orders $or 7re7"r"tion o$ t-e )uest@s roo! be$ore -is/ -er c-ec: in d"te. T-e docu!ents "re tr"ns$erred !"nu"## to t-e $i##in) de7"rt!ent $or co!7i#"tion o$ t-e )uest@s $i#e. On t-e re7ortin) d"te t-e $i#e is tr"ns$erred to t-e rece7tion. On c-ec:in) in t-e )uest is )iven t-e :e to -is "##oc"ted roo! -e "#so s7eci$ i$ -e needs roo! service. T-e rece7tionist -"nds over t-e )uest@s $i#e to t-e "ccount"nt on t-e ne?t t"b#e. 8ere t-e )uest 7"s "cco!!od"tion "nd !e"#s $ee. T-e )uest@s $i#e is u7d"ted on d"i# b"sis o$ -is e?7enditure T-e "ccounts )ener"tes on7"s d"i#"tb"sis "nd de#ivered t-e )uests incosts. t-eir roo!s "t des: de7"rt!ent b t-e service !"ids. t-e T-ebi##s )uest t-e "ccounts des: to 0-ere t-e recei7ts "re )ener"ted.
urin) c-ec:in) out o$ )uests t-eir e?7enditure out#ines "re )ener"ted " d" be$ore c-ec: out d"te. T-e )uests receive t-eir out#ines "t t-e "ccounts des: "s t-e c-ec: out 0-ere t-e 7" $or bi##s b"#"nces i$ "n. (OBLES IN T8E AN4AL S>STE 1. Difficulty in location of guest files: due to t-e #"r)e nu!ber o$ )uests@ $i#es #oc"tion o$ )uest $i#es durin) c-ec:in) in u7d"tin) o$ d"i# e?7enditures recei7t )ener"tion "nd c-ec:in) out is e?tre!e# di$$icu#t $or t-e -ote# e!7#oees. 2. Large storage space: t-e 7-sic"# $i#es occu7 too !uc- s7"ce o$ "bout t0o roo!s $u## o$ stor")e c"binets. T-is occu7ies t-e -ote#@s s7"ce t-"t cou#d -"ve ot-er0ise been used $or inco!e )ener"tion b t-e -ote#. *. Human and computational errors: !"n errors en"b#ed b t-e sste! due to tedious co!7ut"tions re;uired durin) d"t" 7rocessin) cost t-e -ote# !"n")e!ent -e"vi#. odi$ic"tion )ener"tes dirt "nd un7resent"b#e re7orts ,. Poorly generated records: 7oor# )ener"ted records encour")e o!ission o$ so!e i!7ort"nt d"t" b t-e e!7#oees. Suc- d"t" "s t-e )uests@ #u))")e is o!itted. T-is #e"ds to securit 7rob#e!s "t t-e -ote# suc- "s "r!ed robberies. . Complains from guests: due to 7oor !"n")e!ent o$ docu!ents encour")ed b t-e !"nu"# sste! sever"# c"ses 0ere re7orted 0-ere )uests co!7#"ined o$ overc-"r)in) c-"r)in) o$ services not used b t-e )uests. 6. Poor communication: due to 7oor co!!unic"tion bet0een t-e de7"rt!ents )uests "re o$ten served 0it- services t-e didn@t order.
4
%. Difficulty in data analysis: T-e "ccount"nts usu"## $ound it di$$icu#t to "n"#se t-e )uests@ d"t" durin) )ener"tion o$ e?7enditure bi##s due to !issin) o$ so!e records. '. "t" entr 7rocedure is 7rone to errors. T8E A9ANTA=ES OF T8E (O(OSE S>ST>E .
1. T-e sste! en"b#es e"s "nd $"st "ccess to t-e )uest $i#es. 2. T-e sste! 7rovides better d"t" !"n")e!ent $"ci#ities. *. T-e sste! en"b#e on#ine boo:in) o$ )uests into t-e -ote# -ence intern"tion"# )uests c"n e"si# boo: into t-e -ote#. ,. T-e sste! 7rovides 7er$or!"nce ev"#u"tion o$ t-e e!7#oees to ensure !"?i!u! out7ut $ro! t-e e!7#oees. . T-e sste! 7rovides securit !e"sures to "ccess to t-e -o te#@s in$or!"tion #o0erin) d"t" securit t-re"ts. 6. T-e sste! -e#7 reduce t-e con)estion o$ )uests ensurin) best service out7ut $or custo!er s"tis$"ction 7ur7oses. %. E"s u7d"te o$ t-e )uest records. '. 8i)- custo!er service st"nd"rds "ttr"ct !ore )uests to t-e -ote#. +. eduction o$ d"t" entr "nd 7rocessin) errors. 13. =re"t# reduce 7"7er use "t t-e - ote#.
Prei!inar" In#e$ti%ation
T-e 7roject entit#ed On#ine 8ote# eserv"tion is " 0eb b"sed sste! 0-ic- $"ci#it"tes on#ine reserv"tion o$ -ote# "cco!!od"tions $ro! "n0-ere in t-e 0or#d. I$ " 7erson 0"nts to reserve -is "cco!!od"tion -e 0ou#d to :no0 t-e #ist o$ -ote#s in t-e cit -e 0"nts to visit di$$erent "!enities 7rovided in e"c- -ote# t-e di$$erent t7es o$ roo!s "v"i#"b#e t-e r"tes o$ t-ose roo!s t-e constr"ints o$ t-e -ote# "nd $in"## t-e "v"i#"bi#it o$ t-e desired roo!s on t-e desired r"te. 8e !" "c-ieve "## t-is t-rou)- tr"ve# ")encies t-e )uides "v"i#"b#e b !":in) en;uiries in 7erson b !":in) en;uiries t-rou)- te#e7-one. I$ -e 0"nts to !":e " c-oice bet0een t-e -ote#s -e -"s to re7e"t t-e 0-o#e 7rocess $or " nu!ber o$ -ote#s .A$ter bein) s"tis$ied 0it- t-e c-oice -e -"s to con$ir! -is reserv"tion b 7"in) t-e "!ount 7erson"## or t-rou)- !idd#e 7ersons. T-is 7rocess is #"borious "nd -is c-oice is#i!ited. So 0e $ound t-e necessit o$ 7rovidin) "## t-e in$or!"tion "nd t-e $"ci#it to reserve -is "cco!!od"tion t-rou)- t-e net so t-"t !"?i!u! s"tis$"ction is "c-ieved b t-e custo!er 0it- #e"st e$$ort. T-e so#ution 0e "re 7rovidin) to t-is is to desi)n " 0ebsite t-"t cont"ins in$or!"tion "bout v"rious cities "nd t-e re7uted -ote#s in e"c- cit "#on) 0it- t-e $"ci#ities t7es o$ roo!s "nd t-eir r"tes. T-e tourist c"n "#so c-oose t-e -ote# o$ -is interest
5
Fea$i&iit" Stud" Accordin) to t-is $e"sibi#it stud t-is re7ort is inte)r"ted 0it- so!e i!7ort"nt 7oints. T-ose 7oints "re • • •
e$inition/7ur7ose o$ " $e"sibi#it stud. -o conducts t-e $e"sibi#it stud Co!7onents o$ " $e"sibi#it stud $or " 8ote# eserv"tion sste!.
T-is re7ort -"s 0ritten $or " 8ote# eserv"tion sste!. T-e !"in object o$ 7re7"rin) t-is docu!ent is to )ive t-e c#e"r ide"s "bout c-"n)es "nd !odi$ic"tions o$ t-eir ne0 sste! $or user.
'efinition(Pur)o$e of a Fea$i&iit" Stud"
A $e"sibi#it stud is de$ined "s "n esti!"te or "n"#sis o$ t-e 7ossib#e i!7"ct o$ " 7ro7osed sste!. In t-e ot-er -"nd 0e c"n s" t-"t 0-et-er decision !":ers c"n i!7#e!ent t-e 7roject "ccordin) to custo!er@s re;uire!ents or not. T-e $e"sibi#it stud 0i## inc#ude 0ide d"t" "ssoci"ted to $in"nci"# "nd o7er"tion"# i!7"ct. It "#so consisted 0it- "dv"nt")es o$ ne0 sste! "nd dr"0b"c:s o$ current sste!. T-e $e"sibi#it stud is conducted to su77ort t-e decision&!":ers in cre"tin) t-e decisions 1. -"t 0i## be t-e )re "t i!7ort"nce o$ t-e -ote # reserv"tion sste! 2. -"tever t-e decision t-"t t-e t":e it s-ou#d i!7rove t-e ;u"#it o$ deve#o7in) sste! *+o Conduct$ t+e Fea$i&iit" Stud",
Accordin) to t-e 7roject $e"sibi#it stud !" be conducted b t-e 8ote# reserv"tion "n")er. T-e -ote# reserv"tion !"n")er over "nd over ")"in does not -"ve t-e ti!e re;uired to 7er$or! in det"i# "n"#sis re;uired to co!7#ete " $e"sibi#it stud. A#so t-e director !" #"c: t-e :no0#ed)e essenti"# $or co!7#etin) t-e stud. T-ere$ore " s7eci"#ist o$ten is -ired to 7er$or! t-e $e"sibi#it stud. T-e individu"# conductin) " $e"sibi#it stud s-ou#d -"ve t-e $o##o0in) c-"r"cteristics
• • •
E?7erience in conductin) $e"sibi#it studies. E?7erience in 8ote# reserv"tion sste! o7er"tion. S-ou#d -"ve t-e "bi#it !":e decisions 0-"tever t-e !ost suit"b#e. 6
Co!)onent$ of a Fea$i&iit" Stud" for a Hote Re$er#ation S"$te!
T-e $e"sibi#it stud $or " 7ro7osed reserv"t ion sste! 0i## be 0ides7re"d. T-ere "re sever"# co!7onents t-"t s-ou#d be inc#uded in t-e stud "nd e"c- 0i## be discussed.
-ac.%round Infor!ation
So!e b"c:)round or settin) in$or!"tion is i!7ort"nt to 7rovide t-e circu!st"nce o$ t-e $e"sibi#it stud. Inc#uded in t-e b"c:)round in$or!"tion
•
Accordin) to our investi)"tion 0e -"ve c-osen one o$ t-e best business c#"ss -ote#s. Tot"## it -"s *33 roo!s 0it- inc#udin) 16 suites "#so. Accordin) to t-e IT !"n")er@s ide" t-e -"vin) so!e doubts 0it- t-eir reserv"tion sste!. It@s not " ver user $riend# one. ":e one o$ t-e best "nd e$$ective reserv"tion sste! $or co!7"n is !"in )o"# o$ !":e t-is sste!.
Pro)o$ed Onine Hote Re$er#ation S"$te!
•
escri7tion o$ t-e Sste! B"sic"## t-is sste! -"s t0o inter$"ces. T-ose "re $ront end "nd b"c: end.
Front end
C-ec:&ind"te
C-ec:&outd"te
/oo!s
T-ese "re t-e !ost b"sic $unction"#ities t-"t "77e"r in $ront end.
7
B"c: end5/eserv"tion st"$$6
Arriv"# #ist
Av"i#"bi#it
Fo##o0 u7 re7ort
T-ese "re t-e b"sic $unctions t-"t inc#ude in b"c: end sste!. . FEASIBILIT> ST4> /01 ECONOMIC FEASI-ILITY Econo!ic "n"#sis is !ost $re;uent# used $or ev"#u"tion o$ t-ee$$ectiveness o$ t-e sste!. ore co!!on# :no0n "s cost/bene$it "n"#sist-e 7rocedure is to deter!ine t-e bene$it "nd s"vin) t-"t "re e?7ected $ro! "sste! "nd co!7"re t-e! 0it- costs decisions is !"de to desi)n "ndi!7#e! ent t-e sste!.T-is 7"rt o$ $e"sibi#it stud )ives t-e to7 !"n")e!ent t-e econo!icjusti$ic"tion $or t-e ne0 sste!. T-is is "n i!7ort"nt in7ut to t-e!"n")e!ent t-e !"n")e!ent bec"use ver o$ten t-e to7 !"n")e!ent doesnot #i:e to )et con$ounded b t-e v"rious tec-nic"#ities t-"t bound to be"ssoci"ted 0it- " 7roject o$ t-is :ind. A si!7#e econo!ic "n"#sis t-"t )ivest-e "ctu"# co!7"rison o$ costs "nd bene$its is !uc- !ore !e"nin)$u# in suc-c"ses. In t-e sste! t-e or)"ni"tion is !ost s"tis$ied b econo!ic $e"sibi#it.Bec"use i$ t-e or)"ni"tion i!7#e!ents t-is sste! it need not re;uire "n"ddition" # -"rd0"re resources "s 0e## "s it 0i## be s"vin) #ot o$ ti!e. 201 TECHNICAL FEASI-ILITY Tec-nic"# $e"sibi#it centres on t-e e?istin) !"nu"# sste! o$ t-e test!"n")e!ent 7rocess "nd to 0-"t e?tent it c"n su77ort t-e sste!.Accordin) to $e"sibi#it "n"#sis 7rocedure t-e tec-nic"# $e"sibi #it o$ t-esste! is "n"#sed "nd t-e tec-nic"# re;uire!ents suc- "s so$t0"re $"ci#ities7rocedure in7uts "re identi$ied. It is "#so one o$ t-e i!7ort"nt 7-"ses o$ t-e sste! deve#o7!ent "ctivities.T-e sste! o$$ers )re"ter #eve#s o$ user $riend#iness co!bined 0it)re"ter7rocessin) s7eed. T-ere$ore t-e cost o$ !"inten"nce c"n be reduced. Since 7rocessin) s7eed is ver -i)- "nd t-e 0or: is reduced in t-e !"inten"nce7oint o$ vie0 !"n")e!ent convince t-"t t-e 7roject is o7er"tion"## $e"sib#e. 31 -EHAVIO4RAL FEASI-ILITY (eo7#e "re in-erent# resist"nt to c-"n)e "nd co!7uter -"s been :no0n to$"ci#it"te c-"n)es.
An esti!"te s-ou#d be !"de o$ -o0 stron) t-e user is#i:e# to !ove to0"rds t-e deve#o7!ent o$ co!7uteried sste!. T-ese "rev"rious #eve#s o$ users in order to ensure 7ro7er "ut-entic"tion "nd"ut-ori"tion "nd securit o$ sensitive d"t" o$ t-e or)"ni"tion.
8
, OPERATIONAL FEASI-ILITY: T-e 7ur7ose o$ t-is 7roject is to deve#o7 " eb b"sed sste! 0-ic- $"ci#it"tes on #ine reserv"tion o$ -ote# "cco!!od"tion $ro! "n0-ere in t-e 0or#d. T-e "ctivities o$ t-e sste! suc- "s d"t" entr in$or!"tion retriev"# u7d"tin) "nd de#etion o$ records $ro! v"rious t"b#es etc. "re !"de e"s .A## t-e o7er"tors o$ t-is 7roject "re tr"ined in t-is "re". So t-is 7roject is o7er"tion"# $e"sib#e.
9
(ODECT SC8E4LIN=
PERT CHART
T-e Pro%ra! 5or
Pro5ect E#auation and Re#ie6 Tec+ni7ue co!!on#
"bbrevi"ted PERT is " !ode# $or 7roject !"n")e!ent desi)ned to "n"#e "nd re7resent t-e t"s:s invo#ved in co!7#etin) " )iven
7roject. It is co!!on# used in conjunction 0it- t-e
critic"# 7"t- !et-od or CPM0 (ET is " !et-od to "n"#e t-e invo#ved t"s:s in co!7#etin) " )iven 7roject es7eci"## t-e ti!e needed to co!7#ete e"c- t"s: "nd identi$in) t-e !ini!u! ti!e needed to co!7#ete t-e tot"# 7roject. (ET 0"s deve#o7ed 7ri!"ri# to si!7#i$ t-e 7#"nnin) "nd sc-edu#in) o$ #"r)e "nd co!7#e? 7rojects. It 0"s deve#o7ed $or t-e 4.S. N"v S7eci"# (rojects O$$ice in 1+% to su77ort t-e 4.S. N"vGs (o#"ris nuc#e"r sub!"rine 7roject. H1 It 0"s "b#e to incor7or"te uncert"int b !":in) it 7ossib#e to sc-edu#e " 7roject 0-i#e not :no0in) 7recise# t-e det"i#s "nd dur"tions o$ "## t-e "ctivities. It is !ore o$ "n event&oriented tec-ni;ue r"t-er t-"n st"rt& "nd co!7#etion&oriented "nd is used !ore in 7rojects 0-ere ti!e r"t-er t-"n cost is t-e !"jor $"ctor. It is "77#ied to ver #"r)e&sc"#e one&ti!e co!7#e? non&routine in$r"structure "nd ese"rc- "nd eve#o7!ent 7rojects. An e?"!7#e o$ t-is 0"s $or t-e
1+6'
inter O#!7ics in =renob#e 0-ic- "77#ied (ET $ro! 1+6 unti# t-e o7enin) o$ t-e 1+6' ="!es. T-is 7roje ct !ode # 0"s t-e $ir st o$ its :ind " reviv"# $or scienti$ic !"n")e!ent $ounded b Frederic: T"#or "nd #"ter re$ined b 8enr Ford 5 Fordis!. u(ont cor7or"tionGscritic"# 7"t- !et-od 0"s invented "t rou)-# t-e s"!e ti!e "s (ET.
10
11
GANTT CHART:
A Gantt c+art is " t7e o$ b"r c-"rt t-"t i##us tr"tes " 7roject sc-edu#e. ="ntt c-"rts i##ustr"te t-e st"rt "nd $ini s- d"tes o$ t-e ter!in"# e#e!ents "nd su!!"r e#e!ents o$ " 7roject. Ter!in"# e#e!ents "nd su!!"r e#e!ents co!7rise t-e 0or: bre":do0n structure o$ t-e 7roject. So!e ="ntt c-"rts "#so s-o0 t-e de7endenc 5i.e. 7recedence net0or: re#"tions-i7s bet0een "ctivities. ="ntt c-"rts c"n be used to s-o0 current sc-edu#e st"tus usin) 7ercent&co!7#ete s-"din)s "nd " vertic"# JTOA>J #ine "s s-o0n -ere. A#t-ou)- no0 re)"rded "s " co!!on c-"rtin) tec-ni;ue ="ntt c-"rts 0ere considered revo#ution"r 0-en t-e 0ere introduced. In reco)nition o$ 8enr ="nttGs contributions t-e 8enr L"urence ="ntt ed"# is "0"rded $or distin)uis-ed "c-ieve! ent in !"n")e!ent "nd in co!!unit service. T-is c-"rt is used "#so in In$or!"tion Tec-no#o) to re7resent d"t" t-"t -"ve been co##ected. A co!!on error !"de b t-ose 0-o e;u"te ="ntt c-"rt desi)n 0it- 7roject desi)n is t-"t t-e "tte!7t to de$ine t-e 7roject 0or: bre":do0n structure "t t-e s"!e ti!e t-"t t-e de$ine sc-edu#e "ctivi ties. T-is 7r"ctice !":es it ver di$$ icu#t to $o##o0 t-e 133K u#e. Inste"d t-e BS s-ou#d be $u## de$ined to $o##o0 t-e 133K u#e t-en t-e 7roject sc-edu#e c"n be desi)ned. A#t-ou)- " ="ntt c-"rt is use$u# "nd v"#u"b#e $or s!"## 7rojects t-"t $it on " sin)#e s-eet or screen t-e c"n beco!e ;uite un0ie#d $or 7rojects 0it- !ore t-"n "bout *3 "ctivities. L"r)er ="ntt c-"rts !" not be suit"b#e $or !ost co!7uter dis7#"s. A re#"ted criticis! is t-"t ="ntt c-"rts co!!unic"te re#"tive# #itt#e in$or!"tion 7er unit "re" o$ dis7#". T-"t is 7rojects "re o$ten consider"b# !ore co!7#e? t-"n c"n be co!!unic"ted e$$ective# 0it- " ="ntt c-"rt. ="ntt c-"rts on# re7resent 7"rt o$ t-e
tri7#e constr"ints 5cost
ti!e "nd sco7e o$ 7rojects bec"use t-e $ocus 7ri!"ri# on sc-edu#e !"n")e!ent. oreover ="ntt c-"rts do not re7resent t-e sie o$ " 7roject or t-e re#"tive sie o$ 0or: e#e!ents t-ere$ore t-e !")nitude o$ " be-ind&sc-edu#e condition is e"si# !iss co!!unic"ted. I$ t0o 7rojects "re t-e s"!e nu!ber o$ d"s be-ind sc-edu#e t-e #"r)er 7roject -"s " #"r)er i!7"ct on resource uti#i"tion et t-e ="ntt does not re7resent t-is di$$erence.
12
/0Initia In#e$ti%ation 839 +r$1 20Fea$i&iit" Stud" 839 +r$1 30S"$te! Ana"$i$ 89 +r$1 ;0S"$te! 'e$i%n 8/99 +r$1 <0Codin% 8/9 +r$1
0Te$tin% 839 +r$1
=0I!)e!entation 829 +r$1 >0Po$t I!)e!entation 839 +r$1 ?0Fini$+
13
SOFTAE E4IEENTS S(ECIFICATION
Onine Hote Re$er#ation S"$te! /0 Introduction T-e $o##o0in) subsections o$ t-e So$t0"re e;uire!ents S7eci$ic"tions 5SS docu!ent 7rovide "n overvie0 o$ t-e entire SS.
/Pur)o$e T-e So$t0"re e;uire!ents S7eci$ic"tion 5SS 0i## 7rovide " det"i#ed descri7tiono$ t-e re;uire!en ts $or t-e 8ote# eserv"tion Sste! 58 S. T-is SS 0i## "##o0 $or " co!7#ete underst"ndin) o$ 0-"t is to be e?7ected o$ t-e 8S to be constructed. T-e c#e"r underst"ndin) o$ t-e 8S "nd its@ $unction"#it 0i## "##o0 $or t-e correct so$t0"re to be deve#o7ed $or t-e end user "nd 0i## be used $or t-e deve#o7!ent o$ t-e $uture st")es o$ t-e 7roject. T-is SS 0i## 7rovide t-e $ound"tion $or t-e 7roject. Fro! t-is SS t-e 8S c"n be desi)ned constructed "nd $in"## tested. T-is SS 0i## be used b us $or constructin) t-e 8S "nd t-e -ote# end users. e 0i## use t-e SS to $u## underst"nd t-e e?7ec t"tions o$ t-is 8S to construct t-e "77ro7ri"te so$t0"re. T-e -ote# end users 0i## be "b#e to use t-is SS "s " Mtest to see i$ t-e constructed sste! is u7 to t-eir e?7ect"tions. I$ it is not to t-eir e?7ect"tions t-e end users c"n s7eci$ -o0 it is not to t-eir #i:in) "nd t-e SS 0i## be c-"n)ed to $it t-e end users@ needs.
2Sco)e T-e so$t0"re 7roduct to be 7roduced is " 8ote# eserv"tion Sste! 0-ic- 0i## "uto!"te t-e !"jor -ote# o7er"tions. T-e $irst subs ste! is " eserv"tion "nd Boo:in) Sste! to :ee7 tr"c: o$ reserv"tions "nd roo! "v"i#"bi#it. T-e second subsste! is t-e Tr"c:in) "nd Se##in) Food Sste! t-"t c-"r)es t-e current roo!. T-e t-ird subsste! is " =ener"# "n")e!ent Services "nd Auto!"ted T"s:s Sste! 0-ic- )ener"tes re7orts to "udit "## -ote# o7er"tions "nd "##o0s !odi$ic"tion o$ subsste! in$or!"tion. T-ese t-ree subsste!s@ $unction"#it 0i## be described in det"i# in section 2& Over"## escri7tion. T-e end users "re t-e -ote# st"$$ 5custo!er service re7resent"tive "nd -ote# !"n")ers. Bot- user t7es c"n "ccess t-e eserv"tion "nd Boo:in) Sste! "nd t-e Food Tr"c:in) "nd Se##in) Sste! T-e 8ote# eserv"tion Sste!@s objective is to 7rovide " sste! to !"n")e " -ote# t-"t -"s incre"sed in sie to " tot"# o$ 133 roo! s. it-out "uto!"tion t-e !"n")e!ent o$ t-e -ote# -"s beco!e "n un0ie#d t"s:. T-e end user s@ d"&to&d" jobs o$ !"n")in) " -ote# 0i## be si!7#i$ied b " consider"b#e "!ount t-rou)- in t-e" "uto!"ted sste!. sste! 0i##be beuser "b#e "77ro7ri"te to -"nd#e !"n to t":e c"re o$ "## custo!ers ;uic: !"nner. T-eT-e sste! s-ou#d e"sservices to use 7rovide e"s recover o$ errors "nd -"ve "n over"## end user -i)- subjective s"tis$"ction.
14
3'efinition$@ Acron"!$@ and A&&re#iation$ SS So$t0"re e;uire!ents S7eci$ic"tion 8S 8ote# "n")e!ent Sste! Subjective s"tis$"ction T-e over"## s"tis$"ction o$ t-e sste! End users T-e 7eo7#e 0-o 0i## be "ctu"## usin) t-e sste!
;
O # er# i e6
T-e SS is or)"nied into t0o !"in sec tions. T-e $irst is T-e Over"## escri7tion "nd t-e second is t-e S7eci$ic e;uire! ents. T-e Over"## escri7tion 0i## descri be t-e re;uire!ents o$ t-e 8S $ro! " )ener"# -i)- #eve# 7ers7ect ive. T-e S7eci$ic e;uire!ents section 0i## describe in det"i# t-e re;uire!ents o$ t-e sste!.
/ T+e O#era 'e$cri)tion It describes t-e )ener"# $"ctors t-"t "$$ect t-e 7roduct "nd its re;uire!ents. T-is section does not st"te s7eci$ic re;uire!ents. Inste"d it 7rovides " b"c:)round $or t -ose re;uire!ents 0-ic- "re de$ined in section * "nd !":es t-e! e"sier to underst"nd.
/0<0/Soft6are Interface$ A## d"t"b"ses $or t-e 8S 0i## be con$i)ured usin) SL 5ver .2. T-ese d"t"b"ses inc#ude -ote# roo! s "nd custo!ers in$or! "tion. T-ese c"n be !odi$ied b t-e end users. T-e roo! d"t"b"se 0i ## inc#ude t-e roo! nu!be rs "nd i$ t-e "re v"c"nt or occu7ied. T-e custo!ers in$or!"tion d"t"b"se 0i## cont"in "## t-e in$or!"tion o$ t-e custo!er suc- "s $irst n"!e #"st n"!e nu!ber o$ occu7"nts "ssi)ned roo! de$"u#t roo! r"te 5!" be c-"n)ed 7-one nu!ber 0-et-er or not t-e roo! is )u"r"nteed credit c"rd nu!ber con$ir!"tion nu!ber "uto!"tic c"nce##"tion d"te e?7ected c-ec: in d"te "nd ti!e "ctu"# c-ec: in d"te "nd ti!e e?7ected c-ec: out d"te "nd ti!e "!ount o0ed b custo!er "nd "bbrevi"ted custo!er $eedb"c:.
Product Function$ eserv"tion "nd Boo:in) Sste! A##o0s $or t7in) in custo!er in$or!"tion 8"s " de$"u#t roo! r"te t-"t is "djust"b#e Inc#udes " descri7tion $ie#d $or t-e c-"n)ed r"te -en " custo!er c-ec:s in t-e roo! nu!ber 0i## be c-"n)ed to occu7ied in t-e d"t"b"se Abi#it to !odi$ " reserv"tion • • • •
•
15
•
• •
• • •
-en no roo!s "re "v"i#"b#e "nd " custo!er 0ou#d #i:e to e?tend t-eir reserv"tion t-eir in$or!"tion 0i## be 7#"ced in " d"t"b"se "nd 0-en t-ere "re roo!s "v"i#"b#e t-e $irst custo!er on t-e #ist 0i## -"ve t-e roo! -en " custo!er c-ec:s out t-e "!ount o0ed is dis7#"ed I$ t-e intern"# c#oc: st"tes t-"t is " custo!er@s ti!e to -"ve c-ec:ed out "nd custo!er -"s not c-ec:ed out "dds "n e?tr" ni)-t to "!ount o0ed "nd 7rovides " re7ort ecords t-"t roo! is v"c"nt ecords 7"!ent A##o0s $or s7"ce to 0rite custo!er@s $eedb"c:
Tr"c:in) "nd Se##in) Food Sste! • •
Tr"c:s "## !e"#s 7urc-"sed C-"r)es t-e current roo! "s necess"r
=ener"# "n")e!ent Services "nd Auto!"ted T"s:s Sste! •
• •
•
e7orts )ener"ted to "udit -ote# occu7"nc $uture occu7"nc roo! revenue "nd $ood revenue E?ce7tion re7orts #istin) e?ce7tions to t-e nor!"# cost A##o0s "ddition de#etion "nd !odi$ic"tion o$ in$or!"tion on roo!s "nd r"tes !enu ite!s "nd 7rices user 7ro$i#es Cre"tion o$ users "nd "ssi)nin) 7"ss0ords
=4$er C+aracteri$tic$ Educ"tion"# #eve# o$ 8S co!7uter so$t0"re Lo0 E?7erience o$ 8S so$t0"re None Tec-nic"# E?7ertise Litt#e
'A$$u!)tion$ and 'e)endencie$ & T-e sste! is not re;uired to s"ve )ener"ted re7orts. & Credit c"rd 7"!ents "re not inc#uded
16
2 S)ecific Re7uire!ent$ T-is section cont"ins "## t-e so$t0"re re;uire!ents "t " #eve# o$ det"i# t-"t 0-en co!bined 0it- t-e sste! conte?t di")r"! use c"ses "nd use c"se descri7tions is su$$icient to en"b#e desi)ners to desi)n " sste! to s"tis$ t-ose re;uire!ents "nd testers to test t-"t t-e sste! s"tis$ies t-ose re;uire!ents.
?4$er Interface$ T-e 4ser Inter$"ce Screens "re described in t"b#e 1. Ta&e /: Hote Mana%e!ent 4$er Interface Screen$
ScreenNa!e
'e$cri)tion
Lo)in
Lo)intot-esste!"s"CSor"n")er
eserv"tion
etrieve button u7d"te/s"ve reserv"tion c"nce# reserv"tion !odi$ reserv"tion c-"n)e reserv"tion "djust roo! r"te "cce7t 7"!ent t7e/credit c"rd
C-ec:&in
odi$ roo! st" 5e.). ne0 credit c"rd c-ec:&in custo!er 50itor 0it-out " reserv"tion "djust roo! r"te s7eci"# re;uests "cce7t 7"!ent t7e/credit c"rd
C-ec:out
C-ec:outcusto!er)ener"tebi##
8ote# ("!ent
Acce7t 7"!ent $or roo! "nd $ood
oo! Service/est"ur"nt
Cre"te order !odi$ order vie0 order c"nce# order )ener"te !e"# bi##
Custo!er ecord
Add or u7d"te custo!er records
Ad!inister oo!s
Av"i#"bi#it "nd r"tes
Ad!inister 4ser
Cre"te !odi$ "nd de#ete usersP c-"n)e 7"ss0ord
e7orts
Se#ectvie0s"ve"ndde#etere7orts
/0?0/Soft6are Interface$ T-e sste! s-"## inter$"ce 0it- SL d"t"b"se.
/0?02Hard6are Interface$ T-e sste! s-"## run on "## 7#"t$or!s.
17
/0?03Co!!unication Interface$ T-e sste! s-"## be " st"nd"#one 7roduct t-"t does not re;uire "n co!!unic"tion inter$"ces.
/9
Functiona Re7uire!ent$
Function"# re;uire!ents de$ine t-e $und"!ent"# "ctions t-"t sste! !ust 7er$or!. T-e $unction"# re;uire!ents $or t-e sste! "re divided into t-ree !"in c"te)ories eserv"tion/Boo:in) Food "nd "n")e!ent. For $urt-er det"i#s re$er to t-e use c"ses.
1. eserv"tion/Boo:in) 1.1. T-e sste! s-"## record reserv"tions. 1.2. T-e sste! s-"## record t-e custo! er@s $irst n"!e. 1.*. T-e sste! s-"## record t-e custo! er@s #"st n"!e. 1.,. T-e sste! s-"## record t-e nu!ber o$ occu7"nts. 1.. T-e sste! s-"## record t-e roo! nu!ber. 1.6. T-e sste! s-"## dis7#" t-e de$"u#t roo! r"te. 1.6.1. T-e sste! s-"## "##o0 t-e de$"u#t roo! r"te to be c-"n)ed. 1.6.2. T-e sste! s-"## re;u ire " co!!ent to be ente red describin) t-e re"son $or c-"n)in) t-e de$"u#t roo! r"te. 1.%. T-e sste! s-"## record t-e custo! er@s 7-one nu!ber. 1.'. T-e sste! s-"## dis7#" 0-et-er or not t-e roo! is )u"r"ntee d. 1.+. T-e sste! s-"## )ener" te " uni;ue con$ir!"tion nu! ber $or e"c- reserv"tion. 1.13. T-e sste! s-"## "uto!"tic"## c"nce# non&)u"r"nteed reserv"tions i$ t-e custo!er -"s not 7rovided t-eir credit c"rd nu!ber b 633 7! on t-e c-ec:& in d"te. 1.11. T-e sste! s-"## record t-e e?7ecte d c-ec:&in d"te "nd ti!e . 1.12. T-e sste! s-"## record t-e e?7ecte d c-ec:out d"te "nd ti!e . 1.1*. T-e sste! s-"## c-ec:&in custo!ers. 1.1,."## T-e s-"## "##o 0 reserv"tions to be !odi$ied 0it-out -"vin) to renter t-esste! custo!er in$or!"tion. 1.1. T-e sste! s-"## c-ec:out custo!ers. 1.1.1. T-e sste! s-"## dis7# " t-e "!ount o0ed b t-e custo!er . 1.1.2. To retrieve custo!er in$or!"tion t-e #"st n"!e or roo! nu!ber s-"## be used 1.1.*. T-e sste! s-"## record t-"t t-e roo! is e! 7t. 1.1.,. T-e sste! s-"## record t-e 7"!e nt. 1.1.. T-e sste! s-"## record t-e 7"!e nt t7e. 1.16. T-e sste ! s-"## c-"r)e t-e custo! er $or "n e?tr" ni)-t i$ t-e c-ec :out "$ter 1133 ".!. 1.1%. T-e sste! s-"## !"r: )u"r"nteed roo! s "s M!ust 7" "$ter 633 7! on t-e c-ec:&in d"te. 1.1'. T-e sste! s-"## record custo!er $eedb"c:. 2. "n")e!ent 2.1. T-e sste ! s-"## dis7#" t-e -ote# occu7 "nc $or " s7eci$ied 7eriod o$ ti!e 5d"sP inc#udin) 7"st 7resent "nd $uture d"tes. 18
2.2. 2.*. 2.,. 2..
T-e sste! s-"## dis7#" 7rojected occu7"nc $or " 7erio d o$ ti!e 5d"s. T-e sste! s-"## dis7#" roo! reve nue $or " s7eci$ied 7eri od o$ ti!e 5d"s. T-e sste! s-"## dis7#" $ood reven ue $or " s7eci$ied 7erio d o$ ti!e 5d"s. T-e sste! s-"# # dis7#" "n e?ce7tion re7ort s-o0i n) 0-ere de$"u#t roo! "nd $ood 7rices -"ve been overridden. 2.6. T-e sste! s-"# # "##o0 $or t-e "ddition o$ in$or!"tion re)"r din) roo!s r"tes !enu ite!s 7rices "nd user 7ro$i#es. 2.%. T-e sste! s-"## "##o0 $or t-e de#eti on o$ in$or!"tion re)"r din) roo!s r"tes !enu ite!s 7rices "nd user 7ro$i#es. 2.'. T-e sste! s-"## "##o0 $or t-e !odi$ ic"tion o$ in$or!"t ion re)"rdin) roo!s r"tes !enu ite!s 7rices "nd user 7ro$i#es. 2.+. T-e sste! s-"## "##o0 !"n")ers to "ssi)n user 7"ss0 ords.
19
//
Nonfunctiona Re7uire!ent$
Function"# re;uire!ents de$ine t-e needs in ter!s o$ 7er$or!"nce #o)ic"# d"t"b"se re;uire!ents desi)n constr"ints st"nd"rds co!7#i"nce re#i"bi#it "v"i#"bi#it securit !"int"in"bi#it "nd 7ort"bi#it.
/0//0/ Perfor!ance Re7uire!ent$
(er$or!"nce re;uire!ents de$ine "cce7t"b#e res7onse ti!es $or sste! $unction"#it. • • •
T-e #o"d ti!e $or user inter$"ce screens s-"## t":e no #on)er t-"n t0o seconds. T-e #o) in in$or!"tion s-"## be veri$ied 0it-in $ive seconds. ueries s-"## return resu#ts 0it-in $ive seconds.
/0//02 Lo%ica 'ata&a$e Re7uire!ent$
T-e #o)ic"# d"t"b"se re;uire!ents inc#ude t-e retention o$ t-e $o##o0in) d"t" e#e!ents. T-is #ist is not " co!7#ete #ist "nd is desi)ned "s " st"rtin) 7oint $or deve#o7!ent.
-oo.in%(Re$er#ation S"$te! • • • • • • • • • • • • • • • • • • • • • • •
Custo!er $irst n"!e Custo!er #"st n"!e Custo!er "ddress Custo!er 7-one nu!ber Nu!ber o$ occu7"nts Assi)ned roo! e$"u#t roo! r"te "te descri7tion =u"r"nteed roo! 5es/no Credit c"rd nu!ber Con$ir!"tion nu!ber Auto!"tic c"nce##"tion d"te E?7ected c-ec:&in d"te E?7ected c-ec:&in ti!e Actu"# c-ec:&in d"te Actu"# c-ec:&in ti!e E?7ected c-ec:&out d"te E?7ected c-ec:&out ti!e Actu"# c-ec:&out d"te Actu"# c-ec:&out ti!e Custo!er $eedb"c: ("!ent received 5es/no ("!ent t7e 20
•
Tot"# Bi##
/0//03 Standard$ Co!)iance
T-e )r"7-ic"# user inter$"ce s-"## -"ve " consistent #oo: "nd $ee#. /0//0; Reia&iit"
S7eci$ t-e $"ctors re;uired to est"b#is- t-e re;uired re#i"bi#it o$ t-e so$t0"re sste! "t ti!e o$ de#iver.
/0//0< A#aia&iit"
T-e sste! s-"## be "v"i#"b#e durin) nor!"# -ote# o7er"tin) -ours.
/0//0 Securit"
Custo!er Service e7resent"tives "nd "n")ers 0i## be "b#e to #o) in to t-e 8ote# "n")e!ent Sste!. Custo!er Service e7resent"tives 0i## -"ve "ccess to t-e eserv"tion/Boo:in) "nd Food subsste!s. "n")ers 0i## -"ve "ccess to t-e "n")e!ent subsste! "s 0e## "s t-e eserv"tion/Boo:in) "nd Food subsste!s. Access to t-e v"rious subsste!s 0i## be 7rotected b " user #o) in screen t-"t re;uires " user n"!e "nd 7"ss0ord.
/0//0= Maintaina&iit"
T-e 8ote# "n")e!ent Sste! is bein) deve#o7ed in DS(&SE9LET. /0//0> Porta&iit"
T-e 8ote# eserv"tion Sste! s-"## run in "n 7#"t$or! t-"t cont"ins D"v" unti!e.
21
SOFT*ARE ENGINEERING PARA'IGM Soft6are )roce$$ is t-e 0" in 0-ic- 0e 7roduce t-e so$t0"re. .A $oft6are ife c"ce is t-e series o$ identi$i"b#e st")es t-"t " so$t0"re 7roduct under)oes durin) its #i$eti!e .A so$t0"re #i$ecc#e !ode# is " descri7tive "nd di")r"!!"tic
re7resent"tion o$ t-e so$t0"re #i$e cc#e .A #i$e cc#e !ode# re7resents "## t-e "ctivities re;uired to !":e " so$t0"re 7roduct tr"nsit t-rou)- its #i$ecc#e 7-"ses .It "#so c"7tures t-e order in 0-ic- t-ese "ctivities "re to be t":en . Life Cycle Models T-ere "re v"rious #i$e cc#e !ode#s to i!7rove t-e so$t0"re 7rocesses. 1. ATEFALL OEL 2. (OTOT>(E OEL *. ITEATI9E EN8ANCEENT OEL ,. E9OL4TIONA> OEL . S(IAL OEL 8ere "ter$"## !ode# is used in deve#o7in) t-e so$t0"re
Feasibility Study
Requirement Anal sis & System %esi#n
$!din#
"estin#
Imlementati!n
T-is !ode# cont"ins 6 7-"ses Fea$i&iit" $tud" T-e $e"sibi#it stud "ctivit invo#ves t-e "n"#sis o$ t-e 7rob#e! "nd co##ection o$ t-e re#ev"nt in$or!"tion re#"tin) to t-e 7roduct. T-e !"in "i! o$ t-e $e"sibi#it stud is to deter!ine 0-et-er it 0ou#d be $in"nci"## "nd tec-nic"## $e"sib#e to deve#o7 t-e 7roduct. Re7uire!ent ana"$i$ and $)ecification 22
T-e )o"# o$ t-is 7-"se is to underst"nd t-e e?"ct re;uire!ents o$ t-e custo!er "nd to docu!ent t-e! 7ro7er#. 5SS S"$te! 'e$i%n T-e )o"# o$ t-is 7-"se is to tr"ns$or! t-e re;uire!ent s7eci$ic"tion into " structure t-"t is suit"b#e $or i!7#e!ent"tion in so!e 7ro)r"!!in) #"n)u")e. Te$tin% urin) t-is 7-"se t-e desi)n is tested in s!"## !odu#es in iso#"tion $ro! rest o$ t-e so$t0"re 7roduct. T-en "## t-e !odu#es "re inte)r"ted to)et-er "nd tested. I!)e!entation e#e"se o$ so$t0"re in"u)ur"tes t-e o7er"tion "nd #i$e cc#e 7-"se o$ t-e o7er"tion. T-e 7-"ses "#0"s occur in t-is order "nd do not over#"7.
'ATA MO'ELS
23
Entit e#"tions-i75E i")r"! T-e E& !ode#in) is " det"i#ed #o)ic"# re7resent"tion o$ t-e entities "ssoci"tions "nd d"t" e#e!ent $or "n or)"ni"tion. T-is tec-ni;ue is used in d"t"b"se desi)n t-"t -e#7s to describe -o0 entities in "n enter7rise "re re#"ted to one "not-er. T-e entit re#"tions-i7 !ode# $or d"t" uses t-ere $e"tures to describe d"t". T-ese "re t-e $o##o0in)
Entities An entit is " 7erson 7#"ce t-in) or event o$ interest to t-e or)"ni"tion "nd "bout 0-icd"t" "re c"7ture stored or 7rocessed $or e?"!7#e "nd e!7#oee is "n entit.
Attribute 9"rious t7e o$ d"t" ite! t-"t describe "n entit "re :no0n "s "ttributes.
e#"tions-i7 An "ssoci"tion o$ sever"# entities in " Entit&e#"tions-i7 !ode# is c"##ed re#"tions-i7. T-ree t7es o$ re#"tions-i7 e?ist "!on) entities& " One&to&one511& A one&to&one re#"tions-i7 is "n "ssoci"tion on# bet0een t0o entities. b One&to&!"n51& A one&to&!"n re#"tions-i7 e?ist 0-en one entit is re#"ted to !ore t-"n one entit c "n&to&!"n5N& A !"n&to&!"n re#"tions-i7 describes entities t-"t -"ve !"n re#"tions-i7 "!on) e"c- ot-er -i#e dr"0in) t-e entit&re#"tions-i7 5E& di")r"! entit n"!es "re re7resented b " rect"n)#e "nd ov"# s-"7es "re used $or re7resentin) "ttributes.
24
REPRESENT AN ENTITY
REPRESENT AN ATTRI-4TE
REPRESENT EY ATTRI-4TE
REPRESENT RELATIONSHIP
REPRESENT CAR'INALITY
LINS ATTRI-4TE *ITH ENTITY AN' ENTITY *ITH RELATIONSHIP
E IA=A OF O8S 25
F S!bo#s&
26
1. E?tern"# Entit T-e 7roducer or t-e consu!er o$ in$or!"tion t-"t resides outsides t-e bound o$ t-e sste! to be !ode##ed. T-e $o##o0in) rect"n)u#"r s-"7e denotes it.
2. (rocess It is t-e ")ent t-"t 7er$or!s t-e tr"ns$or!"tion o$ in$or!"tion $ro! one st"te to "not-er. T-e $o##o0in) s-"7e denotes it.
*. T-e "t" F#o0 A d"t" $#o0 connects t-e out7ut o$ "n object or 7rocess to t-e in7ut o$ "not-er object or 7rocess. T-e "rro0s@ denot e $#o0 o$ inter!edi"te d"t" v"#ue 0it-in " co!7ut"tion. T-e "rro0-e"d indic"ted t-e direction o$ $#o0 o$ d"t".
,. "t" Store A re7ositor o$ d"t" is " 7"ssive object 0it-in " F $or #"ter "ccess. A d"t" store does not )ener"te "n o7er"tions on its o0n but !ere# res7onds to re;uests to store "nd "ccess d"t". T-e $o##o0in) s-"7e denotes it.
CONTEQT LE9EL F
27
'ATA FLO* 'IAGRAM OPENING A NE* ROOM
'ATA FLO* 'IAGRAM CHECBIN OF A NE* C4STOMER
28
'ATA FLO* 'IAGRAM CHECBIN OF A C4STOMER
SYSTEM 'ESIGN 29
odu#"ris"tion et"i#s •
Ad!in odu#e
T-e "d!inistr"tor -"s to enter t-e res7ective 4SE NAE "nd (ASSO to si)n in. It !"n")es edit roo!s "dd ne0 roo!s de#ete roo!s !onitor reserv"tion.
T-e o7er"tions "re )iven in t-e sn"7s-ot be#o0
30
•
4ser odu#e T-e user c"n re)ister roo!s b enterin) t-e 7"rticu#"rs needed < c"n re)ister or boo: t-e roo!s "ccordin) to -is need.
31
32
"t"b"se esi)n
33
34
35
4SER INTERFACE 'ESIGN
$irsto$ste7 in t-e user inter$"ce "ctivit $ocuses "nd t-e T-e desi)n out7ut re7orts in " $or! desi)n "cce7t"b#e to t-e user. on t-e 7re7"r"tion o$ in7ut 4ser inter$"ce desi)n consists o$ t0o ste7s in7ut desi)n "nd out7ut desi)n.
36
<030/INP4T 'ESIGN
In7ut desi)nin) is " cruci"# 7"rt o$ "n sste! desi)n. In"ccur"te in7ut d"t" "re t-e !ost co!!on c"use o$ error in d"t" 7rocessin). "t" entr c"n be contro# b in7ut desi)n. In7ut desi)n is t-e desi)n 7-"seP t-e e?7"nded d"t" $#o0 di")r"! identi$ies #o)ic"# d"t" $#o0s d"t" stores source s "nd destin"tions. T-e )o"# o$ desi)nin) in7ut d"t" is to !":e d"t" entr "s e"s "s 7ossib#e. In t-e c"se o$ Moo! eserv"tion "nd bi##in) Sste! !uc-e!7-"sis -"s been )iven to t-is 7-"se. To reduce in7ut errors eit-er t-e users "re 7rovided 0it- c-oices to c-oose $ro! or inv"#id in7uts "re restricted. 8ere t-e c-"nces o$ enterin) inv"#id d"t" "re !ini!"#. -i#e enterin) d"t" t-e o7er"tors need to :no0 t-e $o##o0in)
T-e "##oc"ted s7"ce $or e"c- $ie#d Fie#d se;uences 0-ic- !ost !"tc- t-"t in t-e source docu!ent T-e $or!"t in 0-ic- d"t" $ie#d is entered. Ree7in) in vie0 t-e user re;uire!ents t-e in7uts screens -"ve been desi)ned "nd deve#o7ed $or e"s "nd error $ree d"t" entr. B"sed on t-e v"rious t7es o$ in7uts to be $ed to t-e co!7uter in usin) t-e 7ro7osed sste! "## in7ut screens -"ve been desi)ned in re"# !ode 5=4I.
T-e det"i#s o$ "## in7ut screens "re s-o0n "s $o##o0s
37
38
39
Test C"ses
T-e test c"ses co!7rises o$ sn"7s-ots o$ bot- t-e unit test "nd sste! test c"ses.
40
41
COIN= Codin) T-e in7ut to codin) 7-"se is t-e desi)n docu!ent 7roduced "t t-e end o$ t-e desi)n 7-"se. urin) t-e codin) 7-"se di$$erent !odu#es identi$ied in t-e desi)n docu!ent "re coded "ccordin) to t-eir res7ective !odu#e s7eci$ic"tions. T-e objective o$ t-e codin) 7-"se is to tr"ns$or! t-e desi)n o$ " sste! into code in " -i)#eve# #"n)u")e "nd t-en unit test t-is code. T-e so$t0"re deve#o7!ent or)"ni"tions $or!u#"te t-eir o0n codin) st"nd"rd t-"t suits t-e! !ost. T-e !"in "dv"nt")es o$ "d-erin) to " st"nd"rd st#e o$ codin) "re "s $o##o0in) 5i
A co din) st"nd"rd )i ves " uni$or! "77e"r"nce to t- e code 0r itten b di $$erent en)ineers.
5ii
It $"ci#it"tes code underst"ndin).
5iii
It 7ro!otes )ood 7ro)r"!!in) 7r"ctices.
*.2Codin) st"nd"rd "nd )uide#ines =ood so$t0"re deve#o7!ent or)"ni"tions deve#o7 t-eir o0n codin) st"nd"rds "nd )uide#ines de7endin) on 0-"t suits t-eir or)"ni"tion best "nd b"sed on t-e s7eci$ic t7es o$ 7roduct t-e deve#o7. Codin) )uide#ines 7rovide on# )ener"# su))estions re)"rdin) t-e codin) st#e to be $o##o0ed. 4n#i:e codin) st"nd"rds t-e use o$ t-ese )uide#ines is not !"nd"tor. 8o0ever t-e 7ro)r"!!er is encour")ed to revie0 t-e! "nd "tte!7t to incor7or"te t-e! into -is 7ro)r"!!in) st#e.
e7resent"tive codin) st"nd"rds 1. u#es $or #i! itin) t-e use o$ )#ob" #t-ese ru#es #ist 0-" t t7es o$ d"t " c"n be dec#" red )#ob"# "nd 0-"t c"nnot. 2. St"nd"rd -e"ders to 7recede t-e code o$ di$$erent !odu#e in$or!"tion cont"ined in t-e -e"ders o$ di$$erent !odu#es s-ou#d be st"nd"rd $or t-e "n or)"ni"tion. T-e e?"ct $or!"t in 0-ic- t-e -e"der in$or!"tion is or)"nied c"n "#so be s7eci$ied. *. N"!in) conventions $or )#ob"# v"ri"b#es #oc"# v"ri"b#es "nd const"nt identi$iers " 7o7u#"r n"!in) convention is t-"t v"ri"b#es "re n"!ed usin) !i?ed c"se #etterin). ,. Conventions re)"rdin) error return v"#ues "nd e?ce7tions -"nd#in) !ec-"nis! t-e 0" error conditions "re re7orted b di$$erent $unctions in " 7ro)r"! "nd t-e 0" co!!on e?ce7tion conditions "re -"nd#ed s-ou#d be st"nd"rd 0it-in "n or)"ni"tion.
42
e7resent"tive codin) )uide#ines 1. o not use " codin) st#e t-"t is too c#ever or too di$$icu#t to underst"nd code s-ou#d be e"s to underst"nd. C#ever codin) c"n obscure !e"nin) o$ t-e code "nd -"!7er underst"ndin). 2. Avoid obscure side e$$ects obscure side e$$ects !":e it di$$icu#t to underst"nd " 7iece o$ code. For e?"!7#e i$ " )#ob"# v"ri"b#e is c-"n)ed or so!e $i#e I/O 7er$or!ed obscure# in " c"##ed !odu#e it beco!es di$$icu#t to in$er $ro! t-e $unctions n"!e "nd -e"der in$or!"tion !":in) it di$$icu#t to underst"nd t-e code. *. T-e code s-ou#d be 0e## docu!ented "t #e"st one co!!ent #ine on t-e "ver")e $or ever t-ree source #ines o$ code. ,. T-e #en)t- o$ "n $un ction s-ou#d not e?cee d 13 source #in es " #en)t - $unction is usu"## ver di$$icu#t to underst"nd "s it 7rob"b# -"s " #"r)e nu!ber o$ v"ri"b#es. . o not use )oto st"te!ents.
43
S"!7#e (roject Codin)
Ad!in-o!e.js7 KU 7")e #"n)u")eV"java" contentT7eV"text/html; charset!#$%%&'$("
"!#$%%&'$(" 7")eEncodin)V KU 7")e i!7ortV "java)s*l)+" KW KW KU 7")e i!7ortV"java)io)+" KW K sessionVre;uest.)etSession5P if5session.)etAttribute5Jusern"!eJVVnu X res7onse.sendedirect5J"d!ininde?.js7JP Y KW ZOCT>(E -t!# (4BLIC J&//*C//T Q8TL 1.3 Tr"nsition"#//ENJ J-tt7//000.0*.or)/T/?-t!#1/T/?-t!#1&tr"nsition"#.dtdJW -t!# ?!#nsV"http://,,,),-)org/('''/xhtml"W -e"dW !et" -tt7&e;uivV"Content$.ype" contentV"text/html; charsetiso$%%&'$(" /W tit#eW4ntit#ed ocu!ent/tit#eW scri7t srcV"js/j*uery$())()pac0)js" t7eV"text/javascript"W/scri7tW scri7t srcV"js/j*uery$easing)())pac0)js" t7eV"text/javascript"W/scri7tW scri7t srcV"js/j*uery$easing$compati1ility)())pac0)js" t7eV"text/javascript"W/scri7tW scri7t srcV"js/coda$slider)()()()pac0)js" t7eV"text/javascript"W/scri7tW scri7t t7eV"text/javascript"W juer50indo0.bind5J#o"dJ function5 X juer5Jdiv[s#ider1J.cod"S#ider5 // juer5Jdiv[s#ider2J.cod"S#ider5 // etc etc. Be0"re o$ crossin:in) di$$icu#ties i$ usin) !u#ti7#e s#iders on one 7")e. YP /scri7tW st#e t7eV"text/css"W 2myta1le X 7"ddin) 3P !"r)in 3 autoP bordere$t&0idt- pxP border&to7&0idt- (pxP border&ri)-t&0idt- (pxP border&botto!&0idt- (pxP border&to7&st#e solidP border&ri)-t&st#e solidP border&botto!&st#e solidP bordere$t&st#e solidP border&to7&co#or 233''44P border&ri)-t&co#or 233''44P border&botto!&co#or 233''44P bordere$t&co#or 233''44P Y td X b"c:)round 2fffP 7"ddin) 5px 5px5px5pxP co#or 2--''CCP $ont&sie (5pxP te?t&"#i)n centerP border thin dotted 23'4P
44
Y 2la1elX b"c:)round&co#or 2--''CCP Y 2apDiv(& X 7osition a1soluteP 0idt- 5&pxP -ei)-t 'pxP &inde? #e$t ('px(PP to7 -3pxP Y 2apDiv(5 X 7osition a1soluteP 0idt- 5(pxP -ei)-t 6pxP &inde? P #e$t 6pxP to7 %3pxP Y 2apDiv(7 X 7osition a1soluteP 0idt- (5'pxP -ei)-t 6pxP &inde? -P #e$t 3pxP to7 (pxP Y 2apDiv(% X 7osition a1soluteP 0idt- (73pxP -ei)-t 6pxP &inde? 6P #e$t ((%pxP to7 (-3pxP Y 2apDiv(' X 7osition a1soluteP 0idt- 6-pxP -ei)-t 6pxP &inde? &P #e$t %5pxP to7 (%3pxP Y
2apDiv7 X 7osition a1soluteP 0idt- 6&&pxP -ei)-t (7&pxP &inde? 7P to7 3pxP #e$t 5-pxP Y 2form X 0idt- autoP -ei)-t autoP Y /st#eW #in: -re$V"style/admin8home)css"re#V"stylesheet" t7eV"text/css" /W
45
st#e t7eV"text/css"W /st#eW #in: -re$V"src/face1ox)css" !edi"V"screen"re#V"stylesheet" t7eV"text/css" /W scri7t srcV"src/face1ox)js" t7eV"text/javascript"W/scri7tW scri7t t7eV"text/javascript"W juer5docu!ent.re"d5function5\ X \5G"Hre#]V$"cebo?G.$"cebo?5X #o"din)I!")e Gsrc/#o"din).)i$G c#oseI!")e Gsrc/c#ose#"be#.7n)G Y Y /scri7tW /-e"dW bodW js7inc#ude 7")eV"admin8header)jsp" /W div idV"nav"W div idV"apDiv-" st#eVJte?t&"#i)n centerPJW t"b#e 0idt-V"((55" "#i)nV"left"ce##s7"cin)V"3" idV"myta1le"W trW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"3(" idV"la1el"WT7e/tdW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"(6" idV"la1el"W"te/tdW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"%6" idV"la1el"Wescri7ton/tdW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"('5" idV"la1el"WI!")e/tdW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"(&6" idV"la1el"Wu"ntit/tdW td st#eVJco#or 2fffP$ont&0ei)-t 1oldPJ 0idt-V"('" idV"la1el"WAction/tdW /trW K Strin) connection4L* V Jjdbc!s;#//#oc"#-ost**36/-ote#reserv"tionJP Connection connection* V nuP St"te!ent st"te!ent* V nuP C#"ss.$orN"!e5Jco!.!s;#.jdbc.riverJ.ne0Inst"nce5P connection* V river"n")er.)etConnection5connection4L* JrootJ J12*,6JP st"te!ent* V connection*.cre"teSt"te!ent5P Strin) uerStrin)* VJSELECT ] FO roo!JP esu#tSet rs* V st"te!ent*.e?ecuteuer5uerStrin)*P KW K 6+ie 5rs*.ne?t5 X KW trW td -ei)-tV"%&"WKVrs*.)etStrin)5Jt7eJKW/tdW tdWKVrs*.)etStrin)5Jr"teJKW/tdW tdWKVrs*.)etStrin)5Jdescri7tionJKW/tdW tdW" re#V"face1ox"-re$Veditpic)jsp9idKVrs*.)etStrin)5Jroo!idJKWWi!) 0idt-V 33 -ei)-tV(&3 "#tV"na1le to ie," srcV"photos/KVrs*.)etStrin)5Ji!")eJ KW" /W/"W/tdW tdWKVrs*.)etStrin)5J;tJKW/tdW tdW" st#eVJco#or 2f33PJ re#V"face1ox"-re$Veditroom)jsp9idKVrs*.)etInt5Jroo!idJ KWWEdit/"W" st#eVJco#or 2f33PJW ^ /"W" st#eVJco#or 2f33PJ re#V"face1ox" -re$Vdeleteroom)jsp9 idKVrs*.)etInt5Jroo!idJKWWe#ete/"W/tdW /trW K YKW K // c#ose "## t-e connections. rs*.c#ose5P st"te!ent*.c#ose5P connection*.c#ose5P KW
46
/t"b#eW brW " st#eVJco#or 2f33P te?t&"#i)n centerP $ont&0ei)-t 1oldP $ont&sie 3pxPJ re#V"face1ox"-re$V"addroom)jsp"WAdd Ne0 oo!/"W /divW /divW /bodW /-t!#W
47
Co!!ents
•
+t!D & T-e !"in cont"iner $or 8TL 7")es
•
+eadD & T-e cont"iner $or 7")e -e"der in$or!"tion
•
titeD & T-e tit#e o$ t-e 7")e
•
&od"D & T-e !"in bod o$ t-e 7")e
•
•
•
•
$cri)tD& T-e 8TL scri7t e#e!ent is used to insert c#ient side scri7t code into " docu!ent. T-is c"n be "c-ieved in t0o 0"s insertin) t-e code direct# "s content o$ t-is e#e!ent or re$errin) to "n e?tern"# $i#e cont"inin) scri7t code 0it- t-e JsrcJ "ttribute. In t-e second c"se user ")ents s-ou#d i)nore t-e content o$ t-e e#e!ent.
$t"eW& t") is used to de$ine st#e in$or!"tion $or "n 8TL docu!ent. di#W &t") de$ines " division or " section in "n 8TL docu!ent. T-e Scri7t#etA scri7t#et c"n cont"in "n nu!ber o$ DA9A #"n)u")e st"te!ents v"ri"b#e or !et-od dec#"r"tions or e?7ressions t-"t "re v"#id in t-e 7")e scri7tin) #"n)u")e. Fo##o0in) is t-e snt"? o$ Scri7t#et
K code $r")!ent KW •
JSP 'ecaration$: A dec#"r"tion dec#"res one or !ore v"ri"b#es or !et-ods t-"t
ou c"n use in D"v" code #"ter in t-e DS( $i#e. >ou !ust dec#"re t-e v"ri"b#e or !et-od be$ore ou use it in t-e DS( $i#e. Fo##o0in) is t-e snt"? o$ DS( ec#"r"tions KZ dec#"r"tionPH dec#"r"tionP_... KW
•
JSP E)re$$ion:
A DS( e?7ression e#e!ent cont"ins " scri7tin) #"n)u")e e?7ression t-"t is ev"#u"ted converted to " Strin) "nd inserted 0-ere t-e e?7ression "77e"rs in t-e DS( $i#e. Fo##o0in) is t-e snt"? o$ DS( E?7ression KV e?7ression KW 48
•
JSP Co!!ent$: DS( co!!ent !"r:s te?t or st"te!ents t-"t t-e DS( cont"iner s-ou#d i)nore. A DS( co!!ent is use$u# 0-en ou 0"nt to -ide or Jco!!ent outJ 7"rt o$ our DS( 7")e. Fo##o0in) is t-e snt"? o$ DS( co!!ents K&&T-isis DS( co!!ent &&KW
•
JSP 'irecti#e$: A DS( directive "$$ects t-e over"## structure o$ t-e serv#et c#"ss. It usu"## -"s t-e $o##o0in) $or! KU directive "ttributeVJv"#ueJ KW
•
JSP Action$: DS( "ctions use constructs in QL snt"? to contro# t-e be-"vior o$ t-e serv#et en)ine. >ou c"n dn"!ic"## insert " $i#e reuse D"v"Be"ns co!7onents $or0"rd t-e user to "not-er 7")e or )ener"te 8TL $or t-e D"v" 7#u)in. T-ere is on# one snt"? $or t-e Action e#e!ent "s it con$or!s to t-e QL st"nd"rd js7"ctionn"!e"ttributeVJv"#ueJ/W
49
Error 8"nd#in) Error -"nd#in) usin) tr "nd c"tc- st"te!ent. A#t-ou)- t-e de$"u#t e?ce7tion -"nd#er 7rovided b t-e D"v" run&ti!e sste! is use$u# $or debu))in) ou 0i## usu"## 0"nt to -"nd#e "n e?ce7tion ourse#$. oin) so 7rovides t0o bene$its. First it "##o0s ou to $i? t-e error. Second it 7revents t-e 7ro)r"! $ro! "uto!"tic"## ter!in"tin). ost users 0ou#d be con$used 5to s" t-e #e"st i$ our 7ro)r"! sto77ed runnin) "nd 7rinted " st"c: tr"ce 0-enever "n error occurredZ Fortun"te# it is ;uite e"s to 7revent t-is. To )u"rd ")"inst "nd -"nd#e " run&ti!e error si!7# enc#ose t-e code t-"t ou 0"nt to !onitor inside " tr" b#oc:. I!!edi"te# $o##o0in) t-e tr" b#oc: inc#ude " catc+ c#"use t-"t s7eci$ies t-e e?ce7tion t7e t-"t ou 0is- to c"tc-.
("r"!eter C"##in)/("ssin) GET !et+od: T-e =ET !et-od sends t-e encoded user in$or!"tion "77ended to t-e 7")e re;uest. T-e 7")e "nd t-e encoded in$or!"tion "re se7"r"ted b t-e c-"r"cter. " -re$Vedit7ic.js7idVKVrs*.)etStrin)5Jroo!idJKWWedit roo!/"W
POST !et+od:
50
T-is !et-od 7"c:")es t-e in$or!"tion in e?"ct# t-e s"!e 0" "s =ET !et-ods but inste"d o$ sendin) it "s " te?t strin) "$ter " in t-e 4L it sends it "s " se7"r"te !ess")e. T-is !ess")e co!es to t-e b"c:end 7ro)r"! in t-e $or! o$ t-e st"nd"rd in7ut 0-ic- ou c"n 7"rse "nd use $or our 7rocessin). DS( -"nd#es t-is t7e o$ re;uests usin) )et("r"!eter5 !et-od to re"d si!7#e 7"r"!eters. KVre;uest.)et("r"!eter5J$irstn"!eJKW
9"#id"tion C-ec:s Ja#aScri)t For! Vaidation D"v"Scri7t c"n be used to v"#id"te d"t" in 8TL $or!s be$ore sendin) o$$ t-e content to " server. For! d"t" t-"t t7ic"## "re c-ec:ed b " D"v"Scri7t cou#d be
•
-"s t-e user #e$t re;uired $ie#ds e!7t
•
-"s t-e user entered " v"#id e&!"i# "ddress
•
-"s t-e user entered " v"#id d"te
•
-"s t-e user entered te?t in " nu!eric $ie#d
Re7uired Fied$ T-e $unction be#o0 c-ec:s i$ " $ie#d -"s been #e$t e!7t. I$ t-e $ie#d is b#"n: "n "#ert bo? "#erts " !ess")e t-e $unction returns $"#se "nd t-e $or! 0i## not be sub!itted
scri7t t7eV"text/javascript"W functionv"#id"teFor!5 X #ar "Vdocu!ent.$or!sHJ$or!1JHJn"!eJ.v"#ueP if 5"VVnu ^^ "VVJJ X "#ert5J(#s. t7e our n"!eJP returnfa$eP Y #ar cVdocu!ent.$or!sHJ$or!1JHJ!ess")eJ.v"#ueP if 5cVVnu ^^ cVVJJ X
51
"#ert5J(#s. t7e our !ess")eJP returnfa$eP Y #are!"i#Te?t V docu!ent.$or!sHJ$or!1JHJe!"i#J.v"#ueP #ar 7"ttern V /`H"&A&a3&+&_5.H"&A&a3&+&_]UH"&3&+_5&H"&3&+_]5.H"&3&+_5&H"&3& +_]].H"&X2,Y\/P if 57"ttern.test5e!"i#Te?t X returntrueP Y e$e X "#ert5GInv"#id E!"i# Address G _ e!"i#Te?tP returnfa$eP Y Y /scri7tW
T-e $unction "bove cou#d be c"##ed 0-en " $or! is sub!itted $or! n"!eV"form(" idV"email8form" "ctionV"savecomment)jsp" !et-odV"post"onsub!itVJreturn v"#id"teFor!5J n"!eV"contact"W 7WN"!ebr /W in7ut n"!eV"name" t7eV"text" c#"ssV"ed" /W br /W E!"i# Addressbr /W in7ut n"!eV"email" idV"email" c#"ssV"ed" /W br /W ess")esbr /W te?t"re" idV"message" n"!eV"message" ro0sV"%" co#sV"-" c#"ssV"ed"W/te?t"re"W br /W in7ut n"!eV"!nput" t7eV"su1mit" v"#ueV"u1mit" idV"1utton("/W /7W /$or!W
52
TESTING
Testin) tec-ni;ues "nd Testin) str"te)ies TESTING
So$t0"re testin) is " critic"# e#e!ent o$ so$t0"re ;u"#it "ssur"nce "nd re7resents t-e u#ti!"te revie0 o$ s7eci$ic"tion desi)n "nd codin). In $"ct testin) is t-e one ste7 in t-e so$t0"re en)ineerin) 7rocess t-"t cou#d be vie0ed "s destructive r"t-er t-"n constructive. A str"te) $or so$t0"re testin) inte)r"tes so$t0"re test c"se desi)n !et-ods into " 0e##& 7#"nned series o$ ste7s t-"t resu#t in t-e success$u# construction o$ so$t0"re. Testin) is t-e set o$ "ctivities t-"t c"n be 7#"nned in "dv"nce "nd conducted sste!"tic"##. T-e under#in) !otiv"tion o$ 7ro)r"! testin) is to "$$ir! so$t0"re ;u"#it 0it- !et-ods t-"t c"n econo!ic"## "nd e$$ective# "77#i ed to bot- str"te)ic to bot- #"r)e "nd s!"##& sc"#e sste!s
STATE=IC A((OAC8 TO SOFTAE TESTIN= T-e so$t0"re en)ineerin) 7rocess c"n be vie0ed "s " s7ir"#. Initi"## sste! en)ineerin) de$ines t-e ro#e o$ so$t0"re "nd #e"ds to so$t0"re re;uire!ent "n"#sis 0-ere t-e in$or!"tion do!"in $unctions be-"vior 7er$or!"nce constr"ints "nd v"#id"tion criteri" $or so$t 0"re "re est"b#is-ed. ovin) in0"rd "#on) t-e s7ir" # 0e co!e to desi)n "nd $in"## to codin). To deve# o7 co!7uter so$t0"re 0e s7ir"# in "#on) stre"!#ines t-"t decre"se t-e #eve# o$ "bstr"ction on e"c- turn. A str"te) $or so$t0"re testin) !" "#so be vie0ed in t-e conte?t o$ t-e s7ir"#. 4nit testin) be)ins "t t-e verte? o$ t-e s7ir"# "nd concentr"tes on e"c- unit o$ t-e so$t0"re "s i!7#e!ented in source code. Testin) 7ro)resses b !ovin) out0"rd "#on) t-e s7ir"# to inte)r"tion testin) 0-ere t-e $ocus is on t-e desi)n "nd t-e construction o$ t-e so$t0"re "rc-itecture. T":in) "not-er turn on out0"rd on t-e s7ir"# 0e encounter v"#id"tion testin) 0-ere re;uire!ents est"b#is-ed "s 7"rt o$ so$t0"re re;uire!ents "n"#sis "re 53
v"#id"ted ")"inst t-e so$t0"re t-"t -"s been constructed. Fin"## 0e "rrive "t sste! testin) 0-ere t-e so$t0"re "nd ot-er sste! e#e!ents "re tested "s " 0-o#e. T"b#e =iven be#o0 out#ines t-e tests t-"t 0ere 7er$or!ed on t-e sste! to ensure correctness "nd une"rt- errors 0-ic- 0ere subse;uent# debu))ed.
Testin) (-"se
O&5ecti#e$
4nit Testin)
T-e v"rious $unctions 0it-in e"c- 7ro)r"! "nd t-e 7ro)r"! b#oc:s "re tested $or 7ro7er 0or:in).
odu#e Testin)
A !odu#e is co!7osed o$ v"rious 7ro)r"!s re#"ted to t-"t !odu#e. odu#e testin) is done to c-ec: t-e !odu#e $unction"#it "nd inter"ction bet0een units 0it-in " !odu#e
Inte)r"tion Testin)
Inte)r"tion testin) is done to test t-e $unction"#it"nd inter$"cin) bet0een t-e !odu#es.
Acce7t"nc e Testin)
Acce7t"nce testin) is done "$ter i!7#e!ent"tion to c-ec: i$ t-e sste! runs success$u## in t-e custo!er environ!ent/site.
T"b#e s-o0s t-e Tests Conducted on t-e 8ote# eserv"tion Sste!
4NIT TESTIN= 4nit Testin) 0i## be done to test $ie#d v"#id"tions n"vi)"tion $unction"#it o$ t-e 7ro)r"!s "nd its b#oc:s. T-ese tests "re "77#ied on v"rious $unctions 0it-in e"c7ro)r"! "nd ot-er critic"# 7ro)r"! b#oc:s. 54
O4LE TESTIN= odu#e testin) 0i## be done to test t-e inter"ction bet0een t-e v"rious 7ro)r"!s 0it-in one !odu#e. It c-ec:s t-e $unction"#it o$ e"c- 7ro)r"! 0it- re#"tion to ot-er 7ro)r"!s 0it-in t-e s"!e !odu#e. It t-en tests t-e over"## $unction"#it o$ e"c- !odu#e.
INTE=ATION TESTIN= Inte)r"tion testin) is done to test t-e $unction"#it "nd inter$"cin) bet0een t-e !odu#es. T-e sste! is bui#t u7 o$ v"rious !odu#es 0-ic- 0or: to)et-er to "uto!"te t-e "ctivities o$ t-e -ote# !"n")e!ent sste!. T-ese !odu#es s-ou#d 0or: to)et-er in " se"!#ess 0" to "c-ieve t-e desired resu#ts. Inte)r"tion testin) 0i## test $or t-is 7ro7ert o$ t-e !odu#es. T-e !odu#es dis7#" " c"use "nd e$$ect re#"tions-i7 i$ d"t" in one !odu#e is c-"n)ed t-en it "$$ects t-e d"t" to c-"n)e in so!e ot-er !odu#e "#so. Inte)r"tion testin ) needs to c-ec: i$ t-e !odi$i c"tions do not "dverse# "$$e ct so!e ot-er !odu#es. ACCE(TANCE TESTIN= Acce7t"nce testin)i$0"s done "$ter t-e correct# i!7#e!ent"tion o$ t-e sste!. T-e testin) 0i## c-ec: t-e sste! 0or:s in t-e user environ!ent "nd"cce7t"nce i$ t-e entire user s7eci$ied $unction"#ities "re 7resent. It "#so tests i$ t-e sste! "d-eres to t-e co!7"n 7o#icies "nd ;u"#it st"nd"rd.
Test e7orts
Ad!in odu#e
55
4ser odu#e
56
57
S>STE SEC4IT> EAS4ES
"t" Securit
"t" Securit or "t"b"se Securit is " ver essenti"# o7er"tion needed to be done in order to 7rovide securit $or d"t" ite!s in t-e d"t"b"se."t"b"se securit "##o0s or dis"##o0s user "ctions on t-e d"t"b"se "nd objects 0it-in it. It 7rotects " d"t"b"se $ro! unintende d "ctivit. 4nintended "ctivit c"n be c"te)oried "s "ut-entic"ted !isuse !"#icious "tt"c:s or in"dvertent !ist":es !"de b "ut-oried individu"#s. T-e M'< !ess")e&di)est "#)orit-! is " 0ide# used cr7to)r"7-ic -"s- $unction 7roducin) " 12'&bit 516&bte -"s- v"#ue t7ic" ## e?7re ssed in te?t $or!"t "s " *2 di)it -e?"deci!"# nu!ber. -"s been uti#ied in " 0ide v"riet o$ cr7to)r"7-ic "77#ic"tions "nd is "#so co!!on# used to veri$ d"t" inte)rit. T-e $o##o0in) code is used in our 7roject to encr7t t-e 7"ss0ord KU7")e i!7ortV"java)s*l)+
58
&"teH encoded("ss0ord V !d.di)est5P Strin)Bu$$erbu$ V ne6Strin)Bu$$er5P for 5int i V 3P i encoded("ss0ord.#en)t-P i__ X if555int encoded("ss0ordHi < 3?$$ 3?13 X bu$."77end5J3JP Y int encoded("ss0ordHi < 3?$$ 16P bu$."77end5Lon).toStrin)55 Y Strin) 7"ss0Vbu$.toStrin)5P C#"ss.$orN"!e5Jco!.!s;#.jdbc.riverJP Connection con V river"n")er.)etConnection5Jjdbc!s;#//#oc"#-ost**36/-ote#reserv"tionJ JrootJ J12*,6JP St"te!ent stVcon.cre"teSt"te!ent5P st.e?ecute47d"te5Jinsert into user5usern"!e7"ss0ord7ositione!"i# v"#ues5GJ_usern"!e_JGGJ_7"ss0_JGGJ_7osition_JGGJ_e!"i#"dd_JGJP Ycatc+5E?ce7tion eXY res7onse.sendedirect5J"dduser.js7JP KW
59
E(OTS In t-is $unction re7orts "re )ener"ted $or t-e $o##o0in) entities " Custo!er et"i#s. b e;uire!ents o$ t-e Custo!ers c oo!s et"i#s d Bi## et"i#s e C-ec:in e7orts $ Boo:in) et"i#s ) On#ine Boo:in)s - C-ec:out et"i#s
60
e7orts )ener"ted b "d!inistr"tor
T-e "bove re7ort is )ener"ted b t-e "d!inistr"tor "$ter t-e boo:in) 7rocedure o$ t-e roo!.
61
F4T4E SCO(E AN F4T8E EN8ANCEENT OF T8E (ODECT T-e birt- o$ internet !"de t-e 7rocess o$ boo:in) " roo! !ore e"s $or our business tri7 v"c"tion or 0ee:end )et"0". On#ine -ote# boo:in)s -e#7 ou to 7#"n our v"c"tion or business tri7 e"sier "nd !ore "$$ord"b#e. In o#den d"s it 0"s ver di$$icu#t to $ind "nd se#ect " -ote# $"r "0" $ro! our -o!e. T-e deve#o7!ent o$ tec-no#o) "nd internet si!7#i$ied t-e 7rocess "nd no0&"&d"s it is ver e"s to boo: " roo! $ro! ou -o!e co!7uter. On#ine -ote# boo:in) -e#7 ou to $ind " -ote# 0it- t-e $"ci#ities ou 0is- to -"ve. So!eti!es ou need " si!7#e "nd "$$ord"b#e 7#"ce to st" "nd so!eti!es ou 0is- to st" in " #u?urious roo! it doesnGt !"tter. e c"n se#ect "nd boo: "n t7e o$ roo! ou #i:e vi" internet. T-e internet -"s deve#o7ed " revo#ution in t-e $ie#d o$ -ote# boo:in) services. It is no0 ver e"s to $ind " -ote# "n0-ere in t-e 0or#d 0it-in seconds. >ou c"n boo: our $"vourite roo! "n ti!e o$ t-e d" $ro! "n0-ere in t-e 0or#d. T-e !ost i!7ort"nt "dv"nt")e o$ on#ine -ote# boo:in) is convenience ou c"n boo: our roo! b si!7# sittin) in -o!e. Internet -e#7s ou to bro0se t-rou)- t-e -ote#s "round t-e 0or#d "nd co!7"re t-e $"ci#itie s "nd r"tes e"si#. -en ou c-oose our $"vourite -ote# $or our "cco!!od"tion si!7# ou c"n co!7#ete our reserv"tion 0-en re;uired. So!e o$ t-e -ote#s "#so o$$er s"!e d" -ote# boo:in) on#ine. It is ver -e#7$u# $or t-ose 0-o 7#"n t-eir 0ee:end )et"0" in #"st !inute. ost o$ t-e -ote#s o$$ers co!7et itive 7ricin) bec"use it is ver e"s to co!7"re t-e 7rices o$ one -ote# to "not-er. So!e on#ine boo:in) service 7roviderGs 0ebsites even "##o0 ou to co!7"re t-e 7rices o$ !u#ti7#e -ote# 0-en se#ectin) our on#ine -ote# boo:in)s. B t-is 0" it is ver e"s to $ind 0e##&e;ui77ed -ote# roo!s in c-e"7 7rice. It is better to $ind " #"r)er 62
on#ine -ote# boo:in) service 7rovider i$ ou "re #oo:in) $or " c-e"7 -ote# roo!. So!e o$ t-e service 7roviders 0onGt "##o0 ou to c-oose our -ote# t-e on# "##o0 ou to se#ect #oc"tion "nd ;u"#it o$ t-e -ote#. Consider"b#e discounts on -ote#s !" be "v"i#"b#e in o$$&se"sons. So!e !" )ive )re"t discount in se"son "#so due to t-e co!7etition in t-e $ie#d. >ou 0i## )et !uc- )re"ter discount i$ ou "##o0 t-e on#ine -ote# boo:in) service 7rovider to se#ect our -ote# "nd $#i)-t. >ou c"n s"ve !uc- b se#ectin) t-e services o$ on#ine -ote# boo:in) service 7roviders. >ou c"n de$inite# s"ve on "ir#ine $#i)-ts c"r services "nd even entert"in!ent. >ou 0i## )et consider"b#e discounts i$ ou "##o0 t-e! to se#ect "## services ou need. It is sure t-"t ou c"n s"ve " consider"b#e "!ount "nd -"ve e?tr" $unds to enjo on our tri7. T-ere is no "d!inistr"tive cost $or -ote#s to 7rovide t-is service. T-e boo:in) so$t0"re c"n be connected re)u#"r# t-rou)- "))re)"tors. Custo!ers c"n co!7"re t-e 7rices "nd $"ci#ities $ro! one -ote# to "not-er b uti#iin) t-is $"ci#it. (#"nnin) " v"c"tion -"s never been e"sier "nd !ore re"son"b#e t-"n no0. E"siness "$$ord"b#e 7ricin) "nd si!7#e co!7"rison s-o77in) !":e on#ine -ote# boo:in)s "cce7ted to "##.
BIBLIO=A(8>
1. i:i7edi" 2. So$t0"re En)ineerin) boo: b "jib "##
63