標題: C++程式測試環境
A Testing Environment for C++ Programs
作者: 柯仁傑
Jen-Chieh Ko
鍾乾癸
Chyan-Goei Chung
資訊科學與工程研究所
關鍵字: 測試;軟體測試;物件導向測試;Testing;Software Testing;Object-Oriented Testing
公開日期: 1994
摘要: 由於 C++ 程式的特性和元件跟傳統程式不同,增加了封裝、繼承、及多 型等三種特性和類別及物件等兩種元件。這些特性使傳統測試方法不能適 用,會造成許多新的問題出現,例如:類別之間關係密切要如何決定測試 順序、整合測試的策略、以及在迴歸測試時那些模組需要重測等等,因此 需要有一套 C++ 程式之測試方法。本論文分析傳統測試方法應用至程式 所產生的問題及整理前人研究成果,提出類別測試順序和成員測試順序的 步驟,歸納整測試之策略及迴歸測試之方法,解決了傳統測試方法不適用 於物件導向程式測試的問題。最後根據前面所提出之測試方法設計一個完 整的C++ 程式測試環境。此環境的主要功能如下: (1) C++ 程式元件間 的測試順序的提供。 (2) 自動產生類別測試驅動程式。 (3) 動態測試環 境。 (4) 測試報告的產生。 (5) 自動迴歸測試。 C++ Program has different properties and elements compare to the traditional program. It has three more properties which are encapsulation, inheritance and polymorphism. These properties make the traditional testing methods can't be used because they cause a lot of new testing problems. For example, the testing order between classes and member function in a class, the integration testing strategy, and those modules must retested in the regression testing phase. Therefore, it is necessary to propose one set of the testing methods for C++ programs. In the thesis, we analyze the problems suffered when applying traditional testing methodology to C++ programs and survey previous research results. Then we propose an algorithm to determine class testing order, propose using data member define-use relationship to determine member function testing order for a given class and summarize integration and regression testing strategy for C++ programs. Especially, a prototype testing environment for C++ programs is established which provides the following functions: (1) C++ program elements testing order (2) class test driver automatic generator (3) dynamic testing environment (4) testing report generator (5) automatic regression testing
URI: http://140.113.39.130/cdrfb3/record/nctu/#NT830392049
http://hdl.handle.net/11536/58972
顯示於類別:畢業論文