Page 1 of 1

Files localisation in Jenkins

Posted: Thu May 28, 2020 7:26 am
by Julien Diot
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.

Re: Files localisation in Jenkins

Posted: Thu May 28, 2020 8:12 am
by Julien Diot
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.

Re: Files localisation in Jenkins

Posted: Thu May 28, 2020 9:15 am
by odklizec
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 ;)

Re: Files localisation in Jenkins

Posted: Thu May 28, 2020 10:19 am
by Julien Diot
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