linking SVN Externals to Ranorex project

Ranorex Spy, Recorder, and Studio.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

linking SVN Externals to Ranorex project

Post by odklizec » Tue Jul 02, 2013 4:20 pm

Hi all,

I'm trying to setup a mechanism for using common class across multiple Rx projects. Yes, I know about creating DLL containing common functions and referencing that DLL in each project. But I would rather like to avoid that way. Using one common class would allow me to edit that class in each Rx project so the changes would be transferred to each Rx project (after svn update) without the need of editing/compiling an external DLL.

I found something called SVN Externals. So I have main SVN repo with RX project and separate SVN repo containing the common class. That common class repo is then linked inside the main Rx repo using SVN "external" folder. Once the external class is edited inside the Rx solution, SVN is supposed to trigger that change and update both Rx project repo and external repo. The problem I'm facing is how to add the common class to the Rx project? ;)

Once I try to add an existing "external" class to the solution, instead of linking the class, it simply copies it to the folder over which I used Add >> Existing Item action...
SVNExternal.png
SVNExternal.png (56.03 KiB) Viewed 1005 times
Sadly, this breaks the "external" SVN connection". Once I edit that copied common class, it's no longer linked to the source folder containing the external class and therefore, it's useless.

I think the problem is with the "old" Rx 4.0.4 Sharp Develop-based GUI? The most actual Sharp Develop seems not only allow to link the existing files (instead of copying them) but it also allows to add the whole existing directory, which is currently not possible in Rx 4.0.4.
AddExisting.png
AddExisting.png (86.85 KiB) Viewed 1005 times
Any idea when we will see an updated Ranorex with most recent Sharp Develop-based features? Or is there already a way to achieve my goal (shared common class) with current Ranorex version?

Thank you in advance!
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

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

Re: linking SVN Externals to Ranorex project

Post by Support Team » Thu Jul 04, 2013 12:43 pm

Hello,

Thank you for your posting.

Unfortunately, the Sharp develop version that we are using in Ranorex doesn't offer to add existing folder.
As far as we know, Visual Studio can't do this either.

As workaround, please do the following steps:
Copy the folder to the project directory, switch on "Show all files" in the projects tab, right click on folder, and just select "Include in project".

Regards,
Markus (T)
.
Image