How to switch between Simple Spy and Deep Spy of UIAutomation Add-in?

  • KM02155079
  • 26-Feb-2016
  • 20-Sep-2016

Summary

Switch between UIA Simple Spy or Deep Spy

Question

Starting Unified Functional Testing (UFT) version 12.52, UIAutomation Add-in was included to support Microsoft UI Automation. There are two additional Spy-hierarchy capabilities:

  • Deep Spy - allowing browse through almost every UI object in the application
  • Simple Spy - featuring only key test objects

How to switch between them?

 

Answer

Currently there is no built-in method, only via registry method, per user:

  1. Go to Start menu, Select Run, then type "regedit" an press "Ok"
  2. Navigate to below path:

    [HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\Packages\UIAPackage\Settings]
     
  3. Locate (and if not found, create) DWORD with name "UIASimpleSpy"
  4. Setup as below:
    • Deep Spy, use: 0
    • Simple Spy, use: 1