博碩士論文 995205006 完整後設資料紀錄

DC 欄位 語言
DC.contributor軟體工程研究所zh_TW
DC.creator范振維zh_TW
DC.creatorChen-Wei Fanen_US
dc.date.accessioned2012-7-12T07:39:07Z
dc.date.available2012-7-12T07:39:07Z
dc.date.issued2012
dc.identifier.urihttp://ir.lib.ncu.edu.tw:88/thesis/view_etd.asp?URN=995205006
dc.contributor.department軟體工程研究所zh_TW
DC.description國立中央大學zh_TW
DC.descriptionNational Central Universityen_US
dc.description.abstract在軟體的開發流程中導入xUnit測試框架(xUnit testing framework)的時候,往往需要花費很大的力氣對SUT (System Under Test)進行重構(refactoring)才能夠順利地進行單元測試。雖然同樣都是軟體測試,單元測試並不像系統整合測試一樣可以利用工具來自動化地進行運作,它反而需要程式開發人員額外手動撰寫大量的測試程式碼才能達到目的。很不幸地,這些手動撰寫的測試程式碼就像系統程式碼一樣,非常容易落入程式碼維護的災難之中。 在這篇論文當中,我們針對開發人員在使用xUnit測試框架的時候需要付出額外的代價所帶來的問題提出了一種新的方法並且依據這個方法打造了一個工具,稱之為CRUnit(Capture / Replay based Unit Testing)。CRUnit是Eclipse整合開發環境(Integrated Development Environment, IDE)裡面的JUnit工具的延伸,它藉由除錯器(debugger)的幫助,將單元測試分成錄製與重播(Capture / Replay)兩種階段來進行,以取代傳統xUnit測試框架裡面所需要大量撰寫的驗證程式碼(assertions)。CRUnit突破了傳統xUnit testing framework必須將SUT視為一個黑盒子來做測試的限制,它利用除錯器的幫忙可以對SUT的內部狀態做出探測和驗證,如此一來我們就再也不需要在測試程式碼裡面撰寫冗長和繁瑣的assertion,也不需要為了測試的目的而違背黑盒子原則去對CUT (Class Under Test)的封裝做出破壞。我們利用的是人類善於使用人眼和大腦來對所看見的事物做出判斷和驗證的天性,搭配視覺化工具(visualizers)的幫忙來完成這樣子的半自動化單元測試。 zh_TW
dc.description.abstractAdopting xUnit testing framework in software development often requires a lot of refactoring to the system under test (SUT). Contrast to system testing which can be performed by tools, xUnit testing is coding activity which produces test code as the delivery. However, test code often suffers from maintenance problems like system code. In this paper, a prototype tool called CRUnit is proposed to reduce the test overhead from adopting xUnit testing framework. CRUnit is an extension to the JUnit module in Eclipse IDE, which can replace the hand-crafted assertions by a Capture / Replay process with the help from debuggers. Contrast to xUnit testing framework that treats a SUT as a black-box, CRUnit probes the internal states of a SUT so that complicated hand-crafted assertions can be excluded from test methods and class encapsulation principles are no longer compromised. This semi-automated process is achieved by introducing the verification power of human brain and human eyes and the help from the “visualizers”. en_US
DC.subject單元測試zh_TW
DC.subjectCapture / Replayen_US
DC.subjectunit testingen_US
DC.titleCRUnit - Capture / Replay Based Unit Testingzh_TW
dc.language.isozh-TWzh-TW
DC.titleCRUnit - Capture / Replay Based Unit Testingen_US
DC.type博碩士論文zh_TW
DC.typethesisen_US
DC.publisherNational Central Universityen_US

若有論文相關問題,請聯絡國立中央大學圖書館推廣服務組 TEL:(03)422-7151轉57407,或E-mail聯絡  - 隱私權政策聲明