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.
Files localisation in Jenkins
- Julien Diot
- Posts: 59
- Joined: Wed Feb 20, 2019 4:25 pm
- Location: Amiens (FR)
- Julien Diot
- Posts: 59
- Joined: Wed Feb 20, 2019 4:25 pm
- Location: Amiens (FR)
Re: Files localisation in Jenkins
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.
"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
Hi,
Try to change working directory before calling test itself...
Try to change working directory before calling test itself...
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 scriptcd %WORKSPACE%/EvolucareIntensiveSetup/bin/Debug
"call %WORKSPACE%/EvolucareIntensiveSetup/bin/Debug/EvolucareIntensiveSetup.exe"
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
- Julien Diot
- Posts: 59
- Joined: Wed Feb 20, 2019 4:25 pm
- Location: Amiens (FR)
Re: Files localisation in Jenkins
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
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