How to change the reference-path in rxtst-file

Ranorex Spy, Recorder, and Studio.
BCTest
Posts: 88
Joined: Tue Jun 03, 2014 10:15 am
Location: Hamburg, Germany

How to change the reference-path in rxtst-file

Post by BCTest » Wed May 27, 2015 3:30 pm

Hello,

we copy the executable-files compiled on a PC with Ranorex-Test-Suite to a PC with Ranorex-Test-Runner to execute the test. Many files are stored in the bin/release-folder of the project, those files are referenced in the rxtst-file only by there name and extension, e.g.:
<reference>
	Belege.exe
</reference>
But some files are referenced using relative path, e.g.:
<reference>
	..\..\..\..\..\TestModul\Gemeinsam\Programmverwaltung\Programmverwaltung\bin\Release\Programmverwaltung.exe
</reference>
Did I mentioned: these are projects added later to the solution.
Where can I change the adjustment to use no relative paths? We want Ranorex-Test-Suite to store each executable in the same directory (so those executables can be copied easierly)?

Regards,
Thomas

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

Re: How to change the reference-path in rxtst-file

Post by Support Team » Mon Jun 01, 2015 8:47 am

Hello Thomas,

May I ask you to explain how you added the references, which results in a relative path.
Additionally, please let us know which version of Ranorex you are currently using.

Thanks,
Robert
.
Image

BCTest
Posts: 88
Joined: Tue Jun 03, 2014 10:15 am
Location: Hamburg, Germany

Re: How to change the reference-path in rxtst-file

Post by BCTest » Mon Jun 01, 2015 10:31 am

Hello Robert,

sorry for the missing informations:
We are using Ranorex 5.3.2 and we add projects to the solution by using the context-menu in projects-window (like shown in the screenshot at the end).
I took a closer look to our SVN-repository and found that the project "Belege" also had a reference with relative paths in a former revision:
<reference>
	..\..\..\..\..\TestModul\Gemeinsam\Belege\Belege\bin\Debug\Belege.exe
</reference>
In the next revision the reference was changed:
<reference>
	Belege.exe
</reference>
SVN.png
Changes
SVN.png (59.28 KiB) Viewed 1509 times
In both revisions the Ranorex version ist identical:
rxversion="5.1.2.19431"
As I can see in SVN we made major changes regarding this test
  • - added, modified and deleted several recordings
  • - added several existing projects
AddProject.png
Add project
AddProject.png (17.61 KiB) Viewed 1509 times
Hope this information helps,
Regards,
Thomas

BCTest
Posts: 88
Joined: Tue Jun 03, 2014 10:15 am
Location: Hamburg, Germany

Re: How to change the reference-path in rxtst-file

Post by BCTest » Thu Jun 04, 2015 7:15 am

Hello Support-Team,

with the help of the forum I found the reason for this misbehavior: the project-reference were missing in the csproj-file of the solution. I found missing project references in three of four solutions, all created and edited with Ranorex 5. I'm not sure but I think I added projects to the solution always in the same manner.

Hope this helps,
Thomas

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

Re: How to change the reference-path in rxtst-file

Post by Support Team » Mon Jun 08, 2015 9:20 am

Hello Thomas,

I'm glad that you were able to resolve the issue.

Regards,
Robert
.
Image