Renaming a Test Suite

Ask general questions here.
Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Renaming a Test Suite

Post by Fergal » Fri Apr 21, 2017 12:07 pm

Is it possible to rename the Ranorex Test Suite, of an existing solution that has test cases, modules, etc?

Thanks!

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

Re: Renaming a Test Suite

Post by odklizec » Fri Apr 21, 2017 12:44 pm

Hi,

I'm not quite sure if simple rename of test suite via Studio GUI replace all occurrences of old name? I think the easiest and most efficient way is to replace old name with new one via a good text editor (via "search and replace in file" option).
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

Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Renaming a Test Suite

Post by Fergal » Fri Apr 21, 2017 1:25 pm

Thanks for that odklizec , it is a little time consuming (at least the way I did it, file by file in Notepad++) but it did work. One small additional step I had to implement, to deal with an "unexpected error creating debug information file" error, was to delete the "bin" and "obj" folders and then rebuild the solution.

Thanks again!

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

Re: Renaming a Test Suite

Post by odklizec » Fri Apr 21, 2017 1:30 pm

You don't have to do it file by file. In Notepad++ there is a feature "Find in Files..." (menu Search >> Find in Files...). With this you can not only find, but also replace a string in all files in defined folder. And of course, you have to rebuild the solution after such radical change.
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

Fergal
Certified Professional
Certified Professional
Posts: 298
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Renaming a Test Suite

Post by Fergal » Fri Apr 21, 2017 2:41 pm

Thanks for the tip odklizec, that is helpful and would save a lot of time.

Trying to convince myself that sometimes it is better to do it the hard way first :)

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Renaming a Test Suite

Post by krstcs » Fri Apr 21, 2017 2:59 pm

In this case, I think the easy way is to use Notepad++ as Pavel suggested. :D
Shortcuts usually aren't...