After implementing the GetElementFromPoint method, you can test the ability of the Object Spy or OIC to identify objects in your environment.
Note: For the OIC, you also need to configure it in advance. For details, see Configuring and Using the Object Identification Center.
Ensure that the Testing Agent and UFT One are closed.
Install the updated Testing Agent.
Open UFT One and make sure that the Testing Agent is launched. (For more information, see steps 2 to 4 in Testing That UFT One Recognizes Your Testing Environment.)
Run an application that contains objects of the types you defined in the testing environment.
In UFT One, open the Object Spy and click the pointing hand button. Click on an object from your environment in the application.
For the OIC, click the Start spying button instead.
Make sure that the UFT One identifies the object correctly. Verify the following:
The Object Spy or OIC displays the correct test object hierarchy.
The clicked test object is displayed under the correct parent.
UFT One identifies the test object class correctly and displays the correct icon for this test object class (if you defined one in the testing environment XML).
The Object Spy or OIC displays all of the test object methods and identification properties as you defined them in the testing environment XML.