Launching exe on 4.0

Ask general questions here.
Posts: 1
Joined: Wed Mar 20, 2013 10:23 pm

Launching exe on 4.0

Post by Kevinsyel » Wed Mar 20, 2013 10:30 pm

Hi There Ranorex users,

First time posting, and I have a few questions regarding Automating Ranorex 4.0.
When I had my developers write test cases in Ranorex 3.3, I could compile their solutions using MSbuild in a batch script, and run the test cases by calling the resulting .exe file. To add to that, I could append the command "/rf:" followed by a directory and specify an output file in the form of an XML file, complete with an XSL to make it human readable.

When our company received the upgrade to version 4.0, we were no able to launch the compiled .exe files by themselves, as the test scripts were no longer able to detect UI elements. This resulted in us called the Test exe through Ranorex.UiaLauncher32.exe. While this works fine, we are no longer able to receive XML output from Ranorex.

Is there a way to have the scripts output an XML result file for me using Ranorex.UiaLauncher32?


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

Re: Launching exe on 4.0

Post by Support Team » Mon Mar 25, 2013 5:44 pm


The following lines of code in your Program.cs should allow you to start your test via command line with the appropriate user rights:
if (Util.IsRestartRequiredForWinAppAccess)
    return Util.RestartWithUiAccess();
If I understand you correctly you want to store your report as XML file (e.g. MyReport.xml).
We have changed our reporting completely since Ranorex 4.x.
It's not possible to store your reports in XML file format anymore.

Could you please provide more details about your issue?
Thank you in advance.

Markus (T)