Hi,
1. run Ranorex Studio as administrator
2. recording some operations as TestCase on metro apps via Ranorex Studio
TestCase playback works.
3. run cmd as administrator
4. execute "test.exe /tc:TestCase"
It fails since no element found
How to run testsuite on metro apps by command line?
Regards,
Alin
How to run testsuite against win8 metro app by command line
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to run testsuite against win8 metro app by command line
Hello,
Microsoft added a lot of new security features in Windows 8. These features make it more difficult to access apps for Ranorex. In particular, metro apps are a bit tricky to work with.
Please take a look at our section 'General Troubleshooting' in our User Guide in order to solve your issue. Please let me know if it works.
Regards,
Markus (T)
Microsoft added a lot of new security features in Windows 8. These features make it more difficult to access apps for Ranorex. In particular, metro apps are a bit tricky to work with.
Please take a look at our section 'General Troubleshooting' in our User Guide in order to solve your issue. Please let me know if it works.
Regards,
Markus (T)
Re: How to run testsuite against win8 metro app by command line
Hi Markus,
I've checked all info at section 'General Troubleshooting', and could not find Ranorex UiaLauncher (<Ranorex Installation Folder>\bin\Ranorex.UiaLauncher32.exe) and try it. other ways doesn't work.
Regards,
Alin
I've checked all info at section 'General Troubleshooting', and could not find Ranorex UiaLauncher (<Ranorex Installation Folder>\bin\Ranorex.UiaLauncher32.exe) and try it. other ways doesn't work.
Regards,
Alin
Re: How to run testsuite against win8 metro app by command line
Hi Markus,
I also not found "UiaLauncher32.exe",
and I don't have this function "Ranorex.Core.Util.RestartWithUiAccess()",
It's look like only support Ranorex version 4.0?
My version is version 3.3.3.
Best Regards,
Robert Chen.
I also not found "UiaLauncher32.exe",
and I don't have this function "Ranorex.Core.Util.RestartWithUiAccess()",
It's look like only support Ranorex version 4.0?
My version is version 3.3.3.
Best Regards,
Robert Chen.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to run testsuite against win8 metro app by command line
Hello,
The UiaLauncher is not available in 3.3.3. You have to install Ranorex 4.0 to use the UiaLauncher.
Regards,
Bernhard
The UiaLauncher is not available in 3.3.3. You have to install Ranorex 4.0 to use the UiaLauncher.
Regards,
Bernhard
Re: How to run testsuite against win8 metro app by command line
ok,
thanks a lot.
Regards,
Alin
thanks a lot.
Regards,
Alin
Re: How to run testsuite against win8 metro app by command line
Thanks you for your help.
I install version 4.0 and use below code resolved my issue.
Best Regards,
Robert Chen.
I install version 4.0 and use below code resolved my issue.
Code: Select all
if (Ranorex.Core.Util.IsRestartRequiredForWinAppAccess)
return Ranorex.Core.Util.RestartWithUiAccess();
Robert Chen.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to run testsuite against win8 metro app by command line
Hi,
You're welcome!
We are glad you were able to solve the issue!
Regards,
Markus
You're welcome!
We are glad you were able to solve the issue!
Regards,
Markus