Set up the Adobe Flash Player Debugger to enable GUI testing

UFT One 2022 and later:  Following the retirement of the Adobe Flash Player, UFT One no longer supports the Flex Add-in out of the box.

If you require the Flex Add-in, contact Micro Focus Support.

This task describes how to set up the Adobe Flash Player Debugger on your UFT One computer, and configure it for UFT One 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 One 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 One to communicate with your Flex application.  For details, see Enable UFT One to identify objects in your Flex application.

Ensure the Adobe Flash Player Debugger is installed

Install the Adobe Flash Player Debugger.

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.

Back to top

Set up Adobe Flash Player Debugger to integrate with UFT One

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

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

  • Configure the Flash Player to load the UFT One 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 One installation folder> with the relevant path):

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

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

  • (Optional) Add UFT One'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 One does not properly interact with your Flex applications.)

    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 One installation folder> with the relevant path): <UFT One installation folder>\dat\Flash\Flex\

Back to top