【正文】
同時(shí),在系統(tǒng)開發(fā)過程中還有同組的同學(xué)也給了我不少幫助,這里一并表示感謝。在撰寫論文階段,謝老師幾次審閱我們的論文,提出了許多寶貴意見,沒有他的指導(dǎo),我們就不能較好的完成課題設(shè)計(jì)的任務(wù)。他認(rèn)真負(fù)責(zé)的工作態(tài)度,嚴(yán)謹(jǐn)?shù)闹螌W(xué)精神和深厚的理論水平都使我收益匪淺。致 謝在論文即將完成之際,回顧緊張但又充實(shí)的學(xué)習(xí)和開發(fā)過程,本人在此向所有關(guān)心我的及幫助我的老師和同學(xué)們致以最真誠的感謝。相信這個(gè)系統(tǒng)可以對(duì)考試的進(jìn)行有所幫助。(4)在程序編好后,對(duì)程序的測試是極其重要的一步,測試的意義在于,可以發(fā)現(xiàn)不明顯的錯(cuò)誤,使程序可以趨于完美。(3)畢業(yè)設(shè)計(jì)過程中,編程方法固然重要,但網(wǎng)頁也要注意美觀,布局要合理,主題要突出,界面要友好,要讓使用者使用時(shí),一目了然。其中我對(duì)以下幾點(diǎn)有深刻的體會(huì):(1)編程中定義文件名及變量的名稱時(shí),一定要規(guī)范,必要時(shí)應(yīng)該加上注解,不能想當(dāng)然地定義某個(gè)變量、常量等。 測試方法: 1. 在表單中輸入相應(yīng)的合理的信息,點(diǎn)擊提交,檢驗(yàn)返回信息是否正確和完整;2. 在表單中輸入依據(jù)數(shù)據(jù)庫設(shè)計(jì)中在數(shù)據(jù)類型,長度,格式不合理的非法的數(shù)據(jù), 檢驗(yàn)系統(tǒng)是否有相應(yīng)的錯(cuò)誤提示信息。 測試結(jié)果:運(yùn)行正常 測試目標(biāo): 在使用了數(shù)據(jù)庫的 Web 應(yīng)用系統(tǒng)中,一般情況下,可能發(fā)生兩種錯(cuò)誤,分別是數(shù)據(jù)一致性錯(cuò)誤和輸出錯(cuò)誤。從而縮短軟件開發(fā)者的再開發(fā)時(shí)間和所耗費(fèi)的精力、資金。因此,測試分析報(bào)告對(duì)于今后對(duì)軟件的功能的加強(qiáng),不足之處的彌補(bǔ)等都起著十分重要的提綱作用。 charset=gb2312title目錄/titlebase target=mainFrame/headbodyp align=centera href=首頁/a/pp align=centera href=://localhost/asptemp/chapter1/用戶管理/a/pp align=centera href=://localhost/asptemp/chapter1/試題管理/a/pp align=centera href=://localhost/asptemp/chapter1/添加試題/a/pp align=centera href=網(wǎng)上查題/a/pp align=centera href=://localhost/asptemp/chapter1/教師注冊(cè)/a/p/body/html運(yùn)行環(huán)境windows xpWindows access進(jìn)行數(shù)據(jù)庫構(gòu)建1. 用戶信息表表5—3 student的結(jié)構(gòu)2. 教師信息表表5—4 teacher 的結(jié)構(gòu)3題庫表表5—5 test 的結(jié)構(gòu) E—R圖圖5—6 E——R圖圖5—7 數(shù)據(jù)流程圖圖5—8 系統(tǒng)首頁1. 教師登陸界面圖5—9 “教師登陸”界面2. 學(xué)員登陸界面圖5—10 “學(xué)員登陸”界面1. 教師主要操作界面(1)首頁圖5—11 教師操作首頁(2)用戶管理圖5—12 “用戶管理”界面(3)用戶管理更新圖5—13 “更新學(xué)員成績”界面(4)試題管理圖5—14 “試題管理”界面(5)試題管理更新圖5—15 “更改題目”界面(6)添加試題圖5—16 “添加試題”界面(7)教師注冊(cè)圖5—17 “教師注冊(cè)”界面2. 學(xué)員主要操作界面(1)學(xué)員注冊(cè)圖5—18“學(xué)員注冊(cè)”界面(2)注冊(cè)成功圖5—19 學(xué)員注冊(cè)成功提示(3)考試中圖5—20 考試界面(4)完成考試圖5—21 得分提示界面(5)未完成考試圖5—22 考試失敗提示界面第六章 測試 測試分析報(bào)告是在測試分析的基礎(chǔ)上,對(duì)測試的結(jié)果以及測試的數(shù)據(jù)等加以記錄、分析、總結(jié)。msg) end if dsql=select * from teacher where id is null set rs=() dsql,conn,1,3 rs(name)=(username) rs(password)=(password) set rs=nothing % center a href= target=_self注冊(cè)成功,點(diǎn)擊登陸/a /center % end if % /body /html(框架)htmlheadmeta equiv=ContentType content=text/html。bramp。39。amp。兩次密碼輸入不同 end if if strp(msg,注冊(cè)錯(cuò)誤信息)0 then (?msg=amp。用戶名不能為空 end if if strp(cstr((password)),cstr((password2)))0 then msg=msgamp。 charset=gb2312title成功/title /head body % ac=(ac) msg=注冊(cè)錯(cuò)誤信息 if (username)= then msg=msgamp。)(sql)()end if%/body/html5. 教師注冊(cè)模塊:管理員注冊(cè)模塊概述:(1)用戶名與密碼是否為空,是否符合標(biāo)準(zhǔn);(2)用戶名是否可用,是否重復(fù);(3)兩次輸入的密碼是否相同;(4)是否注冊(cè)成功;相應(yīng)代碼:%LANGUAGE=VBSCRIPT CODEPAGE=936%htmlheadmeta equiv=ContentType content=text/html。ansamp。,39。damp。,39。camp。,39。bamp。,39。aamp。,39。questionamp。ID (sql) ()%4. 添加試題模塊模塊概述:試題添加相應(yīng)代碼:%LANGUAGE=VBSCRIPT CODEPAGE=936%! include file= htmlbodyh2 align=center添加試題/h2form name=frmInsert method=post action=table border=1 width=80% align=centertr td題目/td tdinput type=text name=question size=50/td/trtr tdA/td tdinput type=text name=a size=50/td/trtr tdB/td tdinput type=text name=b size=50/td/trtr tdC/td tdinput type=text name=c size=50/td/trtr tdD/td tdinput type=text name=d size=50/td/trtr td答案/td tdinput type=text name=ans size=10/td/trtr td/td tdinput type=submit name=btnSubmin value=確定/td/tr/table/form%if (question) and (a) and (b) and (c) and (d) and (ans) thendim question,a,b,c,d,ansquestion=(question)a=(a)b=(b)c=(c)d=(d)ans=(ans)sql=insert into test(question,a,b,c,d,answer) values(39。39。amp。39。amp。39。amp。39。amp。39。amp。39。amp。 charset=gb2312title更新題目/title/headbodyh2 align=center更改題目/h2h2 align=left*注:答案字母必須大寫!/h2%strsql=select * from test where ID=amp。ID (strsql) ()else(成績不能為空!)end if% 3. 試題管理模塊模塊概述:試題的刪、查、改相應(yīng)代碼:%LANGUAGE=VBSCRIPT CODEPAGE=936%! include file= htmlbodyh2 align=center class=style2試題集/h2%sql=select * from test order by id DESCset rs=(sql)%table width=100% border=1 align=centertrth width=4% height=21編號(hào)/thth width=25%題目/thth width=14%A/thth width=14%B/thth width=14%C/thth width=14%D/thth width=5%答案/thth width=5%刪除/thth width=5%更新/th/tr%do while not %trtdspan%=rs(ID)%/span/tdtdspan%=rs(question)%/span/tdtdspan%=rs(a)%/span/tdtdspan%=rs(b)%/span/tdtdspan%=rs(c)%/span/tdtdspan%=rs(d)%/span/tdtdspan%=rs(answer)%/span/tdtddiv align=centera href=?ID=%=rs(ID)%刪除/a/div/tdtddiv align=centera href=?ID=%=rs(ID)%更新/a/div/td/tr%loop%/table/body/html! include file= %strsql=delete from test where ID=amp。39。amp。(ID)set rs=(strsql)(rs(username)amp。 sqlc,conn,1,1 if not() thensession(username)=rsc(name) session(password)=rsc(password) =30set rsc=nothing () else(對(duì)不起,用戶名或密碼錯(cuò)誤!)end if% 2. 用戶管理模塊模塊概述:用戶的改、刪、查相應(yīng)代碼:%LANGUAGE=VBSCRIPT CODEPAGE=936%! include file= htmlbodyh2 align=center class=style1參加考試學(xué)員/h2%sql=select * from student order by id DESCset rs=(sql)%table width=80% border=1 align=centertr bgcolor=999999th width=16%編號(hào)/thth width=32%姓名/thth width=17%成績/thth width=18%刪除/thth width=17%更新/th/tr%do while not %trtd%=rs(ID)%/tdtd%=rs(u