Page 1 of 1

Renaming a Test Suite

Posted: Fri Apr 21, 2017 12:07 pm
by Fergal
Is it possible to rename the Ranorex Test Suite, of an existing solution that has test cases, modules, etc?

Thanks!

Re: Renaming a Test Suite

Posted: Fri Apr 21, 2017 12:44 pm
by odklizec
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).

Re: Renaming a Test Suite

Posted: Fri Apr 21, 2017 1:25 pm
by Fergal
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!

Re: Renaming a Test Suite

Posted: Fri Apr 21, 2017 1:30 pm
by odklizec
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.

Re: Renaming a Test Suite

Posted: Fri Apr 21, 2017 2:41 pm
by Fergal
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 :)

Re: Renaming a Test Suite

Posted: Fri Apr 21, 2017 2:59 pm
by krstcs
In this case, I think the easy way is to use Notepad++ as Pavel suggested. :D