Reopen Run Test Suit using .exe file

Ask general questions here.
chienlth1
Posts: 8
Joined: Thu Jun 09, 2016 4:01 pm

Reopen Run Test Suit using .exe file

Post by chienlth1 » Wed Jun 22, 2016 10:02 am

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.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Reopen Run Test Suit using .exe file

Post by Support Team » Mon Jun 27, 2016 12:58 pm

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)
.
Image