hello guys I have a doubt is that when I run my test cases I get this error, which asks to restart ranorex to run correctly
the process to run requieres higher privileges Ranorex Studio needs to be restarted as Administrator
Do you want to restar Ranorex Studio as Adminsitrator?
(you will be prompted to change your user account).
I currently have the username and password of an administrator (my account is not), I wonder if I can pass those credentials somewhere so I do not have to restart ranorex every time I run my tests
thanks for your attention
Are you asked to restart ranorex when you run your tests?
-
- Posts: 23
- Joined: Tue Feb 13, 2018 2:33 pm
Re: Are you asked to restart ranorex when you run your tests?
Hi,
Usually, Ranorex does not need to be started with Admin privileges. However, there are few cases, when it's required to run it as admin. For example, it's required if tests are started in Debug mode. Also, it may be required to run Ranorex as Administrator, if your test starts an app with required admin rights. And finally, there are some controls, which requires elevated privileges, so Ranorex must be started as admin, otherwise, it may be unable to access some of their attributes (typically some WPF-based apps). All in all, it's easy to setup Ranorex to always start as administrator. Just right click the Ranorex studio shortcut and from the appeared context menu select Properties, then click Advanced and enable Run as administrator check box...
Usually, Ranorex does not need to be started with Admin privileges. However, there are few cases, when it's required to run it as admin. For example, it's required if tests are started in Debug mode. Also, it may be required to run Ranorex as Administrator, if your test starts an app with required admin rights. And finally, there are some controls, which requires elevated privileges, so Ranorex must be started as admin, otherwise, it may be unable to access some of their attributes (typically some WPF-based apps). All in all, it's easy to setup Ranorex to always start as administrator. Just right click the Ranorex studio shortcut and from the appeared context menu select Properties, then click Advanced and enable Run as administrator check box...
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Are you asked to restart ranorex when you run your tests?
If you are on Windows 8 or higher, this is due to the ability to automate Windows Store Apps.jecardenasri01 wrote:the process to run requieres higher privileges Ranorex Studio needs to be restarted as Administrator
If you don't need that capability, just disable the setting "Use UiaLauncher to elevate privileges for processes started by tools" in the Ranorex settings "Advanced" tab.
Regards,
Alex
Ranorex Team