Files localisation in Jenkins

Ask general questions here.
User avatar
Julien Diot
Posts: 59
Joined: Wed Feb 20, 2019 4:25 pm
Location: Amiens (FR)

Files localisation in Jenkins

Post by Julien Diot » Thu May 28, 2020 7:26 am

Hello

In my project, I use Excel files for my Datasources and SQL files.

The path I enter is ".\Datasource" and ".\SQL".

When I develop the scenarios, RANOREX finds my files in the directories next to the "*.rxtst", in execution, my files are also well found in the "bin\Debug" directory next to the "*.rxtst" on the other hand when I launch from Jenkins, it does not find my directories because it looks for them in the root directory of the Jenkins wokspace.

How do I do that? For datasources, I don't do "Copy file to project" because I want to put everything in one directory.

Thanks in advance.

User avatar
Julien Diot
Posts: 59
Joined: Wed Feb 20, 2019 4:25 pm
Location: Amiens (FR)

Re: Files localisation in Jenkins

Post by Julien Diot » Thu May 28, 2020 8:12 am

In Jenkins, I run my tests this way and it's not working:
"call %WORKSPACE%/EvolucareIntensiveSetup/bin/Debug/EvolucareIntensiveSetup.exe"

If I run this same executable manually, it works fine, my files are found.

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

Re: Files localisation in Jenkins

Post by odklizec » Thu May 28, 2020 9:15 am

Hi,

Try to change working directory before calling test itself...
cd %WORKSPACE%/EvolucareIntensiveSetup/bin/Debug
"call %WORKSPACE%/EvolucareIntensiveSetup/bin/Debug/EvolucareIntensiveSetup.exe"
Anyway, are you aware that there is a "Run Ranorex test suite" Jenkins plugin? It's easier to use this plugin than to create and maintain command line execution script ;)
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
Julien Diot
Posts: 59
Joined: Wed Feb 20, 2019 4:25 pm
Location: Amiens (FR)

Re: Files localisation in Jenkins

Post by Julien Diot » Thu May 28, 2020 10:19 am

Thanks for coming back.

Yes I know the plugin for RANOREX but at the time it didn't meet my expectations, having reviewed the structure of my projects, I think I will be able to reorient myself on it.

The modification of the %WorkSPace% brings the solution to my problem.

Thanks a lot