Implementation of object distance following
"Object distance and its application to adaptive random testing of object-oriented programs"
by Ilinca Ciupa, Andreas Leitner, Manuel Oriol, Bertrand Meyer (
http://se.ethz.ch/~meyer/publications/testing/object_distance.pdf).
We implemented the following changes:
- In the paper if a reference field does not match (i.e., is different
because the types are different) then R = 10 is used as difference. This does
not make sense for several reasons:
- The difference is already taken into account in the type distance.
- If one type adds a field but the other does not, so what? R/2?
Therefore we decided to apply the value R as factor in the type difference to
the non-shared fields.
- In the paper a factor of 1/2 is applied to the recursive distance. We
treat the recursive distance simply as any other field distance, thus it is
normalized by the number of fields and not by a static factor.
- There is no distance given for two characters. We defined that to be C =
10.