【正文】
。 } return list。 }265 系統(tǒng)測試 在本次書店系統(tǒng)開發(fā)過程中,主要用到了單元測試,白盒測試和黑盒測試幾種測試方法: 單元測試集中檢測軟件設(shè)計的最小單元——模塊。通常,單元測試和編碼測試是同步進行的,在本次開發(fā)中,我也是通過Junit在開發(fā)過程中通過對模塊接口,局部數(shù)據(jù)結(jié)構(gòu),重要的執(zhí)行通路,出錯處理通路和邊界條件等五個方面進行測試的。另外,在測試過程中,也用到了白盒測試和黑盒測試的理論知識。 白盒測試:把測試對象看作一個打開的盒子,它允許測試人員利用程序內(nèi)部的邏輯結(jié)構(gòu)及有關(guān)信息來設(shè)計或選擇測試用例,對程序所有邏輯路徑進行測試。 黑盒測試:黑盒測試著重測試軟件功能,并不能取代百合測試,是一種與白盒測試互補的測試方法,它很可能發(fā)現(xiàn)白盒測試不易發(fā)現(xiàn)的其他類型錯誤。 黑盒測試力圖發(fā)現(xiàn)下述類型的錯誤:1) 功能不正確或遺漏了功能。2) 界面錯誤3) 數(shù)據(jù)結(jié)構(gòu)錯誤或外部數(shù)據(jù)庫訪問錯誤。4) 性能錯誤。5) 初始化和終止錯誤。,是對登錄模塊的一個黑盒測試用例: 登錄模塊的黑盒測試案例編號測試模塊測試操作預(yù)期結(jié)果功能測試結(jié)果回歸測試結(jié)果Test001登錄模塊;,點擊登錄。提示用戶名或密碼是必須的符合預(yù)期結(jié)果符合預(yù)期結(jié)果Test002登錄模塊(不登錄);。跳轉(zhuǎn)到另一個頁面,提示沒有登錄符合預(yù)期結(jié)果符合預(yù)期結(jié)果Test003登錄模塊。;;,點擊安全退出;,在地址欄粘貼地址,按回車鍵。跳轉(zhuǎn)到另一個頁面,提示沒有登錄符合預(yù)期結(jié)果符合預(yù)期結(jié)果白盒測試在測試過程的早期進行,而黑盒測試主要用于測試過程的后期。本系統(tǒng)通過上述測試方法發(fā)現(xiàn)了不少問題,并及時給予了解決,通過Junit進行單元測試大大的提高了系統(tǒng)安全性,同時也提高了開發(fā)效率。通過白盒和黑盒測試排除了不少系統(tǒng)問題,使得該電子商務(wù)網(wǎng)上書店系統(tǒng)能夠更加健壯的運行。總結(jié)本次畢業(yè)設(shè)計,是我第一次做這樣的開發(fā),不是很熟練,而時間又很短,所以對于開發(fā)出來的成品不可能十全完美,只能體現(xiàn)標題所反映的內(nèi)容。從技術(shù)上來說,Java良好的跨平臺性,使得開發(fā)出來的Java程序可以跨平臺的使用。(在Windows平臺上開發(fā)出來的程序不經(jīng)修改或是很少的修改,便可以移植到Linux或其它的支持JSP技術(shù)的平臺)。但是由于時間比較緊迫,而且加上開發(fā)環(huán)境的限制(不易找到Linux平臺),使得跨平臺的特性無法得到展示。上述的時間和開發(fā)環(huán)境的限制,局限了此次的開發(fā)在較為常用的Windows平臺上開展。此次畢業(yè)設(shè)計的完成,要感謝我的指導(dǎo)老師——楊老師,他在我完成此次項目上給予了很大的幫助,幫我解決了很多困惑的問題。開發(fā)的過程是痛苦的,因為遇到了大量的問題,不過在老師的幫助下,最終解決了問題,基本上實現(xiàn)了畢業(yè)設(shè)計的需求。在這次畢業(yè)設(shè)計中,我學(xué)到的不只是技術(shù),還有學(xué)習(xí)技術(shù)的能力以及遇到問題解決得辦法!再次感謝我的導(dǎo)師!致謝轉(zhuǎn)眼畢業(yè)設(shè)計到了尾聲,我由衷地感謝我們的指導(dǎo)老師楊老師,在這次畢業(yè)設(shè)計中,在楊剛老師的指導(dǎo)下完成了電子商務(wù)網(wǎng)上書店系統(tǒng)的系統(tǒng)調(diào)研、需求分析、總體設(shè)計、詳細設(shè)計、界面設(shè)計。其中主要的可行性分析、需求分析、總體設(shè)計,他們是比較重要的組成部分,也是后期軟件的基礎(chǔ)與必備。需求分析文檔編輯的好壞直接影響整個軟件設(shè)計工作。本系統(tǒng)基本能夠?qū)崿F(xiàn)客戶遠程購書的功能,在進一步完善的基礎(chǔ)上,將可以投入實際的應(yīng)用。本次所作課題是電子商務(wù)書店系統(tǒng)的設(shè)計和實現(xiàn),由于我的編程水平和經(jīng)驗不足,有些功能的實現(xiàn)并不完美、并不理想。在已經(jīng)完成的程序中,也存在許多不盡人意的算法,也沒有統(tǒng)一優(yōu)化,系統(tǒng)有待進一步改善,而這些問題也讓我充分意識到軟件開發(fā)的困難程度。通過本次畢業(yè)設(shè)計,使我對電子商務(wù)網(wǎng)站的開發(fā)有了一定的了解。對軟件開發(fā)和手段,我都有了一定的認識;豐富了我的軟件開發(fā)的經(jīng)驗,提高了程序編寫得水平。加深理解了在課程中、書本上學(xué)到的知識和理論,并使其在實際開發(fā)中得到運用。同時通過編寫畢業(yè)設(shè)計論文,掌握了軟件文檔的書寫方法和書寫格式。在楊剛老師的關(guān)心幫助支持下,經(jīng)過很長的辛勤探索、不懈努力,終于順利完成了本次畢業(yè)設(shè)計任務(wù)。并為我今后繼續(xù)學(xué)習(xí)、深造奠定了基礎(chǔ),我非常感謝各位老師、同學(xué)的支持與幫助。參考文獻[1] 嚴蔚敏,(C語言版)[M].清華大學(xué)出版社,1997.[2] Bruce Java[J].Manning Publications,2002.[3] Bruce in Java[J].Prentice Hall PTR,2002.[4] Roger Bate, Sandy Shrum. CMM Integration Framework[J], CMU/SEI Spotlight,1998.[5] :Java對象持久化技術(shù)詳解[M].電子工業(yè)出版社,2010.[7] [M].電子工業(yè)出版社,2009.[8] [M].電子工業(yè)出版社,2006.[9] [M],清華大學(xué)出版社,2009.[10] 卜炟(da). 21天學(xué)通Java Web開發(fā)[M],電子工業(yè)出版社,2009.[11] 苗雪蘭,劉瑞新,[M],機械工業(yè)出版社,2009.[12] [M],清華大學(xué)出版社,2008.科技外文文獻JSP and WEB technology1 JSP Introduction JSP (JavaServer Pages) is a Javabased scripting technology. Is advocated by Sun Microsystems Inc., together with a number of panies involved in the establishment of a dynamic web page technology standards. JSP technology is somewhat similar to ASP technology, It is a traditional HTML page file (*. htm, *. html) to insert Java program segment (Scriptlet) and JSP tag (tag), To form the JSP file(*jsp). Web development with JSP is a crossplatform applications that can run under Linux, but also in other operating systems. In the JSP of the many advantages, one of which is that it will be HTML encoded Web page from the business logic separated effectively. JSP access with reusable ponents, such as Servlet, JavaBean and Javabased Web applications. JSP also supports directly in the Web page embedded Java code. JSP can be used two ways to access documents: JSP documents sent by the browser request, the request sent to the Servlet. JSP technology uses Java programming language, XMLtype tags and scriptlets, to have a package deal with the logic of dynamic pages. Page tags and scriptlets can also exist in the server access to the resources of the application logic. JSP logic and Web page design and display isolated and support reusable ponentbased design, Webbased applications more quickly and easily developed. The Web server when meets visits the JSP homepage the request, first carries out segment, will then carry out the result code to return together with JSP in the document HTML for the customer. The insertion Java segment may operate the database, again the directional homepage and so on, realizes the function which the establishment dynamic homepage needs. JSP and Java Servlet are the same, is in the server end execution, usually returns to this client side is a HTML text, therefore client side, so long as has the browser to be able to glance over. The JSP page is posed of the HTML code and the inserting Java code. The server in the page by the client side was requested that later will carry on processing to these Java code, will then produce the HTML page will return gives the client side the browser. Java Servlet is the JSP technology base, moreover the largescale Web application procedure39。s development needs Java Servlet and the JSP coordination can plete. JSP had the Java technology simply easy to use, plete objectoriented, had the platform independency, and safe reliable, mainly faced Internet39。s all characteristics.2 JSP puting technique To carry on the dynamic website conveniently fast the development, JSP has made the improvement in the following several aspects, causes it to bee builds the cross platform fast the dynamic website first choice plan. carries on the content production and the demonstration separates With the JSP technology, the Web page development personnel may use HTML or the XML marking design and the formatted final page, and uses the JSP marking or the tootsy produces on page39。s dynamic content originally. Production content39。s logic is sealed in marks and in the JavaBeans module, and ties up in the script, all scripts in server end movement. Because core logic is sealed in marks and in JavaBeans, therefore the Web administrative personnels and the page designer, can edit and use the JSP page, but does not affect the content the production. In the server end, the JSP engine explained that the JSP marking and the script, produce the content which requested, and (or XML) page39。s form transmit