Implementing CompareObjectIds
Implement the CompareObjectIds method to check whether the two object IDs pass to the method refer to the same object.
When UFT One adds all of an object's descendants to the object repository, UFT One compares the object ID of each object to those of the existing ones (belonging to the same parent) to make sure that the object was not previously added. If the object IDs are simple strings or integers, UFT One compares them without calling the method. Otherwise, it calls the CompareObjectIds method for the Testing Agent to perform the comparison. Implement this method to return true
if both object IDs refer to the same object.