I was debugging a Ranorex test application using an account with normal user (i.e. non-admin) privilege on an XP Service Pack 2 virtual machine, when the app suddenly stopped and displayed a messagebox stating "The current user has insufficient access privileges. Please run Ranorex with Admin priveleges." This is a question that I probably already know the answer to, but I'll ask it anyway. Is there any way to get around the requirement that Ranorex apps need to run on an account with Admin priviledge? This would seem to be important as most testing organizations would want to ensure that their apps run properly under non-priveledged user accounts (especially with Vista).
Thanks,
Tim
"Please run Ranorex with Admin privileges."
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
You are right, that's a bug in the RanorexRecorder licensing.
We fixed this bug in the Ranorex version that is currently available at:
http://www.ranorex.com/download.html
Regards,
Alex
Ranorex Support Team
We fixed this bug in the Ranorex version that is currently available at:
http://www.ranorex.com/download.html
Regards,
Alex
Ranorex Support Team
It doesn't work
I tried it, but it doesn't work.
The newly compiled exe ( with the dlls of version 1.5) shows the same message..
The newly compiled exe ( with the dlls of version 1.5) shows the same message..
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Hi, yes it works with admin rights.
Following a little code snipplet, which only works with admin rights:
Following a little code snipplet, which only works with admin rights:
Code: Select all
control = parent.FindControlName("extendedGrid");
control.Focus();
Logger.Info("User", "Get the accessibility element of the control.");
controlElement = control.Element;
Logger.Info("User", "Find child element in control by name={0}", args[0]);
element = controlElement.FindChildValue(args[0], SearchMatchMode.MatchExact);
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Hi,
I tried the same code you posted as a non admin user, but it worked for me with the sample VS2005Application.exe:
Please try this code with VS2005Application.exe and inform us about the results.
Jenö
Ranorex Team
I tried the same code you posted as a non admin user, but it worked for me with the sample VS2005Application.exe:
Code: Select all
Form form = Application.FindFormTitle("RanorexTestedApp");
form.Activate();
Control control = form.FindControlName("checkedListBox1");
control.Focus();
Mouse.ClickControl(control);
controlElement = control.Element;
Element element = controlElement.FindChildValue("False", SearchMatchMode.MatchExact);
Mouse.ClickElement(element);
Jenö
Ranorex Team