User code id issue in 3.0

Ask general questions here.
tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

User code id issue in 3.0

Post by tallahassee101 » Fri Mar 04, 2011 6:37 pm

On the initial loading of our project in 3.0 we got several of the "no repository item is linked to the validation record item" warnings during the long load ( it actually took almost a minute to load the project between clicking OK on each dialog that popped up and loading the next one). The biggest problem is that the warnings do not tell you which recording has the issue, so I had to open each recording until I saw the warning pop up again. When I ported from 2.3 to 3.0 I got three warnings, so I had to open each recording (we have probably 40-50 recordings ) until I found the ones causing the problem. The other issue I had was that these are popup warnings ONLY, and they do not display in the warnings output when you build. My solution built in 3.0 without any errors or warnings in the output but the warning dialogs would pop up while building and the solution would not run until I fixed these warnings.

All of my warnings were due to the following issue:
It seems now that there are ids associated with user code and making large repository changes (using the cleanup command) or porting from 2.3 to 3.0 can screw those ids up.

SOLUTION: I had this happen several times and I had to copy the user code out of the method, delete the user code method from the recording and then create a new method and stick the code back in it.

I also had to individually open each of our recordings for the 2.3 to 3.0 file changes to be made which was kind of annoying.

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

Re: User code id issue in 3.0

Post by Support Team » Tue Mar 08, 2011 3:50 pm

Hi,

following chapter of our user guide will explain how to port from 2.3 to 3.0:
http://www.ranorex.com/support/user-gui ... uites.html

By following these instructions you should not have any problems.

Regards,
Tobias
Support Team

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: User code id issue in 3.0

Post by tallahassee101 » Thu Mar 24, 2011 4:21 pm

We've had this issue occur now after merges as well sometimes. It would be helpful if the error message could point more directly to where the problem is by telling the user which recording is throwing the error ( it would be even better if you could display the method name ). The problem is sometimes a bad merge has resulted in this throwing up 4-5 of these errors in the Test Suite view, making it impossible to tell where the error is coming from.

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

Re: User code id issue in 3.0

Post by Support Team » Thu Mar 24, 2011 4:34 pm

Hi,

Normally if you compile the code you get the error in the "Errors" Pad of Ranorex Studio. There should be listed all errors in your code. For example, if there is a wrong syntax in user code, or an invalid cast, or a missing item for a validation step. If you double click this error inside the pad, you should jump to the item or line of code where this error happens and even the filename is shown in this pad.

Regards,
Peter
Ranorex Team

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: User code id issue in 3.0

Post by tallahassee101 » Thu Mar 24, 2011 7:21 pm

Yes, normally the errors show up in that error tab. However these "warning" dialog pop-ups do not show up in that tab, which is frustrating since the code will not run if you have any of these warnings.

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

Re: User code id issue in 3.0

Post by Support Team » Fri Mar 25, 2011 10:18 am

Hi,

can you provide us a screenshot of the warning pop up or the exactly warnings text?

Kind regards,
Tobias
Support Team