Ranorex

"Please run Ranorex with Admin privileges."

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
timm



Joined: 13 Mar 2008
Posts: 6
Location: Seattle, WA USA

PostPosted: Fri Apr 04, 2008 10:20 pm    Post subject: "Please run Ranorex with Admin privileges."
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
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Mon Apr 07, 2008 3:08 pm    Post subject:
Tim,

Using Ranorex with non-admin accounts does work, but unfortunately not in the trial version.

Michael
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
timm



Joined: 13 Mar 2008
Posts: 6
Location: Seattle, WA USA

PostPosted: Fri Apr 11, 2008 10:57 pm    Post subject:
We have a registered version now, and while I didn't encounter this issue yet debugging today, I did encounter it when I tried to run the recorder on a non-priveleged account. So it would seem like it isn't an issue with the trial version.

Tim
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Mon Apr 14, 2008 1:53 pm    Post subject:
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
Back to top
View user's profile Send private message Visit poster's website
Dab



Joined: 28 Jul 2008
Posts: 5

PostPosted: Wed Jul 30, 2008 12:42 pm    Post subject: 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..
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Thu Jul 31, 2008 5:06 pm    Post subject:
After installing Ranorex 1.5, did you register the new version using the RanorexRegister.exe? If not, please do so!

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
Dab



Joined: 28 Jul 2008
Posts: 5

PostPosted: Fri Aug 01, 2008 10:01 am    Post subject: Register?
Yes, I did it, but it still doesn't work.
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Mon Aug 04, 2008 8:05 pm    Post subject:
Can you please give us more detailed information.
How can we reproduce this problem? What are the steps we need?
Does everything work OK if you do the same with an admin account?

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Dab



Joined: 28 Jul 2008
Posts: 5

PostPosted: Tue Aug 05, 2008 12:37 pm    Post subject:
Hi, yes it works with admin rights.
Following a little code snipplet, which only works with admin rights:
Code: click into code to enlarge

               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);
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Wed Aug 06, 2008 5:26 pm    Post subject:
Dab,

What kind of application are you automating (MFC, .NET, WPF) ?
Is the application running under the same user account as your test script ?
In the code sample you posted, where and what exactly is the difference between admin and non-admin?

Michael
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Dab



Joined: 28 Jul 2008
Posts: 5

PostPosted: Thu Aug 07, 2008 5:21 pm    Post subject:
Hi Michael
I'm automating a .Net app.
The app is running under the same user account.
I don't know the difference. If the user has admin rights, everything is ok. If not, ranorex throws the dialog and stops working. I think the find.. functions are responsible for this behaviour.
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 344

PostPosted: Fri Aug 08, 2008 11:27 am    Post subject:
Hi,

I tried the same code you posted as a non admin user, but it worked for me with the sample VS2005Application.exe:

Code: click into code to enlarge
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);


Please try this code with VS2005Application.exe and inform us about the results.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum