Page 1 of 1

Reopen Run Test Suit using .exe file

Posted: Wed Jun 22, 2016 10:02 am
by chienlth1
Hi all,

I'd like to re open a old question with same subject as this question

Nagarjuna hava a solution as below
Finnally we got the solution to run the .exe file for windows apps.

It is bit simple but took lots of time to find it..

The below four lines of code will come by default in Program.cs file of Every ranorex solution.

// Uncomment the following 2 lines if you want to automate Windows apps
// by starting the test executable directly
// if (Util.IsRestartRequiredForWinAppAccess)
// return Util.RestartWithUiAccess();

Hope by reading the above lines, can guess the solution.

Solution is have to remove comments for the last two lines of code mentioned above before build the solution.


But this solution have some problem, it will restart executable file and open a new execuatable file, it means 2 different session will be run,
-> It won't not true flow
Could you please help us solve this issue.

Re: Reopen Run Test Suit using .exe file

Posted: Mon Jun 27, 2016 12:58 pm
by Support Team
Hi chienlth1,

When automating Windows Apps (Windows 8 and Windows 10) it is mandatory to restart the test executable with UI access.

May I ask you what problem you are facing when executing the test.exe? Please also let me know what exactly you mean with "-> It won't not true flow"

Thank you in advance.

Regards,
Markus (S)