Repository Cleanup Issue

Bug reports.
JabbaMyers
Posts: 2
Joined: Fri Nov 04, 2011 3:54 pm

Repository Cleanup Issue

Post by JabbaMyers » Fri Nov 04, 2011 4:03 pm

Ranorex Version 3.1.0.13946 suggests I remove items that are actually used in the code.

The items are accessed via a with clause in the code and it doesn't recognise this.

The cleanup suggests I remove all 4 items. When I move the first item out of my with clause it suggest I remove 2,3 and 4.

repo.level1.level2.level3.item1.Click

With repo.level1.level2.level3
.Item2.Click
.Item3.Click
.Item4.DoubleClick
End With

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

Re: Repository Cleanup Issue

Post by Support Team » Mon Nov 07, 2011 5:37 pm

Hi,

Do you use a linked repository too?
I was able to reproduce it but only with linked repositories. This seems to be some special case in VB with linked repositories and the with statement.

Regards,
Peter
Ranorex Team

JabbaMyers
Posts: 2
Joined: Fri Nov 04, 2011 3:54 pm

Re: Repository Cleanup Issue

Post by JabbaMyers » Fri Nov 11, 2011 1:39 pm

Thought a repository is a repository no different types? I don't use any recordings if thats what you mean.

As long as your aware of the issue and its on the fix list thats great.

Thanks


Bernard

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

Re: Repository Cleanup Issue

Post by Support Team » Fri Nov 11, 2011 2:48 pm

Hi,
JabbaMyers wrote:Thought a repository is a repository no different types?
For sure, a repo is a repo but internally a linked repository is handled different. That was the reason why I asked you. The bug fix for you issue should be in the new Ranorex Version 3.1.2 which will be released in a few days.

Regards,
Peter
Ranorex Team

User avatar
Florent
Posts: 67
Joined: Wed Jul 04, 2012 3:31 pm
Location: Amiens / France

Re: Repository Cleanup Issue

Post by Florent » Mon Oct 29, 2012 5:39 pm

I encounter a few events without items since i've used the cleanup function without pay attention to which items it have removed. My intuition is that there is still problems with this function. I will be more attentive next time to give you details.

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

Re: Repository Cleanup Issue

Post by Support Team » Tue Oct 30, 2012 2:17 pm

Hi,

It would be great if you could send us more details, this would help us to identify a possible problem.

Regards,
Markus