Set up the Adobe Flash Player Debugger to enable UFT GUI testing

This task describes how to set up the Adobe Flash Player Debugger on your UFT computer, and configure it for UFT testing.

After you do this, you can run Flex applications using the Adobe Flash Player Debugger (or the Adobe Flash Player Projector Debugger) and test them using UFT like you would any other type of application. You do not need to prepare the application for testing or load it in any special way.

This method can be used for SWF and HTML Flex applications.

Note: If you do not want to use the debugger to run your Flex applications, you can choose an alternative method of enabling UFT to communicate with your Flex application.  For details, see Enabling UFT to identify objects in your Flex application.

Ensure the Adobe Flash Player Debugger is installed

If you do not have the Adobe Flash Player Debugger, download and install the program file that is relevant for your operating system and browser.

Tip: Some tips on locating and installing the Flash Player Debugger:

  • The names Flash Player Debugger and Flash Player ActiveX control content debugger are interchangeable.

  • To successfully complete the Flash Player Debugger installation on Windows 2012 or 2012 R2, add the Desktop Experience feature in the Windows Server Manager before installing the Flash Player Debugger from Adobe's site.

Back to top

Set up Adobe Flash Player Debugger to integrate with UFT

In this step you edit the Adobe Flash Player Debugger configuration file and add UFT's Flex Agent to the trusted locations in the Flash Player's global security settings.

Note: The UFT Flex Agent and the instance of UFT running the test must have the same version.

  • Configure the Flash Player to load the UFT Flex Agent every time it runs an application and to refrain from opening message boxes during the run session (direct the messages to the player's log file instead):

    1. Create or open the %USERPROFILE%\MM.CFG file

    2. Add the following lines to the file (replace <UFT installation folder> with the relevant path):

      PreloadSWF=<UFT installation folder>\dat\Flash\Flex\UFTFlexAgentInjector.swf
      SuppressDebuggerExceptionDialogs=1
      ErrorReportingEnable=1
      TraceOutputFileEnable=1

    You can use this default file as an example: <UFT Installation folder>\dat\Flash\Flex\MM.CFG

  • (Optional) Add UFT's Flex Agent folder to the trusted locations in the Flash Player's global security settings.
    (You need to perform this step only if you find that UFT does not properly interact with your Flex applications.)

    If you have an Internet connection:

    1. Open http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

      This opens the Flash Player Help, which opens the actual Global Security Settings panel.

    2. Open the Edit locations drop-down list and select Add location.

    3. In the dialog box that opens, enter <UFT installation folder>\dat\Flash\Flex\ in the text box (replace <UFT installation folder> with the relevant path), and click Confirm.

    Otherwise:

    1. Create or open a text file located in the FlashPlayerTrust folder in the following location: %appdata%\Macromedia\Flash Player\#Security\FlashPlayerTrust

      Each line in the text file contains the name of a file or folder to trust.

    2. Add the following line (replace <UFT installation folder> with the relevant path): <UFT installation folder>\dat\Flash\Flex\

Back to top