Enhancing Your UFT Testing Agent > Developing Support for the Object Spy > Testing Your Support for the Object Spy

Testing Your Support for the Object Spy

After implementing the GetElementFromPoint method, you can test the ability of the Object Spy to identify objects in your environment.

To test your support for the Object Spy:

  1. Ensure that the Testing Agent and UFT are closed.

  2. Install the updated Testing Agent.

  3. Open UFT and make sure that the Testing Agent is launched. (For more information, see steps 2 to 4 in Testing That UFT Recognizes Your Testing Environment.)

  4. Run an application that contains objects of the types you defined in the testing environment.

  5. In UFT, open the Object Spy and click the pointing hand button. Click on an object from your environment in the application.

  6. Make sure that the UFT identifies the object correctly. Verify the following:

    • The Object Spy displays the correct test object hierarchy.

    • The clicked test object is displayed under the correct parent.

    • UFT 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 displays all of the test object methods and identification properties as you defined them in the testing environment XML.