标题: 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
显示于类别:Thesis