Changing Name of Object in Repo Does not Update Recording.cs

Bug reports.
costamesakid
Posts: 94
Joined: Tue Jun 16, 2009 10:27 pm

Changing Name of Object in Repo Does not Update Recording.cs

Post by costamesakid » Tue Apr 13, 2010 7:26 am

This may have all ready been written up but I noticed if you rename a repository object the corresponding object in that .cs file is not updated. You need to also rename it in the .cs file which actually isnt suppose to be allowed by Ranorex.

It seems to me that when you Build the new repository object name is not being used by the corresponding .cs file. Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Changing Name of Object in Repo Does not Update Recording.cs

Post by Support Team » Tue Apr 13, 2010 1:44 pm

Hi!

If you change the name of an item or folder in a repository ("MyRepository.rxrep"), the corresponding code file ("MyRepository.cs") will be updated when the repository is saved, e.g. when saving the project or building the project.

References to the the repository item in other files will not be updated; e.g. if you use the repository item in your "Program.cs" file, the repository item name is not updated in those files.

Regards,
Peter
Ranorex Support Team
.
Image

costamesakid
Posts: 94
Joined: Tue Jun 16, 2009 10:27 pm

Re: Changing Name of Object in Repo Does not Update Recording.cs

Post by costamesakid » Tue Apr 13, 2010 5:01 pm

Thanks Peter.

I am actually referring to the .cs files associated with a Recording. For instance Recording1.cs. If Recording1.cs references a repository item, and I change the name of that item I would expect the item named to be updated in Recording1.cs after I do a build but it does not. I have to manually change the names in Recording1.cs which caused me some confusion as I thought these files were not editable. In fact they have the disclaimer at the top, "...DO NOT MODIFY THIS FILE!", but I have to as its the only way I can get my solution to build after I change the name of a repo item. Thanks

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Changing Name of Object in Repo Does not Update Recording.cs

Post by Support Team » Wed Apr 14, 2010 1:15 pm

Hi!

I'Ve changed a repoistory item which is used in my recording. After saving the repository, all items in Recording.cs updated, even when I don't save the Repository and build the whole project instantly.
I've tired this with Ranorex Version 2.2 and 2.3.

Which version of Ranorex you use?

Regards,
Peter
Ranorex Support Team
.
Image