How to rename a project and its namespace in Ranorex?

Ask general questions here.
lukaskupasz
Posts: 1
Joined: Wed Jun 06, 2018 1:48 pm
Contact:

How to rename a project and its namespace in Ranorex?

Post by lukaskupasz » Wed Jul 04, 2018 11:21 am

Since the naming of our project changed, I would like to concistently reflect that change in project-names and namespaces within my solution. Also, the standard test suite file files (.rxtst, .rxtmg, .rxrep) should be renamed accordingly.

What I tried:

Renaming the solution and projects within the Ranorex IDE works fine.

Renaming the standard test suite files in the Ranorex IDE will rename all references, except for references to the repository within CodeModule files. These will point to the previous repository name, resulting in compile errors.

Renaming the namespaces in the Ranorex IDE is not supported. Renaming (refactoring) the namespace in Visual Studio works in that the solution will compile just fine afterwards when compiled in Visual Studio. However, opening the solution in the Ranorex IDE will regenerate the code of recording modules, which still point to the previous, no longer valid repository name, resulting in compile errors.

Any suggestions how to handle the scenario efficiently, consistently and correctly? Many thanks in advance!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to rename a project and its namespace in Ranorex?

Post by odklizec » Thu Jul 05, 2018 12:19 pm

Hi,

I would search a replace all instances of old name, using a good programming editor, e.g. notepad++. Just make sure you have a working copy of solution stored in your vcs ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration