Presentation is loading. Please wait.

Presentation is loading. Please wait.

Binder Object-Oriented Testing Metrics. Lack of Cohesion in Methods b b In order to calculate the lack of Cohesion in methods, the Software Engineer must.

Similar presentations


Presentation on theme: "Binder Object-Oriented Testing Metrics. Lack of Cohesion in Methods b b In order to calculate the lack of Cohesion in methods, the Software Engineer must."— Presentation transcript:

1 Binder Object-Oriented Testing Metrics

2 Lack of Cohesion in Methods b b In order to calculate the lack of Cohesion in methods, the Software Engineer must consult their CRC index cards. They should then do the following, – –Pick the first attribute. – –Go through the list of CRC cards and count the number of cards that access that particular attribute picked in step one. – –Record this number and repeat until all attributes have been processed. – –Take the greatest number and input this number into the cell.

3 Number of Public Attributes b b In order to find the number of public attributes, the Software Engineer must do the following, – –Obtain the class CRC cards. – –Pick an attribute. – –Go through the class collaborators and see if any access the attribute. – –If so, increment the count. – –Repeat process until all attributes have been processed. – –Enter count into the cell.

4 Number of Private Attributes b b In order to find the number of private attributes, the Software Engineer must do the following, – –Obtain the class CRC cards. – –Pick an attribute. – –Go through the class collaborators and see if any access the attribute. – –If not, increment the count. – –Repeat process until all attributes have been processed. – –Enter count into the cell. b b * Another way to calculate the number of private attributes is as follows, b b Number of Private Attributes = Total Number of Attributes - Number of Public Attribute

5 Friend Classes b b In order to calculate the number of friend classes, the Software Engineer must do the following, – –Obtain all classes CRC cards. – –Process all classes and count the number that has the class under calculation as a collaborator. – –Enter this number into the cell.

6 Number of Root Classes b b In order to determine the number of root classes, the Software Engineer must do the following, – –Obtain the Projects Inheritance Chart. – –From the chart, count the number of distinct parent classes that all other classes are derived from. – –Enter this number into the cell.


Download ppt "Binder Object-Oriented Testing Metrics. Lack of Cohesion in Methods b b In order to calculate the lack of Cohesion in methods, the Software Engineer must."

Similar presentations


Ads by Google