Comparison of class-level versus object-level static and dynamic coupling and cohesion measures in object oriented programming

Author(s):  
Vasudha Dixit ◽  
Rajeev Vishwkarma
Author(s):  
N. Gupta ◽  
D. Saini ◽  
H. Saini

Object-oriented programming consists of several different levels of abstraction, namely, the algorithmic level, class level, cluster level, and system level. In this article, we discuss a testing technique to generate test cases at class level for object-oriented programs. The formal object oriented class specification is used to develop a test model. This test model is based on finite state machine specification. The class specification and the test model is analyzed to select a set of test data for each method of the class, and finally the test cases can be generated using other testing techniques like finite-state testing or data-flow testing.


Author(s):  
Anjali Verma ◽  
Bhupesh Kr. Dewangan

Several authors have tried to address the problem of impact, effect, and relationship amongst the collection of coupling measures by introducing frameworks to characterize different approaches to coupling and the relative strengths of these, although, on their own, none of the frameworks could be considered comprehensive. There are three existing and quite different frameworks for object-oriented coupling. First, Eder et al. identify three different types of relationships. These relationships, interaction relationships between methods, component relationships between classes, and inheritance between classes, are then used to derive different dimensions of coupling which are classified according to different strengths. Second, Hitz and Montazeri approach coupling by deriving two different types of coupling: object level coupling and class level coupling which are determined by the state of an object and the state of an objects implementation respectively. Again different strengths of coupling are proposed. And third, Briand et al. (1997) constitute coupling as interactions between classes. The strength of the coupling is determined by the type of the interaction, the relationship between the classes, and the interactions locus of impact. As none of the frameworks has been used to characterize existing measures to the different dimensions of coupling identified, the negative aspects highlighted above are still very common ones.


1990 ◽  
Author(s):  
E. H. Bensley ◽  
T. J. Brando ◽  
J. C. Fohlin ◽  
M. J. Prelle ◽  
A. M. Wollrath

Sign in / Sign up

Export Citation Format

Share Document