Can't find an item using Ranorex runtime license

Ask general questions here.
Munro89
Posts: 17
Joined: Thu Feb 18, 2010 10:06 pm

Can't find an item using Ranorex runtime license

Post by Munro89 » Wed Apr 14, 2010 2:45 pm

We've bought 2 licenses about a month ago, a developper premium license and a runtime license.

We have a server to build our project, and we'd like to run the automated tests every day on this server, thus the runtime license. I setup everything on the build server yesterday and noticed my test can't complete correctly.

After some testing, I decided to check the item on the build server using Ranorex Spy. I uninstalled the runtime license and used Spy. To my surprise, it found the same RxPath for that item than on my developpement machine. I ran the test again using the same compiled test exec before reinstalling my license. It worked flawlessly and completed the test as it does on my dev machine...

Here's the RxPath for my item :
/form[@controlname='MainView']/element[@controlname='uipWorkspaceGroup']/element[@controlname='uipWorkspace']/container/container/container/container[@controlname='gridEXAccounts']/table[@accessiblename='gridEXAccounts']
I did some debugging and with the runtime license, it can see up to this RxPath :
/form[@controlname='MainView']/element[@controlname='uipWorkspaceGroup']/element[@controlname='uipWorkspace']/container/container/container
Afterward, it will never find anything unless I'm not using the runtime license.

We can't run the tests from my machine since we want the automated test to run everytime there's a new build.

I'd like some help here, I can't find any solution.

Thanks

Munro89
Posts: 17
Joined: Thu Feb 18, 2010 10:06 pm

Re: Can't find an item using Ranorex runtime license

Post by Munro89 » Wed Apr 14, 2010 3:44 pm

After further investigation, I found this while searching the forums :

Code: Select all

Ranorex.Core.ElementSnapshot snap = Ranorex.Core.ElementSnapshot.Capture(element, true);  
System.IO.File.WriteAllText("fileName.rxsnp", snap.SerializeXml());
With this, I noticed the repo structure was the same than what I saw with Ranorex Spy.
Setting a search timeout of 30s seems to have fixed my problem.

I don't know how it found the item within 10s when I uninstalled the runtime license, though.


Is there a disaventage to set a higher search timeout for all my repository items to prevent this happening in the future?

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Can't find an item using Ranorex runtime license

Post by Support Team » Thu Apr 15, 2010 12:40 pm

Hi!

No there is not a disadvantage, but i takes longer that an expection is thrown if the element is not found.

Regards,
Peter
Ranorex Support Team