Download presentation

Presentation is loading. Please wait.

Published byKade Dear Modified over 2 years ago

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.

Similar presentations

OK

Slide 1 Systems Analysis & Design CS183 Spring Semester 2008 Dr. Jonathan Y. Clark Course Website:

Slide 1 Systems Analysis & Design CS183 Spring Semester 2008 Dr. Jonathan Y. Clark Course Website:

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Download ppt on turbo generator power Ppt on google cloud storage Ppt on statistics and probability worksheets Ppt on complex numbers class 11th Ppt on front office management in hospital Ppt on trade fair in china Ppt on limits and derivatives examples Ppt on rhs congruence Ppt on great indian astronauts Seeley's anatomy and physiology ppt on cells