Title :
Effect of class testing on the reliability of object-oriented programs
Author :
Chen, Mei-Hwa ; Kao, Howard M.
Author_Institution :
State Univ. of New York, Albany, NY, USA
Abstract :
Although object-oriented programming has been increasingly adopted for software development and many approaches for testing object-oriented programs have been proposed, the issue of reliability of object-oriented programs has not been explored. The objective of this study was to investigate the effectiveness of class testing from the perspective of reliability. The experiments in this study involved testing and measuring the reliability of a C++ program and a Java program. We introduced a class testing technique that exploits the function dependence relationship to reduce the testing effort in subclass testing and in testing polymorphism without degrading the reliability of object-oriented programs. In subclass testing, the impact of function dependence class testing on reliability was compared with two other techniques: exhaustive class testing, which flattens every class and tests every function in the class; and minimal class testing, which tests only new and re-defined functions. The results show that function dependence class testing preserves the same level of program reliability as does exhaustive class testing, while the effort is significant reduced. In polymorphism testing, we conducted an experiment to observe the relationship between the binding coverage and the reliability of the program. The results suggest that testing possible bindings is necessary, and using the function dependence relationship to determine which bindings to cover in testing is sufficient
Keywords :
object-oriented programming; program testing; software reliability; C++ program; Java program; binding coverage; exhaustive class testing; function dependence class testing; minimal class testing; object-oriented programs; polymorphism testing; redefined functions; software development; software reliability; subclass testing; Automation; Degradation; Encapsulation; Java; Marine vehicles; Object oriented programming; Reliability engineering; Robustness; Software reliability; Software testing;
Conference_Titel :
Software Reliability Engineering, 1997. Proceedings., The Eighth International Symposium on
Conference_Location :
Albuquerque, NM
Print_ISBN :
0-8186-8120-9
DOI :
10.1109/ISSRE.1997.630876