摘要
软件测试和软件维护是保证软件质量、减少软件错误的重要过程。在软件发展过程中,常常需要对程序进行修改。为了确保对程序的修改达到目的和没有引入新的错误,必须对修改后的程序进行回归测试和进行修改影响分析。在面向对象的程序中,由于鼓励类的继承和使用过程,程序修改的扩散效应更为明显,减少回归测试耗费、增强修改影响分析功能的问题显得非常重要。本文介绍了两种修改影响分析方法:基于类粒度的防火墙方法和类成员粒度的调用图方法,并对防火墙算法进行了改进,并对基于调用图的分析方法进行了简化。针对不同的需求和实际情况,可以采用不同方法或结合两种方法进行修改影响分析,提高分析效率。
It is obvious that small changes made in part of a program can have major and non-local effect in object-oriented programs. Therefore, reducing the expense of regression testing is very important. Because of inheritance and dynamic binding, the relationship of class members is very complex, and it induces the difficulty of change impact analysis. This paper introduces two methods that can be used to analyze the change impact of object-oriented programs, one is based on class firewalls, and the other based on call graphs. Furthermore, we improve the two methods to adapt to more change impact
出处
《计算机工程与科学》
CSCD
2005年第5期101-103,共3页
Computer Engineering & Science
基金
国家自然科学基金资助项目(60273070)