Instrumentation Wizard, Flash/Flex, and Location of mm.cfg

Ranorex Studio, Spy, Recorder, and Driver.
Certified Professional
Certified Professional
Posts: 14
Joined: Tue Mar 24, 2015 6:28 am
Location: Sydney, Australia

Instrumentation Wizard, Flash/Flex, and Location of mm.cfg

Post by log » Wed Aug 12, 2015 6:03 am


I installed Ranorex for the purposes of automating a Flex application today. After running the Instrumentation Wizard for Flash/Flex applications successfully, I was still greeted with the Ranorex Technology Limitation popup for Flash/Flex when I tried to use the Ranorex Spy with application.

One thing I noticed is that even with the TraceOutputFileEnable property set to 1 as described in ... sting.html, the Debug Flash Player was not creating a log file in any browser I tried - IE, Chrome, Firefox, and Safari.

In this thread, ... t5671.html, Markus (username: mebner) pointed out that the mm.cfg file should be in the %HOMEDRIVE%%HOMEPATH% directory. This is further supported by Adobe's documentation for configuring the debug Flash player at ... layer.html.

The article in the Ranorex User Guide linked above says that the Instrumentation Wizard puts it into the %USERPROFILE% directory.

On the machine I was using (with 64-bit Windows 7 Professional), %HOMEDRIVE%%HOMEPATH% and %USERPROFILE% resolve to two different locations:
- %HOMEDRIVE%%HOMEPATH% points to a mapped network drive

Once I moved the mm.cfg file from %USERPROFILE% to %HOMEDRIVE%%HOMEPATH%, both Ranorex Spy and test execution from Ranorex Studio worked fine and the Flex elements were identified in all browsers.

On a clean VM with Windows 7, both of the paths resolve to %SYSTEMDRIVE%\Users\%USERNAME%.

@Support: While I have managed to get things working in my environment, would it an improvement for the Instrumentation Wizard to place the mm.cfg file in %HOMEDRIVE%%HOMEPATH% as opposed to %USERPROFILE%?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Instrumentation Wizard, Flash/Flex, and Location of mm.cfg

Post by Support Team » Tue Aug 18, 2015 7:14 am

Hello Gabriel,

Great to hear that you could solve your issue.

The suggested functionality is already implemented in the instrumentation process. If %USERPROFILE% differs from %HOMEDRIVE%%HOMEPATH%, the mm.cfg is placed in both locations.

In your case, it could be that there was a permission issue and Ranorex was not able to place the file on the corresponding network drive. The issue could also be caused by a connection problem with the network drive.